org.hibernate.test.insertordering
Class InsertOrderingTest.StatsBatch

java.lang.Object
  extended by org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
      extended by org.hibernate.engine.jdbc.batch.internal.BatchingBatch
          extended by org.hibernate.test.insertordering.InsertOrderingTest.StatsBatch
All Implemented Interfaces:
Batch
Enclosing class:
InsertOrderingTest

public static class InsertOrderingTest.StatsBatch
extends BatchingBatch


Constructor Summary
InsertOrderingTest.StatsBatch(BatchKey key, JdbcCoordinator jdbcCoordinator, int jdbcBatchSize)
           
 
Method Summary
 void addToBatch()
          Indicates completion of the current part of the batch.
 PreparedStatement getBatchStatement(String sql, boolean callable)
          Get a statement which is part of the batch, creating if necessary (and storing for next time).
 
Methods inherited from class org.hibernate.engine.jdbc.batch.internal.BatchingBatch
doExecuteBatch
 
Methods inherited from class org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
addObserver, execute, getKey, getStatements, notifyObserversExplicitExecution, notifyObserversImplicitExecution, release, sqlExceptionHelper, sqlStatementLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertOrderingTest.StatsBatch

public InsertOrderingTest.StatsBatch(BatchKey key,
                                     JdbcCoordinator jdbcCoordinator,
                                     int jdbcBatchSize)
Method Detail

getBatchStatement

public PreparedStatement getBatchStatement(String sql,
                                           boolean callable)
Description copied from interface: Batch
Get a statement which is part of the batch, creating if necessary (and storing for next time).

Specified by:
getBatchStatement in interface Batch
Overrides:
getBatchStatement in class BatchingBatch
Parameters:
sql - The SQL statement.
callable - Is the SQL statement callable?
Returns:
The prepared statement instance, representing the SQL statement.

addToBatch

public void addToBatch()
Description copied from interface: Batch
Indicates completion of the current part of the batch.

Specified by:
addToBatch in interface Batch
Overrides:
addToBatch in class BatchingBatch


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.