public class FunctionImport extends NamedObject
Constructor and Description |
---|
FunctionImport(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EntitySet |
getEntitySet()
Returns the entity set returned by this function, if applicable.
|
Metadata |
getMetadata()
Returns the metadata.
|
Method |
getMethod()
Returns the method used to invoke this function.
|
String |
getMethodAccess()
Returns the method access of this function (defined in the CSDL, but not
described).
|
List<Parameter> |
getParameters()
Returns the list of parameters.
|
String |
getReturnType()
Returns the return type of this function.
|
ComplexType |
getReturnTypeAsComplexType()
Returns the return type as complex type, or null if it is not.
|
EntityType |
getReturnTypeAsEntityType()
Returns the return type as complex type, or null if it is not.
|
String |
getSimpleReturnType()
Returns the name of the return type, or if it's a collection, returns its
element's type.
|
boolean |
isReturningCollection()
Returns true if the result of the invocation of the service is a
collection.
|
boolean |
isReturningComplexType()
Returns true if the result of the invocation of the service is a complex
type.
|
boolean |
isReturningEdmSimpleType()
Returns true if the result of the invocation of the service is an EDM
simple type.
|
boolean |
isReturningEntityType()
Returns true if the result of the invocation of the service is an entity
type.
|
void |
setEntitySet(EntitySet entitySet)
Sets the entity set returned by this function, if applicable.
|
void |
setMetadata(Metadata metadata)
Sets the metadata.
|
void |
setMethod(Method method)
Sets the method used to invoke this function.
|
void |
setMethodAccess(String methodAccess)
Sets the method access of this function (defined in the CSDL, but not
described).
|
void |
setParameters(List<Parameter> parameters)
Sets the list of parameters.
|
void |
setReturnType(String returnType)
Sets the return type of this function.
|
equals, getName, getNormalizedName, hashCode, toString
public FunctionImport(String name)
name
- The name of the schema.public EntitySet getEntitySet()
public Metadata getMetadata()
public Method getMethod()
public String getMethodAccess()
public List<Parameter> getParameters()
public String getReturnType()
public ComplexType getReturnTypeAsComplexType()
public EntityType getReturnTypeAsEntityType()
public String getSimpleReturnType()
public boolean isReturningCollection()
public boolean isReturningComplexType()
public boolean isReturningEdmSimpleType()
public boolean isReturningEntityType()
public void setEntitySet(EntitySet entitySet)
entitySet
- The entity set returned by this function, if applicable.public void setMetadata(Metadata metadata)
metadata
- The metadata.public void setMethod(Method method)
method
- The method used to invoke this function.public void setMethodAccess(String methodAccess)
methodAccess
- The method access of this function (defined in the CSDL, but
not described).public void setParameters(List<Parameter> parameters)
parameters
- The list of parameters.public void setReturnType(String returnType)
returnType
- The return type of this function.Copyright © 2005–2015. All rights reserved.