Class AbstractCollectionBatchLoader
- java.lang.Object
-
- org.hibernate.loader.ast.internal.AbstractCollectionBatchLoader
-
- All Implemented Interfaces:
BatchLoader
,CollectionBatchLoader
,CollectionLoader
,Loader
,MultiKeyLoader
- Direct Known Subclasses:
CollectionBatchLoaderArrayParam
,CollectionBatchLoaderInPredicate
public abstract class AbstractCollectionBatchLoader extends Object implements CollectionBatchLoader
-
-
Constructor Summary
Constructors Constructor Description AbstractCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finishInitializingKey(Object key, SharedSessionContractImplementor session)
int
getDomainBatchSize()
The total number of loadable references that can be initialized per each load operation.LoadQueryInfluencers
getInfluencers()
int
getKeyJdbcCount()
protected Class<?>
getKeyType(ValuedModelPart keyPart)
PluralAttributeMapping
getLoadable()
The value-mapping loaded by this loaderSessionFactoryImplementor
getSessionFactory()
PersistentCollection<?>
load(Object key, SharedSessionContractImplementor session)
Load a collection by its key (not necessarily the same as its owner's PK).
-
-
-
Constructor Detail
-
AbstractCollectionBatchLoader
public AbstractCollectionBatchLoader(int domainBatchSize, LoadQueryInfluencers influencers, PluralAttributeMapping attributeMapping, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getDomainBatchSize
public int getDomainBatchSize()
Description copied from interface:BatchLoader
The total number of loadable references that can be initialized per each load operation.- Specified by:
getDomainBatchSize
in interfaceBatchLoader
-
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
-
getInfluencers
public LoadQueryInfluencers getInfluencers()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
-
getKeyJdbcCount
public int getKeyJdbcCount()
-
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
-
finishInitializingKey
protected void finishInitializingKey(Object key, SharedSessionContractImplementor session)
-
getKeyType
protected Class<?> getKeyType(ValuedModelPart keyPart)
-
-