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 |
cachingMetadata()
Enable the caching of OData metadata responses for this batch request.
|
BatchResponse |
execute(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.
|
FluentHelperBatchT |
withoutCachingMetadata()
Disable the caching of OData metadata responses for this batch 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 public FluentHelperBatchT cachingMetadata()
cachingMetadata
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
@Nonnull public FluentHelperBatchT withoutCachingMetadata()
withoutCachingMetadata
in interface FluentHelperServiceBatch<FluentHelperBatchT extends FluentHelperServiceBatch<FluentHelperBatchT,FluentHelperBatchChangeSetT>,FluentHelperBatchChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperBatchT>>
@Nonnull 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.Copyright © 2020 SAP SE. All rights reserved.