Package org.hibernate.jdbc
Class BatchingBatcher
java.lang.Object
org.hibernate.jdbc.AbstractBatcher
org.hibernate.jdbc.BatchingBatcher
- All Implemented Interfaces:
Batcher
An implementation of the Batcher interface that
actually uses batching
-
Field Summary
Fields inherited from class org.hibernate.jdbc.AbstractBatcher
log -
Constructor Summary
ConstructorsConstructorDescriptionBatchingBatcher(ConnectionManager connectionManager, Interceptor interceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToBatch(Expectation expectation) Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement())protected voidMethods inherited from class org.hibernate.jdbc.AbstractBatcher
abortBatch, cancelLastQuery, closeConnection, closeQueryStatement, closeStatement, closeStatements, executeBatch, getFactory, getResultSet, getResultSet, getStatement, hasOpenResources, openConnection, openResourceStatsAsString, prepareBatchCallableStatement, prepareBatchStatement, prepareCallableQueryStatement, prepareCallableStatement, prepareQueryStatement, prepareSelectStatement, prepareStatement, prepareStatement, prepareStatement, setTransactionTimeout, unsetTransactionTimeout
-
Constructor Details
-
BatchingBatcher
-
-
Method Details
-
addToBatch
Description copied from interface:BatcherAdd an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement())- Throws:
SQLExceptionHibernateException
-
doExecuteBatch
- Specified by:
doExecuteBatchin classAbstractBatcher- Throws:
SQLExceptionHibernateException
-