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.- Implementation Note:
- Made up of (1) a SQL AST for the SQL SELECT and (2) the `ModelPart` used as the restriction
-
-
Constructor Summary
Constructors Constructor Description SingleIdLoadPlan(EntityMappingType entityMappingType, ModelPart restrictivePart, SelectStatement sqlAst, JdbcParametersList jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JdbcParametersList
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(EntityMappingType entityMappingType, ModelPart restrictivePart, SelectStatement sqlAst, JdbcParametersList jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getLockOptions
protected LockOptions getLockOptions()
-
getJdbcParameters
protected JdbcParametersList 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)
-
-