Class ODataFunctionImportCallable
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.odata.ODataFunctionImportCallable
-
@VelocityCallable("singleton") public final class ODataFunctionImportCallable extends Object
A callable for executing OData functions within Velocity templates.
-
-
Constructor Summary
Constructors Constructor Description ODataFunctionImportCallable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
call(String p_strDataGroupGuid, String p_strFunctionName, Map<String,Object> p_parameters)
Calls the OData function and returns the result.
-
-
-
Method Detail
-
call
public static final Object call(String p_strDataGroupGuid, String p_strFunctionName, Map<String,Object> p_parameters)
Calls the OData function and returns the result.Example:
#set ($dgGuid = '1337133713371337133713371337133713371337')
#set ($parameters = {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'})
#set ($result = $ODataFunctionImportCallable.call($dgGuid, "GetOpenOrderIds", $parameters))
- Parameters:
p_strDataGroupGuid
- The GUID of a datagroup containing the OData service configuration.p_strFunctionName
- The OData function name.p_parameters
- The function parameters (key = parameter name, value = parameter value).- Returns:
- A
java.util.Object
instance which can be cast to the following types depending on the function result type:
- No or null result:
null
- Single result type: Either a Java type corresponding to the OData type (e.g. Edm.String = java.util.String)
or a
Map<String, Object>
for an OData entity/structural type. - Collection result type:
java.util.List<?>
of Java types corresponding to the OData types or a list ofMap<String, Object>
for a collection of OData entity/structural types.
- No or null result:
-
-