Class SingleIdLoadPlan<T>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.SingleIdLoadPlan<T>
-
- All Implemented Interfaces:
LoadPlan
,SingleEntityLoadPlan
- Direct Known Subclasses:
SingleIdArrayLoadPlan
public class SingleIdLoadPlan<T> extends Object implements SingleEntityLoadPlan
todo (6.0) : this can generically define a load-by-uk as well. only the SQL AST and `restrictivePart` vary and they are passed as ctor args Describes a plan for loading an entity by identifier.
-
-
Constructor Summary
Constructors Constructor Description SingleIdLoadPlan(Loadable persister, ModelPart restrictivePart, SelectStatement sqlAst, List<JdbcParameter> jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<JdbcParameter>
getJdbcParameters()
JdbcOperationQuerySelect
getJdbcSelect()
The JdbcSelect for the loadLoadable
getLoadable()
The thing being loadedprotected LockOptions
getLockOptions()
ModelPart
getRestrictivePart()
The part of the thing being loaded used to restrict which loadables get loadedprotected RowTransformer<T>
getRowTransformer()
T
load(Object restrictedValue, Boolean readOnly, Boolean singleResultExpected, SharedSessionContractImplementor session)
T
load(Object restrictedValue, Boolean readOnly, SharedSessionContractImplementor session)
T
load(Object restrictedValue, Object entityInstance, Boolean readOnly, Boolean singleResultExpected, SharedSessionContractImplementor session)
T
load(Object restrictedValue, SharedSessionContractImplementor session)
-
-
-
Constructor Detail
-
SingleIdLoadPlan
public SingleIdLoadPlan(Loadable persister, ModelPart restrictivePart, SelectStatement sqlAst, List<JdbcParameter> jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getLockOptions
protected LockOptions getLockOptions()
-
getJdbcParameters
protected List<JdbcParameter> getJdbcParameters()
-
getLoadable
public Loadable getLoadable()
Description copied from interface:LoadPlan
The thing being loaded- Specified by:
getLoadable
in interfaceLoadPlan
-
getRestrictivePart
public ModelPart getRestrictivePart()
Description copied from interface:LoadPlan
The part of the thing being loaded used to restrict which loadables get loaded- Specified by:
getRestrictivePart
in interfaceLoadPlan
-
getJdbcSelect
public JdbcOperationQuerySelect getJdbcSelect()
Description copied from interface:LoadPlan
The JdbcSelect for the load- Specified by:
getJdbcSelect
in interfaceLoadPlan
-
getRowTransformer
protected RowTransformer<T> getRowTransformer()
-
load
public T load(Object restrictedValue, SharedSessionContractImplementor session)
-
load
public T load(Object restrictedValue, Boolean readOnly, SharedSessionContractImplementor session)
-
load
public T load(Object restrictedValue, Boolean readOnly, Boolean singleResultExpected, SharedSessionContractImplementor session)
-
-