Top Description Fields Constructors Methods
org.hibernate.loader.ast.internal

public Class SingleIdEntityLoaderStandardImpl<T>

extends SingleIdEntityLoaderSupport<T>
Class Inheritance
Imports
java.util.EnumMap, java.util.function.BiFunction, org.hibernate.Internal, .LockMode, .LockOptions, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.loader.ast.spi.CascadingFetchProfile, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.sql.ast.tree.select.SelectStatement, org.hibernate.sql.exec.spi.JdbcParametersList

Standard implementation of org.hibernate.loader.ast.spi.SingleIdEntityLoader.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final BiFunction<LockOptions, LoadQueryInfluencers, SingleIdLoadPlan<T>>
private EnumMap<CascadingFetchProfile, SingleIdLoadPlan<T>>
private final EnumMap<LockMode, SingleIdLoadPlan<T>>
Inherited from org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport:
sessionFactory

Constructor Summary

AccessConstructor and Description
public
SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
protected
SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory, BiFunction<LockOptions, LoadQueryInfluencers, SingleIdLoadPlan<T>> loadPlanCreator)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
For Hibernate Reactive.

Method Summary

Modifier and TypeMethod and Description
private static <T> SingleIdLoadPlan<T>
createLoadPlan(EntityMappingType loadable, LockOptions lockOptions, LoadQueryInfluencers queryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private SingleIdLoadPlan<T>
getInternalCascadeLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private SingleIdLoadPlan<T>
getRegularLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private boolean
isLoadPlanReusable(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers)

public T
load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.SingleIdEntityLoader.load.

Load by primary key value
public T
public SingleIdLoadPlan<T>
resolveLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from org.hibernate.loader.ast.internal.SingleIdEntityLoaderSupport:
getLoadableloadDatabaseSnapshot

Field Detail

loadPlanCreatorback to summary
private final BiFunction<LockOptions, LoadQueryInfluencers, SingleIdLoadPlan<T>> loadPlanCreator
selectByInternalCascadeProfileback to summary
private EnumMap<CascadingFetchProfile, SingleIdLoadPlan<T>> selectByInternalCascadeProfile
selectByLockModeback to summary
private final EnumMap<LockMode, SingleIdLoadPlan<T>> selectByLockMode

Constructor Detail

SingleIdEntityLoaderStandardImplback to summary
public SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

SingleIdEntityLoaderStandardImplback to summary
protected SingleIdEntityLoaderStandardImpl(EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory, BiFunction<LockOptions, LoadQueryInfluencers, SingleIdLoadPlan<T>> loadPlanCreator)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

For Hibernate Reactive.

Hibernate Reactive needs to be able to override the LoadPlan.

Method Detail

createLoadPlanback to summary
private static <T> SingleIdLoadPlan<T> createLoadPlan(EntityMappingType loadable, LockOptions lockOptions, LoadQueryInfluencers queryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

getInternalCascadeLoadPlanback to summary
private SingleIdLoadPlan<T> getInternalCascadeLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

getRegularLoadPlanback to summary
private SingleIdLoadPlan<T> getRegularLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

isLoadPlanReusableback to summary
private boolean isLoadPlanReusable(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers)
loadback to summary
public T load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.SingleIdEntityLoader.load.

Doc from org.hibernate.loader.ast.spi.SingleIdEntityLoader.load.

Load by primary key value

Annotations
@Override
loadback to summary
public T load(Object key, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)

Implements org.hibernate.loader.ast.spi.SingleIdEntityLoader.load.

Annotations
@Override
resolveLoadPlanback to summary
public SingleIdLoadPlan<T> resolveLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Internal