public abstract class BatchingCollectionInitializerBuilder extends Object
Contract for building CollectionInitializer instances capable of performing batch-fetch loading.
BatchFetchStyle| Constructor and Description |
|---|
BatchingCollectionInitializerBuilder() |
public BatchingCollectionInitializerBuilder()
public static BatchingCollectionInitializerBuilder getBuilder(SessionFactoryImplementor factory)
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).
persister - THe collection persistermaxBatchSize - The maximum number of keys to batch-fetch togetherfactory - The SessionFactoryinfluencers - Any influencers that should affect the built queryprotected abstract CollectionInitializer createRealBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
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).
persister - THe collection persistermaxBatchSize - The maximum number of keys to batch-fetch togetherfactory - The SessionFactoryinfluencers - Any influencers that should affect the built queryprotected abstract CollectionInitializer createRealBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
protected CollectionInitializer buildNonBatchingLoader(QueryableCollection persister, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.