Interface FluentHelperServiceBatch<FluentHelperT,FluentHelperChangeSetT extends FluentHelperBatchEndChangeSet<FluentHelperT>>

Type Parameters:
FluentHelperT - Type of the implementing OData batch request class
FluentHelperChangeSetT - 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 Details

    • beginChangeSet

      @Nonnull FluentHelperChangeSetT 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

      @Nonnull FluentHelperT addReadOperations(@Nonnull FluentHelperRead<?,?,?>... readOperations)
      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

      @Nonnull FluentHelperT addChangeSet(@Nonnull FluentHelperModification<?,?>... modifications)
      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

      @Nonnull FluentHelperT addReadOperations(@Nonnull FluentHelperByKey<?,?,?>... readByKeyOperations)
      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