Package org.copperengine.core.audit
Class BatchInsertIntoAutoTrail.Executor
- java.lang.Object
-
- org.copperengine.core.batcher.BatchExecutor<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>
-
- org.copperengine.core.audit.BatchInsertIntoAutoTrail.Executor
-
- All Implemented Interfaces:
BatchExecutorBase<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>
- Enclosing class:
- BatchInsertIntoAutoTrail
public static final class BatchInsertIntoAutoTrail.Executor extends BatchExecutor<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>
-
-
Constructor Summary
Constructors Constructor Description Executor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExec(java.util.Collection<BatchCommand<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>> commands, java.sql.Connection con)
Executes a batch of commandsint
maximumBatchSize()
int
preferredBatchSize()
-
Methods inherited from class org.copperengine.core.batcher.BatchExecutor
id, prioritize
-
-
-
-
Method Detail
-
maximumBatchSize
public int maximumBatchSize()
- Returns:
- the maximum batch size of this executor
-
preferredBatchSize
public int preferredBatchSize()
- Returns:
- Preferred batch size of this executor
-
doExec
public void doExec(java.util.Collection<BatchCommand<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>> commands, java.sql.Connection con) throws java.lang.Exception
Description copied from interface:BatchExecutorBase
Executes a batch of commands- Specified by:
doExec
in interfaceBatchExecutorBase<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>
- Specified by:
doExec
in classBatchExecutor<BatchInsertIntoAutoTrail.Executor,BatchInsertIntoAutoTrail.Command>
- Parameters:
commands
- the batch of commands is collected by the batcher and passed in to this method which can then execute them all in one batch.con
- the connection to work on- Throws:
java.lang.Exception
- any kind of uncaught exception with the implementation of the executor
-
-