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 forBatch
instances.- 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 Batch
buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)
Build a batch.int
getJdbcBatchSize()
void
setJdbcBatchSize(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:BatchBuilder
Build a batch.- Specified by:
buildBatch
in interfaceBatchBuilder
- Parameters:
key
- Value to uniquely identify a batchjdbcCoordinator
- The JDBC coordinator with which to coordinate efforts- Returns:
- The built batch
-
-