Package org.hibernate.loader.ast.spi
Interface BatchLoaderFactory
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
StandardBatchLoaderFactory
public interface BatchLoaderFactory extends Service
Factory forBatchLoader
instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectionBatchLoader
createCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor factory)
Create a BatchLoader for batch-loadable collections.<T> EntityBatchLoader<T>
createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory)
Create a BatchLoader for batch-loadable entities.
-
-
-
Method Detail
-
createEntityBatchLoader
<T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory)
Create a BatchLoader for batch-loadable entities.- Parameters:
domainBatchSize
- The total number of entities (max) that will be need to be initializedentityDescriptor
- The entity mapping metadata
-
createCollectionBatchLoader
CollectionBatchLoader createCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor factory)
Create a BatchLoader for batch-loadable collections.- Parameters:
domainBatchSize
- The total number of collections (max) that will be initialized for anyCollectionLoader.load(java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor)
influencers
- Any load query influencers (filters, fetch-profiles, ...) to apply to the SQLattributeMapping
- The collection mapping metadata
-
-