Class StandardBatchLoaderFactory
java.lang.Object
org.hibernate.loader.ast.internal.StandardBatchLoaderFactory
- All Implemented Interfaces:
Serializable
,BatchLoaderFactory
,Service
Standard
BatchLoaderFactory
implementation- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandardBatchLoaderFactory
(Map<String, Object> configurationValues, ServiceRegistryImplementor registry) -
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.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 Details
-
StandardBatchLoaderFactory
public StandardBatchLoaderFactory(Map<String, Object> configurationValues, ServiceRegistryImplementor registry)
-
-
Method Details
-
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
-