createDownloadQuery

open fun createDownloadQuery(name: String, query: DataQuery)
open fun createDownloadQuery(name: String, query: DataQuery, completionHandler: (Result<Unit>) -> Unit)

See createDownloadQuery(String, DataQuery, Boolean).

Parameters

name

Name parameter.

query

Query parameter.


open fun createDownloadQuery(name: String, query: DataQuery, streams: Boolean)
open fun createDownloadQuery(name: String, query: DataQuery, streams: Boolean, completionHandler: (Result<Unit>) -> Unit)

Create a persistent query to specify criteria for downloading entities for an entity set. This query is persisted across application restarts. Multiple download queries can be defined for the same entity set (e.g. with different filters).

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataQuery#entitySet DataQuery.entitySet}, {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#deleteDownloadQuery(kotlin.String) OfflineDataService.deleteDownloadQuery}, {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#getDownloadQuery(kotlin.String) OfflineDataService.getDownloadQuery}, {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#getDownloadQueries(com.sap.cloud.mobile.kotlin.odata.EntitySet?) OfflineDataService.getDownloadQueries}.

Parameters

name

Query name. Must be unique.

query

Data query. Use {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#from(com.sap.cloud.mobile.kotlin.odata.EntitySet) DataQuery.from} to specify the query's entity set.

streams

If true, then enable downloading of associated streams.