Interface FluentHelperServiceBatch<FluentHelperT,FluentHelperChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperT>>
- Type Parameters:
FluentHelperT
- Type of the implementing OData batch request classFluentHelperChangeSetT
- Type of the associated changeset class
- All Superinterfaces:
FluentHelperServiceBatchExecute
- All Known Implementing Classes:
BatchFluentHelperBasic
public interface FluentHelperServiceBatch<FluentHelperT,FluentHelperChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperT>>
extends FluentHelperServiceBatchExecute
Interface to the batch object of an OData service.
-
Method Summary
Modifier and TypeMethodDescriptionaddChangeSet
(FluentHelperModification<?, ?>... modifications) Adds a single OData batch changeset that includes all of the given data modification requests.addReadOperations
(FluentHelperByKey<?, ?, ?>... readByKeyOperations) Add read-by-key request to the OData batch request builder.addReadOperations
(FluentHelperFunction<?, ?, ?>... functionOperations) Add function requests to the OData batch request builder.Only functions that use GET can be added.addReadOperations
(FluentHelperRead<?, ?, ?>... readOperations) Add read request to the OData batch request builder.Method to define a new OData batch changeset.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.FluentHelperServiceBatchExecute
executeRequest
-
Method Details
-
beginChangeSet
Method to define a new OData batch changeset. Modifying operations on entities in a batch request can only be done as part of a changeset. All changesets will be evaluated independently from each other.- Returns:
- A new instance of a batch changeset associated with the OData service.
-
addReadOperations
Add read request to the OData batch request builder.- Parameters:
readOperations
- A var-arg array of read operations.- Returns:
- The current OData batch request instance.
-
addChangeSet
Adds a single OData batch changeset that includes all of the given data modification requests. All changesets will be evaluated independently from each other.- Parameters:
modifications
- The data modification requests to be performed as part of a single changeset.- Returns:
- The current OData batch request instance.
-
addReadOperations
Add read-by-key request to the OData batch request builder.- Parameters:
readByKeyOperations
- A var-arg array of read operations.- Returns:
- The current OData batch request instance.
-
addReadOperations
@Nonnull FluentHelperT addReadOperations(@Nonnull FluentHelperFunction<?, ?, ?>... functionOperations) Add function requests to the OData batch request builder.Only functions that use GET can be added.- Parameters:
functionOperations
- A var-arg array of function operations.- Returns:
- The current OData batch request instance
-