Class AbstractEntityBatchLoader<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport<T>
-
- org.hibernate.loader.ast.internal.AbstractEntityBatchLoader<T>
-
- All Implemented Interfaces:
BatchLoader,EntityBatchLoader<T>,EntityLoader,Loader,MultiKeyLoader,SingleEntityLoader<T>,SingleIdEntityLoader<T>
- Direct Known Subclasses:
EntityBatchLoaderArrayParam,EntityBatchLoaderInPredicate
public abstract class AbstractEntityBatchLoader<T> extends SingleIdEntityLoaderSupport<T> implements EntityBatchLoader<T>
-
-
Field Summary
-
Fields inherited from class org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractEntityBatchLoader(EntityMappingType entityDescriptor, LoadQueryInfluencers loadQueryInfluencers)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidinitializeEntities(Object[] idsToInitialize, Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)Tload(Object id, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)Tload(Object id, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)Load by primary key value, populating the passed entity instance.protected abstract Object[]resolveIdsToInitialize(Object id, SharedSessionContractImplementor session)-
Methods inherited from class org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport
getLoadable, loadDatabaseSnapshot
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.loader.ast.spi.BatchLoader
getDomainBatchSize
-
Methods inherited from interface org.hibernate.loader.ast.spi.SingleEntityLoader
getLoadable
-
Methods inherited from interface org.hibernate.loader.ast.spi.SingleIdEntityLoader
load, loadDatabaseSnapshot
-
-
-
-
Constructor Detail
-
AbstractEntityBatchLoader
public AbstractEntityBatchLoader(EntityMappingType entityDescriptor, LoadQueryInfluencers loadQueryInfluencers)
-
-
Method Detail
-
initializeEntities
protected abstract void initializeEntities(Object[] idsToInitialize, Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
-
resolveIdsToInitialize
protected abstract Object[] resolveIdsToInitialize(Object id, SharedSessionContractImplementor session)
-
load
public final T load(Object id, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
- Specified by:
loadin interfaceSingleIdEntityLoader<T>
-
load
public T load(Object id, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)
Description copied from interface:SingleIdEntityLoaderLoad by primary key value, populating the passed entity instance. Used to initialize an uninitialized bytecode-proxy orLoadEventhandling. The passed instance is the enhanced proxy or the entity to be loaded.- Specified by:
loadin interfaceSingleIdEntityLoader<T>
-
-