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 JdbcParametersListgetJdbcParameters()JdbcOperationQuerySelectgetJdbcSelect()The JdbcSelect for the loadLoadablegetLoadable()The thing being loadedprotected LockOptionsgetLockOptions()ModelPartgetRestrictivePart()The part of the thing being loaded used to restrict which loadables get loadedprotected RowTransformer<T>getRowTransformer()Tload(Object restrictedValue, Boolean readOnly, Boolean singleResultExpected, SharedSessionContractImplementor session)Tload(Object restrictedValue, Boolean readOnly, SharedSessionContractImplementor session)Tload(Object restrictedValue, Object entityInstance, Boolean readOnly, Boolean singleResultExpected, SharedSessionContractImplementor session)Tload(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:LoadPlanThe thing being loaded- Specified by:
getLoadablein interfaceLoadPlan
-
getRestrictivePart
public ModelPart getRestrictivePart()
Description copied from interface:LoadPlanThe part of the thing being loaded used to restrict which loadables get loaded- Specified by:
getRestrictivePartin interfaceLoadPlan
-
getJdbcSelect
public JdbcOperationQuerySelect getJdbcSelect()
Description copied from interface:LoadPlanThe JdbcSelect for the load- Specified by:
getJdbcSelectin 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)
-
-