Class SingleIdEntityLoaderStandardImpl<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport<T>
-
- org.hibernate.loader.ast.internal.SingleIdEntityLoaderStandardImpl<T>
-
- All Implemented Interfaces:
Preparable
,EntityLoader
,Loader
,SingleEntityLoader<T>
,SingleIdEntityLoader<T>
public class SingleIdEntityLoaderStandardImpl<T> extends SingleIdEntityLoaderSupport<T> implements Preparable
Standard implementation of SingleIdEntityLoader
-
-
Field Summary
-
Fields inherited from class org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicInteger
getNonReusablePlansGenerated()
T
load(Object key, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key value, populating the passed entity instance.T
load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key valuevoid
prepare()
Perform the preparationSingleIdLoadPlan<T>
resolveLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)
-
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.SingleIdEntityLoader
load
-
-
-
-
Constructor Detail
-
SingleIdEntityLoaderStandardImpl
public SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getNonReusablePlansGenerated
public AtomicInteger getNonReusablePlansGenerated()
-
prepare
public void prepare()
Description copied from interface:Preparable
Perform the preparation- Specified by:
prepare
in interfacePreparable
-
load
public T load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Description copied from interface:SingleIdEntityLoader
Load by primary key value- Specified by:
load
in interfaceSingleEntityLoader<T>
- Specified by:
load
in interfaceSingleIdEntityLoader<T>
-
load
public T load(Object key, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Description copied from interface:SingleIdEntityLoader
Load by primary key value, populating the passed entity instance. Used to initialize an uninitialized bytecode-proxy orLoadEvent
handling. The passed instance is the enhanced proxy or the entity to be loaded.- Specified by:
load
in interfaceSingleIdEntityLoader<T>
-
resolveLoadPlan
public SingleIdLoadPlan<T> resolveLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)
-
-