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(int globalBatchSize)
Constructs a BatchBuilderImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchImpl
buildBatch(BatchKey batchKey, Integer sizeOverride, String table, SessionImplementor session, String sql)
Intended for use from testsBatch
buildBatch(BatchKey key, Integer explicitBatchSize, Supplier<PreparedStatementGroup> statementGroupSupplier, JdbcCoordinator jdbcCoordinator)
Build a batch.int
getJdbcBatchSize()
-
-
-
Constructor Detail
-
BatchBuilderImpl
public BatchBuilderImpl(int globalBatchSize)
Constructs a BatchBuilderImpl- Parameters:
globalBatchSize
- The batch size to use. Can be overridden onbuildBatch(org.hibernate.engine.jdbc.batch.spi.BatchKey, java.lang.Integer, java.util.function.Supplier<org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup>, org.hibernate.engine.jdbc.spi.JdbcCoordinator)
-
-
Method Detail
-
getJdbcBatchSize
public int getJdbcBatchSize()
-
buildBatch
public Batch buildBatch(BatchKey key, Integer explicitBatchSize, Supplier<PreparedStatementGroup> statementGroupSupplier, JdbcCoordinator jdbcCoordinator)
Description copied from interface:BatchBuilder
Build a batch.- Specified by:
buildBatch
in interfaceBatchBuilder
-
-