Interface Batch

  • All Known Implementing Classes:

    public interface Batch
    Conceptually models a batch.

    Unlike in JDBC, here we add the ability to batch together multiple statements at a time. In the underlying JDBC this correlates to multiple PreparedStatement objects (one for each DML string) maintained within the batch.

    • Method Detail

      • getKey

        BatchKey getKey()
        Retrieves the object being used to key (uniquely identify) this batch.
        The batch key.
      • addObserver

        void addObserver​(BatchObserver observer)
        Adds an observer to this batch.
        observer - The batch observer.
      • addToBatch

        void addToBatch​(JdbcValueBindings jdbcValueBindings,
                        TableInclusionChecker inclusionChecker)
        Apply the value bindings to the batch JDBC statements and Indicates completion of the current part of the batch.
      • execute

        void execute()
        Execute this batch.
      • release

        void release()
        Used to indicate that the batch instance is no longer needed and that, therefore, it can release its resources.