Package org.hibernate.loader.entity.plan
Class LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader
- java.lang.Object
-
- org.hibernate.loader.entity.plan.BatchingEntityLoader
-
- org.hibernate.loader.entity.plan.LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader
-
- All Implemented Interfaces:
UniqueEntityLoader
- Enclosing class:
- LegacyBatchingEntityLoaderBuilder
public static class LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader extends BatchingEntityLoader
-
-
Constructor Summary
Constructors Modifier Constructor Description LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
protected
LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
Load an entity instance by id.-
Methods inherited from class org.hibernate.loader.entity.plan.BatchingEntityLoader
buildQueryParameters, doBatchLoad, getObjectFromList, load, persister
-
-
-
-
Constructor Detail
-
LegacyBatchingEntityLoader
public LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
LegacyBatchingEntityLoader
public LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
LegacyBatchingEntityLoader
protected LegacyBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
-
Method Detail
-
load
public java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
Description copied from interface:UniqueEntityLoader
Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.- Parameters:
id
- The id to be loadedoptionalObject
- The (optional) entity instance in to which to load the statesession
- The session from which the request originatedlockOptions
- The lock options.- Returns:
- The loaded entity
-
-