invoke

open fun invoke(method: DataMethod): DataQuery

See invoke(DataMethod, ParameterList).

Return

(see linked method).

Parameters

method

Method parameter.


open fun invoke(method: DataMethod, parameters: ParameterList): DataQuery

Set {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#methodCall DataQuery.methodCall} to associate this query with an action/function invocation.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataQuery#bind(com.sap.cloud.mobile.kotlin.odata.BindingPath) DataQuery.bind}, for setting the binding parameter for a bound action/function.

Example using proxy classes:
open fun invokeExample(): kotlin.Unit
{
    val service = this.service;
    val person = service.getPersonWithMostFriends();
    this.showPerson(person);
}
Example using dynamic API:
open fun invokeExample(): kotlin.Unit
{
    val service = this.service;
    val functionImport = service.getDataMethod("GetPersonWithMostFriends");
    val query = DataQuery().invoke(functionImport);
    val person = service.executeQuery(query).getRequiredEntity();
    this.showPerson(person);
}

Return

This query.

Parameters

method

Data method to be called (action or function).

parameters

Method parameters.