Class StandardBatchLoaderFactory
- java.lang.Object
-
- org.hibernate.loader.ast.internal.StandardBatchLoaderFactory
-
- All Implemented Interfaces:
Serializable,BatchLoaderFactory,Service
public class StandardBatchLoaderFactory extends Object implements BatchLoaderFactory
StandardBatchLoaderFactoryimplementation- 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 CollectionBatchLoadercreateCollectionBatchLoader(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.
-
-
-
Constructor Detail
-
StandardBatchLoaderFactory
public StandardBatchLoaderFactory(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
-
-
Method Detail
-
createEntityBatchLoader
public <T> EntityBatchLoader<T> createEntityBatchLoader(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor factory)
Description copied from interface:BatchLoaderFactoryCreate a BatchLoader for batch-loadable entities.- Specified by:
createEntityBatchLoaderin 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:BatchLoaderFactoryCreate a BatchLoader for batch-loadable collections.- Specified by:
createCollectionBatchLoaderin 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
-
-