hasFailedRequests

See hasFailedRequests(DataQuery?, HttpHeaders?, RequestOptions?).

Return

(see linked method).


See hasFailedRequests(DataQuery?, HttpHeaders?, RequestOptions?).

Return

(see linked method).

Parameters

query

Query parameter.


open fun hasFailedRequests(query: DataQuery?, headers: HttpHeaders?): Boolean

See hasFailedRequests(DataQuery?, HttpHeaders?, RequestOptions?).

Return

(see linked method).

Parameters

query

Query parameter.

headers

Headers parameter.


open fun hasFailedRequests(query: DataQuery?, headers: HttpHeaders?, options: RequestOptions?): Boolean

Return true if there are any failed requests in the local database (matching the query, if specified). This includes requests that have been sent to the backend system, but which failed to execute successfully.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.OfflineDataServiceAsync#getFailedRequests_(com.sap.cloud.mobile.kotlin.odata.DataQuery?, com.sap.cloud.mobile.kotlin.odata.http.HttpHeaders?, com.sap.cloud.mobile.kotlin.odata.RequestOptions?) OfflineDataServiceAsync.getFailedRequests}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#changeSet PendingRequest.changeSet}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#customTag PendingRequest.customTag}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#firstSent PendingRequest.firstSent}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#httpMethod PendingRequest.httpMethod}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#httpStatus PendingRequest.httpStatus}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#requestID PendingRequest.requestID}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#requestURL PendingRequest.requestURL}, {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#uploadGroup PendingRequest.uploadGroup}.

Return

true if there are any failed requests in the local database (matching the query, if specified).

Parameters

query

(nullable) If specified, then {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#entitySet DataQuery.entitySet} and {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#queryFilter DataQuery.queryFilter} will be used for request filtering.

headers

(nullable) If specified, then the returned pending requests will be further filtered to include only those with matching headers.

options

(nullable) If specified, then the returned pending requests will be further filtered to include only those with matching options ({@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#changeSet RequestOptions.changeSet}, {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#customTag RequestOptions.customTag}, {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#uploadGroup RequestOptions.uploadGroup}).