Class BatchBuilderImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.batch.internal.BatchBuilderImpl
-
- All Implemented Interfaces:
Serializable,BatchBuilder,Service
public class BatchBuilderImpl extends Object implements BatchBuilder
A builder forBatchinstances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BatchBuilderImpl()Constructs a BatchBuilderImplBatchBuilderImpl(int jdbcBatchSize)Constructs a BatchBuilderImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchbuildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)Build a batch.intgetJdbcBatchSize()voidsetJdbcBatchSize(int jdbcBatchSize)
-
-
-
Method Detail
-
getJdbcBatchSize
public int getJdbcBatchSize()
-
setJdbcBatchSize
public void setJdbcBatchSize(int jdbcBatchSize)
-
buildBatch
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
Description copied from interface:BatchBuilderBuild a batch.- Specified by:
buildBatchin interfaceBatchBuilder- Parameters:
key- Value to uniquely identify a batchjdbcCoordinator- The JDBC coordinator with which to coordinate efforts- Returns:
- The built batch
-
-