FluentHelperBatchT
- The fluent helper type.FluentHelperBatchChangeSetT
- The type of the changesets being managed in this OData batch request.public abstract class BatchFluentHelperBasic<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>> extends Object implements FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>
executing
them in a single query.Constructor and Description |
---|
BatchFluentHelperBasic() |
Modifier and Type | Method and Description |
---|---|
FluentHelperBatchT |
addReadOperations(FluentHelperByKey<?,?,?> readByKeyOperation)
Add read-by-key request to the OData batch request builder.
|
FluentHelperBatchT |
addReadOperations(FluentHelperRead<?,?,?> readOperation)
Add read request to the OData batch request builder.
|
FluentHelperBatchT |
cachingMetadata()
Deprecated.
|
BatchResponse |
execute(HttpDestinationProperties destination)
Deprecated.
|
BatchResponse |
executeRequest(HttpDestinationProperties destination)
Executes the underlying batch query including the stored changeset operations.
|
protected abstract String |
getServicePathForBatchRequest()
Get the OData service endpoint path for the current OData batch request.
|
protected abstract FluentHelperBatchT |
getThis()
Method to safely return the current fluent helper instance upon public method calls.
|
ODataRequestBatch |
toRequest()
Translate this OData v2 batch request into a generic
ODataRequestBatch . |
FluentHelperBatchT |
withoutCachingMetadata()
Deprecated.
|
FluentHelperBatchT |
withoutCsrfToken()
Deactivates the CSRF token retrieval for this OData request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginChangeSet
@Nonnull protected abstract String getServicePathForBatchRequest()
DEFAULT_SERVICE_PATH
in the service class.@Nonnull protected abstract FluentHelperBatchT getThis()
@Nonnull @Deprecated public FluentHelperBatchT cachingMetadata()
cachingMetadata
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
@Nonnull @Deprecated public FluentHelperBatchT withoutCachingMetadata()
withoutCachingMetadata
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
@Nonnull @Deprecated public BatchResponse execute(@Nonnull HttpDestinationProperties destination) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
execute
in interface FluentHelperServiceBatchExecute
destination
- Destination object for resolving the HttpClient
when executing the underlying OData query.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the parent OData batch request fails, then an ODataException is thrown.@Nonnull public BatchResponse executeRequest(@Nonnull HttpDestinationProperties destination)
FluentHelperServiceBatchExecute
executeRequest
in interface FluentHelperServiceBatchExecute
destination
- Destination object for resolving the HttpClient
when executing the underlying OData query.@Beta @Nonnull public ODataRequestBatch toRequest()
ODataRequestBatch
.@Nonnull @Beta public FluentHelperBatchT addReadOperations(@Nonnull FluentHelperRead<?,?,?> readOperation)
FluentHelperServiceBatch
addReadOperations
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
readOperation
- The read request.@Nonnull @Beta public FluentHelperBatchT addReadOperations(@Nonnull FluentHelperByKey<?,?,?> readByKeyOperation)
FluentHelperServiceBatch
addReadOperations
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
readByKeyOperation
- The read-by-key request.@Nonnull public FluentHelperBatchT withoutCsrfToken()
Copyright © 2021 SAP SE. All rights reserved.