Annotation Type EdmFunction.ReturnType
- Enclosing class:
- EdmFunction
public static @interface EdmFunction.ReturnType
Define if the return type for the function. It can be a collection (entity set) or
an single entity (entity).
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanbooleanintintintClass<?>Define the return type for the function import.
-
Element Details
-
isCollection
boolean isCollection- Returns:
trueif a collection is returned, otherwisefalseif a single entity is returned.
- Default:
- false
-
isNullable
boolean isNullable- Default:
- true
-
maxLength
int maxLength- Default:
- -1
-
precision
int precision- Default:
- -1
-
scale
int scale- Default:
- -1
-
srid
EdmGeospatial srid- Default:
- @com.sap.olingo.jpa.metadata.core.edm.annotation.EdmGeospatial
-
type
Class<?> typeDefine the return type for the function import.- Returns:
- Class of java parameter (row) type. This can be either a simple type like
Integer.classor the POJO defining an Entity. If the type is not set and the function is defined at an JPA Entity POJO, the corresponding Entity Type is used. In addition, in case of an unbound function, no out-bound parameter is set.
- Default:
- java.lang.Object.class
-