org.hibernate.jdbc

Class NonBatchingBatcher

Implemented Interfaces:
Batcher

public class NonBatchingBatcher
extends AbstractBatcher

An implementation of the Batcher interface that does no batching
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.jdbc.AbstractBatcher

log

Constructor Summary

NonBatchingBatcher(ConnectionManager connectionManager, Interceptor interceptor)

Method Summary

void
addToBatch(Expectation expectation)
Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement())
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

NonBatchingBatcher

public NonBatchingBatcher(ConnectionManager connectionManager,
                          Interceptor interceptor)

Method Details

addToBatch

public void addToBatch(Expectation expectation)
            throws SQLException,
                   HibernateException
Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement())
Specified by:
addToBatch in interface Batcher

doExecuteBatch

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