类 BatchingBatch
- java.lang.Object
-
- org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
-
- org.hibernate.engine.jdbc.batch.internal.BatchingBatch
-
- 所有已实现的接口:
Batch
public class BatchingBatch extends AbstractBatchImpl
ABatchimplementation which does bathing based on a given size. Once the batch size is reached for a statement in the batch, the entire batch is implicitly executed.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 BatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator, int batchSize)Constructs a BatchingBatch
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddToBatch()Indicates completion of the current part of the batch.protected voiddoExecuteBatch()Perform batch execution..PreparedStatementgetBatchStatement(String sql, boolean callable)Get a statement which is part of the batch, creating if necessary (and storing for next time).-
从类继承的方法 org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl
abortBatch, addObserver, clearBatch, execute, getJdbcCoordinator, getKey, getStatements, notifyObserversExplicitExecution, notifyObserversImplicitExecution, release, releaseStatements, sqlExceptionHelper, sqlStatementLogger
-
-
-
-
构造器详细资料
-
BatchingBatch
public BatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator, int batchSize)
Constructs a BatchingBatch- 参数:
key- The batch keyjdbcCoordinator- The JDBC jdbcCoordinatorbatchSize- The batch size.
-
-
方法详细资料
-
getBatchStatement
public PreparedStatement getBatchStatement(String sql, boolean callable)
从接口复制的说明:BatchGet a statement which is part of the batch, creating if necessary (and storing for next time).- 指定者:
getBatchStatement在接口中Batch- 覆盖:
getBatchStatement在类中AbstractBatchImpl- 参数:
sql- The SQL statement.callable- Is the SQL statement callable?- 返回:
- The prepared statement instance, representing the SQL statement.
-
addToBatch
public void addToBatch()
从接口复制的说明:BatchIndicates completion of the current part of the batch.
-
doExecuteBatch
protected void doExecuteBatch()
从类复制的说明:AbstractBatchImplPerform batch execution.. This is called from the explicitexecution, but may also be called from elsewhere depending on the exact implementation.- 指定者:
doExecuteBatch在类中AbstractBatchImpl
-
-