Class StandardBatchLoaderFactory
- java.lang.Object
-
- org.hibernate.loader.ast.internal.StandardBatchLoaderFactory
-
- All Implemented Interfaces:
Serializable
,BatchLoaderFactory
,Service
public class StandardBatchLoaderFactory extends Object implements BatchLoaderFactory
StandardBatchLoaderFactory
implementation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardBatchLoaderFactory(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
-
Method Summary
All Methods Instance Methods Concrete 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, LoadQueryInfluencers loadQueryInfluencers)
Create a BatchLoader for batch-loadable entities.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.loader.ast.spi.BatchLoaderFactory
createEntityBatchLoader
-
-
-
-
Constructor Detail
-
StandardBatchLoaderFactory
public StandardBatchLoaderFactory(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
-
-
Method Detail
-
createEntityBatchLoader
public <T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, LoadQueryInfluencers loadQueryInfluencers)
Description copied from interface:BatchLoaderFactory
Create a BatchLoader for batch-loadable entities.- Specified by:
createEntityBatchLoader
in interfaceBatchLoaderFactory
- Parameters:
domainBatchSize
- The total number of entities (max) that will be need to be initializedentityDescriptor
- The entity mapping metadata
-
createCollectionBatchLoader
public CollectionBatchLoader createCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor factory)
Description copied from interface:BatchLoaderFactory
Create a BatchLoader for batch-loadable collections.- Specified by:
createCollectionBatchLoader
in interfaceBatchLoaderFactory
- 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
-
-