Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.batch.internal

public Class NonBatchingBatch

extends AbstractBatchImpl
Class Inheritance
Imports
java.sql.PreparedStatement, .SQLException, java.util.Map, org.hibernate.JDBCException, org.hibernate.engine.jdbc.batch.spi.BatchKey, org.hibernate.engine.jdbc.spi.JdbcCoordinator, org.hibernate.internal.CoreMessageLogger, org.jboss.logging.Logger

An implementation of org.hibernate.engine.jdbc.batch.spi.Batch which does not perform batching. It simply executes each statement as it is encountered.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private JdbcCoordinator
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
addToBatch()

Implements org.hibernate.engine.jdbc.batch.spi.Batch.addToBatch.

Indicates completion of the current part of the batch.
protected void
protected void
Inherited from org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl:
abortBatchaddObserverexecutegetBatchStatementgetJdbcCoordinatorgetKeygetStatementsnotifyObserversExplicitExecutionnotifyObserversImplicitExecutionreleasereleaseStatementssqlExceptionHelpersqlStatementLogger

Field Detail

jdbcCoordinatorback to summary
private JdbcCoordinator jdbcCoordinator

Hides org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.jdbcCoordinator.

LOGback to summary
private static final CoreMessageLogger LOG

Hides org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.LOG.

Constructor Detail

NonBatchingBatchback to summary
protected NonBatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)

Method Detail

addToBatchback to summary
public void addToBatch()

Implements org.hibernate.engine.jdbc.batch.spi.Batch.addToBatch.

Doc from org.hibernate.engine.jdbc.batch.spi.Batch.addToBatch.

Indicates completion of the current part of the batch.

Annotations
@Override
clearBatchback to summary
protected void clearBatch(PreparedStatement statement)

Overrides org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.clearBatch.

Annotations
@Override
doExecuteBatchback to summary
protected void doExecuteBatch()

Implements abstract org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.doExecuteBatch.

Doc from org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.doExecuteBatch.

Perform batch execution..

This is called from the explicit execution, but may also be called from elsewhere depending on the exact implementation.

Annotations
@Override