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()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(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: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)
-
-