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 PluralAttributeMappinggetLoadable()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:LoaderThe value-mapping loaded by this loader- Specified by:
getLoadablein interfaceCollectionLoader- Specified by:
getLoadablein interfaceLoader
-
load
public PersistentCollection<?> load(Object key, SharedSessionContractImplementor session)
Description copied from interface:CollectionLoaderLoad a collection by its key (not necessarily the same as its owner's PK).- Specified by:
loadin interfaceCollectionLoader
-
-