bind

open fun bind(resource: BindingPath): DataQuery

Bind a resource as the binding parameter of a bound action/function. If resource is a {@link com.sap.cloud.mobile.kotlin.odata.DataPath}, then sets {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#resourcePath DataQuery.resourcePath}.{@link com.sap.cloud.mobile.kotlin.odata.ResourcePath#dataPath ResourcePath.dataPath}. If resource is an {@link com.sap.cloud.mobile.kotlin.odata.EntitySet}, then calls {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#from(com.sap.cloud.mobile.kotlin.odata.EntitySet) DataQuery.from} to set {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#resourcePath DataQuery.resourcePath}.{@link com.sap.cloud.mobile.kotlin.odata.ResourcePath#entitySet ResourcePath.entitySet}. If resource is an {@link com.sap.cloud.mobile.kotlin.odata.EntityValue}, then calls {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#load(com.sap.cloud.mobile.kotlin.odata.EntityValue, com.sap.cloud.mobile.kotlin.odata.PropertyPath?) DataQuery.load} to set {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#resourcePath DataQuery.resourcePath}.{@link com.sap.cloud.mobile.kotlin.odata.ResourcePath#entitySet ResourcePath.entitySet} and {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#resourcePath DataQuery.resourcePath}.{@link com.sap.cloud.mobile.kotlin.odata.ResourcePath#entityKey ResourcePath.entityKey}.

Return

This query.

Parameters

resource

The resource to be bound.