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 ofBatch
which does not perform batching. It simply executes each statement as it is encountered.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NonBatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToBatch()
Indicates completion of the current part of the batch.protected void
clearBatch(PreparedStatement statement)
protected void
doExecuteBatch()
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:Batch
Indicates completion of the current part of the batch.
-
clearBatch
protected void clearBatch(PreparedStatement statement)
- Overrides:
clearBatch
in classAbstractBatchImpl
-
doExecuteBatch
protected void doExecuteBatch()
Description copied from class:AbstractBatchImpl
Perform batch execution.. This is called from the explicit execution, but may also be called from elsewhere depending on the exact implementation.- Specified by:
doExecuteBatch
in classAbstractBatchImpl
-
-