Top Description Fields Constructors Methods
org.hibernate.loader.collection

public Class BatchingCollectionInitializer

extends Object
implements CollectionInitializer
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.collection.CollectionInitializer
Imports
java.io.Serializable, org.hibernate.HibernateException, .MappingException, org.hibernate.engine.SessionFactoryImplementor, .SessionImplementor, .LoadQueryInfluencers, org.hibernate.loader.Loader, org.hibernate.persister.collection.CollectionPersister, .QueryableCollection, org.hibernate.util.ArrayHelper

"Batch" loads collections, using multiple foreign key values in the SQL where clause.
Author
Gavin King
See Also
BasicCollectionLoader, OneToManyLoader

Field Summary

Modifier and TypeField and Description
private final int[]
private final CollectionPersister
private final Loader[]

Constructor Summary

AccessConstructor and Description
public
BatchingCollectionInitializer(CollectionPersister collPersister, int[] batchSizes, Loader[] loaders)

Method Summary

Modifier and TypeMethod and Description
public static CollectionInitializer
createBatchingCollectionInitializer(final QueryableCollection persister, final int maxBatchSize, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers)

public static CollectionInitializer
createBatchingOneToManyInitializer(final QueryableCollection persister, final int maxBatchSize, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers)

public int[]
public CollectionPersister
public Loader[]
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

batchSizesback to summary
private final int[] batchSizes
collectionPersisterback to summary
private final CollectionPersister collectionPersister
loadersback to summary
private final Loader[] loaders

Constructor Detail

BatchingCollectionInitializerback to summary
public BatchingCollectionInitializer(CollectionPersister collPersister, int[] batchSizes, Loader[] loaders)

Method Detail

createBatchingCollectionInitializerback to summary
public static CollectionInitializer createBatchingCollectionInitializer(final QueryableCollection persister, final int maxBatchSize, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers) throws MappingException
createBatchingOneToManyInitializerback to summary
public static CollectionInitializer createBatchingOneToManyInitializer(final QueryableCollection persister, final int maxBatchSize, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers) throws MappingException
getBatchSizesback to summary
public int[] getBatchSizes()
getCollectionPersisterback to summary
public CollectionPersister getCollectionPersister()
getLoadersback to summary
public Loader[] getLoaders()
initializeback to summary
public void initialize(Serializable id, SessionImplementor session) throws HibernateException

Implements org.hibernate.loader.collection.CollectionInitializer.initialize.

Doc from org.hibernate.loader.collection.CollectionInitializer.initialize.

Initialize the given collection