Package org.hibernate.loader.ast.spi
Interface BatchLoaderFactory
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
StandardBatchLoaderFactory
Factory for
BatchLoader
instances-
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionBatchLoader
(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor factory) Create a BatchLoader for batch-loadable collections.<T> EntityBatchLoader<T>
createEntityBatchLoader
(int domainBatchSize, EntityMappingType entityDescriptor, LoadQueryInfluencers loadQueryInfluencers) Create a BatchLoader for batch-loadable entities.default <T> EntityBatchLoader<T>
createEntityBatchLoader
(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
createEntityBatchLoader
@Deprecated(forRemoval=true) default <T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory) Deprecated, for removal: This API element is subject to removal in a future version.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
-
createEntityBatchLoader
<T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, LoadQueryInfluencers loadQueryInfluencers) 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
-
createEntityBatchLoader(int, EntityMappingType, LoadQueryInfluencers)
instead