Annotation Type EdmFunction
Metadata of a function, see
edm:Function.
- Author:
- Oliver Grande
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefine if the return type for the function. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDefine the return type of this function -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefines the name of a User Defined Function on the databasebooleanIndicates that a Function Import shall be generated into the Container.booleanIndicates that the Function is bound.Defines the name of the function in the service document.
-
Element Details
-
returnType
EdmFunction.ReturnType returnTypeDefine the return type of this function- Returns:
- return type of this function
-
-
-
name
String nameDefines the name of the function in the service document. This is a required attribute for database based functions and can be omitted for java based functions.- Returns:
- Default:
- ""
-
parameter
EdmParameter[] parameter- Default:
- {}
-
functionName
String functionNameDefines the name of a User Defined Function on the database- Returns:
- Default:
- ""
-
isBound
boolean isBoundIndicates that the Function is bound.If isBound is false a function is treated as unbound, so it can be accessed either via a Function Import or be used in filter or orderby expression. Otherwise the function is treated as bound. For details see: OData Version 4.0 Part 3 - 12.2.2 Attribute IsBound
If the function is java based isBound is ignored and always set to false
- Returns:
- Default:
- true
-
hasFunctionImport
boolean hasFunctionImportIndicates that a Function Import shall be generated into the Container. For details see: OData Version 4.0 Part 3 - 13.6 Element edm:FunctionImporthasFunctionImport is handled as follows:
- For bound functions hasFunctionImport is always treated as false
- For unbound functions in case hasFunctionImport is true a function import is generated, which allows to be call a function from the container
- Returns:
- Default:
- false
-