Class CollectionLoaderBatchKey
- java.lang.Object
-
- org.hibernate.loader.ast.internal.CollectionLoaderBatchKey
-
- All Implemented Interfaces:
CollectionLoader
,Loader
public class CollectionLoaderBatchKey extends Object implements CollectionLoader
A one-time use CollectionLoader for applying a batch fetch
-
-
Constructor Summary
Constructors Constructor Description CollectionLoaderBatchKey(PluralAttributeMapping attributeMapping, int batchSize, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluralAttributeMapping
getLoadable()
The value-mapping loaded by this loaderPersistentCollection<?>
load(Object key, SharedSessionContractImplementor session)
Load a collection by its key (not necessarily the same as its owner's PK).
-
-
-
Constructor Detail
-
CollectionLoaderBatchKey
public CollectionLoaderBatchKey(PluralAttributeMapping attributeMapping, int batchSize, LoadQueryInfluencers influencers, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getLoadable
public PluralAttributeMapping getLoadable()
Description copied from interface:Loader
The value-mapping loaded by this loader- Specified by:
getLoadable
in interfaceCollectionLoader
- Specified by:
getLoadable
in interfaceLoader
-
load
public PersistentCollection<?> load(Object key, SharedSessionContractImplementor session)
Description copied from interface:CollectionLoader
Load a collection by its key (not necessarily the same as its owner's PK).- Specified by:
load
in interfaceCollectionLoader
-
-