org.hibernate.jdbc

Class BatchingBatcher

Implemented Interfaces:
Batcher

public class BatchingBatcher
extends AbstractBatcher

An implementation of the Batcher interface that actually uses batching
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.jdbc.AbstractBatcher

log

Constructor Summary

BatchingBatcher(ConnectionManager connectionManager, Interceptor interceptor)

Method Summary

void
addToBatch(Expectation expectation)
protected void
doExecuteBatch(PreparedStatement ps)

Methods inherited from class org.hibernate.jdbc.AbstractBatcher

abortBatch, cancelLastQuery, closeConnection, closeQueryStatement, closeStatement, closeStatements, doExecuteBatch, executeBatch, getFactory, getResultSet, getResultSet, getStatement, hasOpenResources, openConnection, openResourceStatsAsString, prepareBatchCallableStatement, prepareBatchStatement, prepareCallableQueryStatement, prepareCallableStatement, prepareQueryStatement, prepareSelectStatement, prepareStatement, prepareStatement, prepareStatement, setTransactionTimeout, unsetTransactionTimeout

Constructor Details

BatchingBatcher

public BatchingBatcher(ConnectionManager connectionManager,
                       Interceptor interceptor)

Method Details

addToBatch

public void addToBatch(Expectation expectation)
            throws SQLException,
                   HibernateException
Specified by:
addToBatch in interface Batcher

doExecuteBatch

protected void doExecuteBatch(PreparedStatement ps)
            throws SQLException,
                   HibernateException
Overrides:
doExecuteBatch in interface AbstractBatcher