- 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 TypeMethodDescriptionvoidaddTimingBatch(long startNanos, int batch) Add timing metrics for batch persist.voidcheckRowCount(int rowCount) Check that the rowCount is correct for this execute.booleanReturn true if this is a queued sql update for element collection or intersection table.voidExecute the post execute processing.voidprofile(long offset, int batchSize) Add as event to the profiling.voidsetGeneratedKey(Object idValue) 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
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.
-