Class NonBatchingBatch
- java.lang.Object
-
- org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
-
- org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch
-
- All Implemented Interfaces:
Batch
public class NonBatchingBatch extends AbstractBatchImpl
An implementation ofBatchwhich does not perform batching. It simply executes each statement as it is encountered.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNonBatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBatch()Indicates completion of the current part of the batch.protected voidclearBatch(PreparedStatement statement)protected voiddoExecuteBatch()Perform batch execution..-
Methods inherited from class org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
abortBatch, addObserver, execute, getBatchStatement, getJdbcCoordinator, getKey, getStatements, notifyObserversExplicitExecution, notifyObserversImplicitExecution, release, releaseStatements, sqlExceptionHelper, sqlStatementLogger
-
-
-
-
Constructor Detail
-
NonBatchingBatch
protected NonBatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
-
-
Method Detail
-
addToBatch
public void addToBatch()
Description copied from interface:BatchIndicates completion of the current part of the batch.
-
clearBatch
protected void clearBatch(PreparedStatement statement)
- Overrides:
clearBatchin classAbstractBatchImpl
-
doExecuteBatch
protected void doExecuteBatch()
Description copied from class:AbstractBatchImplPerform batch execution.. This is called from the explicit execution, but may also be called from elsewhere depending on the exact implementation.- Specified by:
doExecuteBatchin classAbstractBatchImpl
-
-