public abstract class ReactiveBatchingCollectionInitializerBuilder extends Object
collection initializers
. The getBuilder(SessionFactoryImplementor)
method selects between ReactivePaddedBatchingCollectionInitializerBuilder
and ReactiveDynamicBatchingCollectionInitializerBuilder
depending upon the org.hibernate.loader.BatchFetchStyle
selected.org.hibernate.loader.entity.BatchingEntityLoaderBuilder
Constructor and Description |
---|
ReactiveBatchingCollectionInitializerBuilder() |
Modifier and Type | Method and Description |
---|---|
protected ReactiveCollectionLoader | buildNonBatchingLoader(QueryableCollection persister, SessionFactoryImplementor factory, LoadQueryInfluencers influencers) |
ReactiveCollectionLoader | 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). |
ReactiveCollectionLoader | 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 ReactiveCollectionLoader | createRealBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers) |
protected abstract ReactiveCollectionLoader | createRealBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers) |
static ReactiveBatchingCollectionInitializerBuilder | getBuilder(SessionFactoryImplementor factory) |
public ReactiveBatchingCollectionInitializerBuilder()
public static ReactiveBatchingCollectionInitializerBuilder getBuilder(SessionFactoryImplementor factory)
public ReactiveCollectionLoader createBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
persister
- THe collection persistermaxBatchSize
- The maximum number of keys to batch-fetch togetherfactory
- The SessionFactoryinfluencers
- Any influencers that should affect the built queryprotected abstract ReactiveCollectionLoader createRealBatchingCollectionInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
public ReactiveCollectionLoader createBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
persister
- THe collection persistermaxBatchSize
- The maximum number of keys to batch-fetch togetherfactory
- The SessionFactoryinfluencers
- Any influencers that should affect the built queryprotected abstract ReactiveCollectionLoader createRealBatchingOneToManyInitializer(QueryableCollection persister, int maxBatchSize, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)
protected ReactiveCollectionLoader buildNonBatchingLoader(QueryableCollection persister, SessionFactoryImplementor factory, LoadQueryInfluencers influencers)