Class BatchBuilderImpl
java.lang.Object
org.hibernate.engine.jdbc.batch.internal.BatchBuilderImpl
- All Implemented Interfaces:
Serializable
,BatchBuilder
,Service
A builder for
Batch
instances.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildBatch
(BatchKey batchKey, Integer sizeOverride, String table, SessionImplementor session, String sql) Intended for use from testsbuildBatch
(BatchKey key, Integer explicitBatchSize, Supplier<PreparedStatementGroup> statementGroupSupplier, JdbcCoordinator jdbcCoordinator) Build a batch.int
-
Constructor Details
-
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 Details
-
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
-
buildBatch
@Internal public BatchImpl buildBatch(BatchKey batchKey, Integer sizeOverride, String table, SessionImplementor session, String sql) Intended for use from tests
-