Class BatchImpl

java.lang.Object
org.hibernate.engine.jdbc.batch.internal.BatchImpl
All Implemented Interfaces:
Batch

public class BatchImpl extends Object implements Batch
Standard implementation of Batch
  • Constructor Details

  • Method Details

    • getKey

      public final BatchKey getKey()
      Description copied from interface: Batch
      Retrieves the object being used to key (uniquely identify) this batch.
      Specified by:
      getKey in interface Batch
      Returns:
      The batch key.
    • getStatementGroup

      public PreparedStatementGroup getStatementGroup()
      Specified by:
      getStatementGroup in interface Batch
    • addObserver

      public void addObserver(BatchObserver observer)
      Description copied from interface: Batch
      Adds an observer to this batch.
      Specified by:
      addObserver in interface Batch
      Parameters:
      observer - The batch observer.
    • addToBatch

      public void addToBatch(JdbcValueBindings jdbcValueBindings, TableInclusionChecker inclusionChecker)
      Description copied from interface: Batch
      Apply the value bindings to the batch JDBC statements and indicates completion of the current part of the batch.
      Specified by:
      addToBatch in interface Batch
    • releaseStatements

      protected void releaseStatements()
    • clearBatch

      protected void clearBatch(PreparedStatementDetails statementDetails)
    • notifyObserversExplicitExecution

      protected final void notifyObserversExplicitExecution()
      Convenience method to notify registered observers of an explicit execution of this batch.
    • notifyObserversImplicitExecution

      protected final void notifyObserversImplicitExecution()
      Convenience method to notify registered observers of an implicit execution of this batch.
    • abortBatch

      protected void abortBatch(Exception cause)
    • execute

      public void execute()
      Description copied from interface: Batch
      Execute this batch.
      Specified by:
      execute in interface Batch
    • performExecution

      protected void performExecution()
    • release

      public void release()
      Description copied from interface: Batch
      Used to indicate that the batch instance is no longer needed and that, therefore, it can release its resources.
      Specified by:
      release in interface Batch
    • toString

      public String toString()
      Overrides:
      toString in class Object