Class AbstractMultiIdEntityLoader<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader<T>
-
- All Implemented Interfaces:
EntityLoader
,EntityMultiLoader<T>
,Loader
,MultiIdEntityLoader<T>
,MultiKeyLoader
- Direct Known Subclasses:
MultiIdEntityLoaderArrayParam
,MultiIdEntityLoaderStandard
public abstract class AbstractMultiIdEntityLoader<T> extends Object implements MultiIdEntityLoader<T>
Base support forMultiIdEntityLoader
implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiIdEntityLoader(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected EntityMappingType
getEntityDescriptor()
EntityIdentifierMapping
getIdentifierMapping()
EntityMappingType
getLoadable()
The value-mapping loaded by this loaderprotected SessionFactoryImplementor
getSessionFactory()
<K> List<T>
load(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
Load multiple entities by id.protected abstract <K> List<T>
performOrderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected abstract <K> List<T>
performUnorderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
-
-
-
Constructor Detail
-
AbstractMultiIdEntityLoader
public AbstractMultiIdEntityLoader(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getEntityDescriptor
protected EntityMappingType getEntityDescriptor()
-
getSessionFactory
protected SessionFactoryImplementor getSessionFactory()
-
getIdentifierMapping
public EntityIdentifierMapping getIdentifierMapping()
-
getLoadable
public EntityMappingType getLoadable()
Description copied from interface:Loader
The value-mapping loaded by this loader- Specified by:
getLoadable
in interfaceEntityLoader
- Specified by:
getLoadable
in interfaceLoader
-
load
public final <K> List<T> load(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
Description copied from interface:MultiIdEntityLoader
Load multiple entities by id. The exact result depends on the passed options.- Specified by:
load
in interfaceMultiIdEntityLoader<T>
-
performOrderedMultiLoad
protected abstract <K> List<T> performOrderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
-
performUnorderedMultiLoad
protected abstract <K> List<T> performUnorderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
-
-