Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.batch.internal

pack-priv final Class UnmodifiableBatchBuilderImpl

extends Object
implements BatchBuilder
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.batch.spi.BatchBuilder, org.hibernate.service.Service, java.io.Serializable
Imports
org.hibernate.engine.jdbc.batch.spi.Batch, .BatchBuilder, .BatchKey, org.hibernate.engine.jdbc.spi.JdbcCoordinator

Simplified version of BatchBuilderImpl which does not support changing the configured jdbc Batch size at runtime and is not exposed via JMX.
Author
Sanne Grinovero

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
UnmodifiableBatchBuilderImpl(int jdbcBatchSize)

Method Summary

Modifier and TypeMethod and Description
public Batch
buildBatch(BatchKey
Value to uniquely identify a batch
key
,
JdbcCoordinator
The JDBC coordinator with which to coordinate efforts
jdbcCoordinator
)

Implements org.hibernate.engine.jdbc.batch.spi.BatchBuilder.buildBatch.

Build a batch.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcBatchSizeback to summary
private final int jdbcBatchSize

Constructor Detail

UnmodifiableBatchBuilderImplback to summary
public UnmodifiableBatchBuilderImpl(int jdbcBatchSize)

Method Detail

buildBatchback to summary
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator)

Implements org.hibernate.engine.jdbc.batch.spi.BatchBuilder.buildBatch.

Doc from org.hibernate.engine.jdbc.batch.spi.BatchBuilder.buildBatch.

Build a batch.

Parameters
key:BatchKey

Value to uniquely identify a batch

jdbcCoordinator:JdbcCoordinator

The JDBC coordinator with which to coordinate efforts

Returns:Batch

The built batch

Annotations
@Override