Package org.hibernate.loader.entity.plan
Class BatchingEntityLoader
- java.lang.Object
-
- org.hibernate.loader.entity.plan.BatchingEntityLoader
-
- All Implemented Interfaces:
UniqueEntityLoader
- Direct Known Subclasses:
LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader
public abstract class BatchingEntityLoader extends java.lang.Object implements UniqueEntityLoader
The base contract for UniqueEntityLoader implementations capable of performing batch-fetch loading of entities using multiple primary key values in the SQL WHERE clause. Typically these are- See Also:
BatchingEntityLoaderBuilder
,UniqueEntityLoader
-
-
Constructor Summary
Constructors Constructor Description BatchingEntityLoader(EntityPersister persister)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryParameters
buildQueryParameters(java.io.Serializable id, java.io.Serializable[] ids, java.lang.Object optionalObject, LockOptions lockOptions)
protected java.lang.Object
doBatchLoad(java.io.Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, java.io.Serializable[] ids, java.lang.Object optionalObject, LockOptions lockOptions)
protected java.lang.Object
getObjectFromList(java.util.List results, java.io.Serializable id, SharedSessionContractImplementor session)
java.lang.Object
load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session)
Load an entity instance.EntityPersister
persister()
-
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.entity.UniqueEntityLoader
load
-
-
-
-
Constructor Detail
-
BatchingEntityLoader
public BatchingEntityLoader(EntityPersister persister)
-
-
Method Detail
-
persister
public EntityPersister persister()
-
load
public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session)
Description copied from interface:UniqueEntityLoader
Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.- Specified by:
load
in interfaceUniqueEntityLoader
-
buildQueryParameters
protected QueryParameters buildQueryParameters(java.io.Serializable id, java.io.Serializable[] ids, java.lang.Object optionalObject, LockOptions lockOptions)
-
getObjectFromList
protected java.lang.Object getObjectFromList(java.util.List results, java.io.Serializable id, SharedSessionContractImplementor session)
-
doBatchLoad
protected java.lang.Object doBatchLoad(java.io.Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, java.io.Serializable[] ids, java.lang.Object optionalObject, LockOptions lockOptions)
-
-