org.hibernate.loader.collection
Class BatchingCollectionInitializerBuilder

java.lang.Object
  extended by org.hibernate.loader.collection.BatchingCollectionInitializerBuilder
Direct Known Subclasses:
DynamicBatchingCollectionInitializerBuilder, LegacyBatchingCollectionInitializerBuilder, PaddedBatchingCollectionInitializerBuilder

public abstract class BatchingCollectionInitializerBuilder
extends Object

Contract for building CollectionInitializer instances capable of performing batch-fetch loading.

See Also:
BatchFetchStyle

Constructor Summary
BatchingCollectionInitializerBuilder()
           
 
Method Summary
 CollectionInitializer createBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
          Builds a batch-fetch capable CollectionInitializer for basic and many-to-many collections (collections with a dedicated collection table).
 CollectionInitializer createBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
          Builds a batch-fetch capable CollectionInitializer for one-to-many collections (collections without a dedicated collection table).
protected abstract  CollectionInitializer createRealBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
           
protected abstract  CollectionInitializer createRealBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
           
static BatchingCollectionInitializerBuilder getBuilder(SessionFactoryImplementor factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchingCollectionInitializerBuilder

public BatchingCollectionInitializerBuilder()
Method Detail

getBuilder

public static BatchingCollectionInitializerBuilder getBuilder(SessionFactoryImplementor factory)

createBatchingCollectionInitializer

public CollectionInitializer createBatchingCollectionInitializer(QueryableCollection persister,
                                                                 int maxBatchSize,
                                                                 SessionFactoryImplementor factory,
                                                                 LoadQueryInfluencers influencers)
Builds a batch-fetch capable CollectionInitializer for basic and many-to-many collections (collections with a dedicated collection table).

Parameters:
persister - THe collection persister
maxBatchSize - The maximum number of keys to batch-fetch together
factory - The SessionFactory
influencers - Any influencers that should affect the built query
Returns:
The batch-fetch capable collection initializer

createRealBatchingCollectionInitializer

protected abstract CollectionInitializer createRealBatchingCollectionInitializer(QueryableCollection persister,
                                                                                 int maxBatchSize,
                                                                                 SessionFactoryImplementor factory,
                                                                                 LoadQueryInfluencers influencers)

createBatchingOneToManyInitializer

public CollectionInitializer createBatchingOneToManyInitializer(QueryableCollection persister,
                                                                int maxBatchSize,
                                                                SessionFactoryImplementor factory,
                                                                LoadQueryInfluencers influencers)
Builds a batch-fetch capable CollectionInitializer for one-to-many collections (collections without a dedicated collection table).

Parameters:
persister - THe collection persister
maxBatchSize - The maximum number of keys to batch-fetch together
factory - The SessionFactory
influencers - Any influencers that should affect the built query
Returns:
The batch-fetch capable collection initializer

createRealBatchingOneToManyInitializer

protected abstract CollectionInitializer createRealBatchingOneToManyInitializer(QueryableCollection persister,
                                                                                int maxBatchSize,
                                                                                SessionFactoryImplementor factory,
                                                                                LoadQueryInfluencers influencers)


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.