Class AbstractMultiIdEntityLoader<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.AbstractMultiIdEntityLoader<T>
-
- All Implemented Interfaces:
Preparable,EntityLoader,EntityMultiLoader<T>,Loader,MultiIdEntityLoader<T>,MultiKeyLoader
- Direct Known Subclasses:
MultiIdEntityLoaderArrayParam,MultiIdEntityLoaderStandard
public abstract class AbstractMultiIdEntityLoader<T> extends Object implements MultiIdEntityLoader<T>, Preparable
Base support for MultiIdEntityLoader 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 EntityMappingTypegetEntityDescriptor()EntityIdentifierMappinggetIdentifierMapping()EntityMappingTypegetLoadable()The value-mapping loaded by this loaderprotected SessionFactoryImplementorgetSessionFactory()<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)voidprepare()Perform the preparation
-
-
-
Constructor Detail
-
AbstractMultiIdEntityLoader
public AbstractMultiIdEntityLoader(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
prepare
public void prepare()
Description copied from interface:PreparablePerform the preparation- Specified by:
preparein interfacePreparable
-
getEntityDescriptor
protected EntityMappingType getEntityDescriptor()
-
getSessionFactory
protected SessionFactoryImplementor getSessionFactory()
-
getIdentifierMapping
public EntityIdentifierMapping getIdentifierMapping()
-
getLoadable
public EntityMappingType getLoadable()
Description copied from interface:LoaderThe value-mapping loaded by this loader- Specified by:
getLoadablein interfaceEntityLoader- Specified by:
getLoadablein interfaceLoader
-
load
public final <K> List<T> load(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
Description copied from interface:MultiIdEntityLoaderLoad multiple entities by id. The exact result depends on the passed options.- Specified by:
loadin 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)
-
-