Package org.hibernate.loader.entity
Class BatchingEntityLoader
- java.lang.Object
-
- org.hibernate.loader.entity.BatchingEntityLoader
-
- All Implemented Interfaces:
UniqueEntityLoader
- Direct Known Subclasses:
DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader,LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader
public abstract class BatchingEntityLoader extends Object implements UniqueEntityLoader
The base contract for loaders capable of performing batch-fetch loading of entities using multiple primary key values in the SQL WHERE clause.- 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 QueryParametersbuildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)protected ObjectdoBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)protected ObjectgetObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session)Load an entity instance.EntityPersisterpersister()-
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 Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)
Description copied from interface:UniqueEntityLoaderLoad an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.- Specified by:
loadin interfaceUniqueEntityLoader
-
buildQueryParameters
protected QueryParameters buildQueryParameters(Serializable id, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
-
getObjectFromList
protected Object getObjectFromList(List results, Serializable id, SharedSessionContractImplementor session)
-
doBatchLoad
protected Object doBatchLoad(Serializable id, Loader loaderToUse, SharedSessionContractImplementor session, Serializable[] ids, Object optionalObject, LockOptions lockOptions)
-
-