Interface BatchPostExecute

All Known Implementing Classes:
PersistRequest, PersistRequestBean, PersistRequestCallableSql, PersistRequestOrmUpdate, PersistRequestUpdateSql

public interface BatchPostExecute
Handles the processing required after batch execution.

This includes concurrency checking, generated keys on inserts, transaction logging, transaction event table modifcation and for beans resetting their 'loaded' status.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTimingBatch(long startNanos, int batch)
    Add timing metrics for batch persist.
    void
    checkRowCount(int rowCount)
    Check that the rowCount is correct for this execute.
    boolean
    Return true if this is a queued sql update for element collection or intersection table.
    void
    Execute the post execute processing.
    void
    profile(long offset, int batchSize)
    Add as event to the profiling.
    void
    For inserts with generated keys.
  • Method Details

    • isFlushQueue

      boolean isFlushQueue()
      Return true if this is a queued sql update for element collection or intersection table. In this case we can executeBatch on the PreparedStatement.
    • checkRowCount

      void checkRowCount(int rowCount)
      Check that the rowCount is correct for this execute. This is for performing concurrency checking in batch execution.
    • setGeneratedKey

      void setGeneratedKey(Object idValue)
      For inserts with generated keys. Otherwise not used.
    • postExecute

      void postExecute()
      Execute the post execute processing.

      This includes transaction logging, transaction event table modification and for beans resetting their 'loaded' status.

    • profile

      void profile(long offset, int batchSize)
      Add as event to the profiling.
    • addTimingBatch

      void addTimingBatch(long startNanos, int batch)
      Add timing metrics for batch persist.