类 EntityLoadQueryDetails
- java.lang.Object
-
- org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails
-
- org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails
-
- 所有已实现的接口:
LoadQueryDetails
public class EntityLoadQueryDetails extends AbstractLoadQueryDetails
Handles interpreting a LoadPlan (for loading of an entity) by:- generating the SQL query to perform
- creating the readers needed to read the results from the SQL's ResultSet
- 作者:
- Steve Ebersole, Gail Badner
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails
AbstractLoadQueryDetails.ReaderCollectorImpl
-
-
构造器概要
构造器 限定符 构造器 说明 protectedEntityLoadQueryDetails(EntityLoadQueryDetails initialEntityLoadQueryDetails, QueryBuildingParameters buildingParameters)protectedEntityLoadQueryDetails(LoadPlan loadPlan, String[] keyColumnNames, AliasResolutionContextImpl aliasResolutionContext, EntityReturn rootReturn, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)Constructs a EntityLoadQueryDetails object from the given inputs.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidapplyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder)protected voidapplyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder)protected voidapplyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder)protected voidapplyRootReturnTableFragments(SelectStatementBuilder select)Applies "table fragments" to the FROM-CLAUSE of the given SelectStatementBuilder for the given Loadableprotected voidapplyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder)protected ReaderCollectorgetReaderCollector()protected QuerySpacegetRootQuerySpace()protected StringgetRootTableAlias()booleanhasCollectionInitializers()protected booleanisSubselectLoadingEnabled(FetchStats fetchStats)Is subselect loading enabled?protected booleanshouldApplyRootReturnFilterBeforeKeyRestriction()protected booleanshouldUseOptionalEntityInstance()-
从类继承的方法 org.hibernate.loader.plan.exec.internal.AbstractLoadQueryDetails
generate, getAliasResolutionContext, getKeyColumnNames, getLoadPlan, getQueryBuildingParameters, getQuerySpace, getResultSetProcessor, getRootReturn, getSessionFactory, getSqlStatement
-
-
-
-
构造器详细资料
-
EntityLoadQueryDetails
protected EntityLoadQueryDetails(LoadPlan loadPlan, String[] keyColumnNames, AliasResolutionContextImpl aliasResolutionContext, EntityReturn rootReturn, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)
Constructs a EntityLoadQueryDetails object from the given inputs.- 参数:
loadPlan- The load plankeyColumnNames- The columns to load the entity by (the PK columns or some other unique set of columns)buildingParameters- Any influencers that would affect the generated SQL (mostly we are concerned with those that add additional joins here)factory- The SessionFactory
-
EntityLoadQueryDetails
protected EntityLoadQueryDetails(EntityLoadQueryDetails initialEntityLoadQueryDetails, QueryBuildingParameters buildingParameters)
-
-
方法详细资料
-
hasCollectionInitializers
public boolean hasCollectionInitializers()
-
applyRootReturnTableFragments
protected void applyRootReturnTableFragments(SelectStatementBuilder select)
Applies "table fragments" to the FROM-CLAUSE of the given SelectStatementBuilder for the given Loadable- 指定者:
applyRootReturnTableFragments在类中AbstractLoadQueryDetails- 参数:
select- The SELECT statement builder- 另请参阅:
OuterJoinLoadable.fromTableFragment(java.lang.String),Joinable.fromJoinFragment(java.lang.String, boolean, boolean)
-
applyRootReturnFilterRestrictions
protected void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder)
-
applyRootReturnWhereJoinRestrictions
protected void applyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder)
-
applyRootReturnOrderByFragments
protected void applyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder)
-
isSubselectLoadingEnabled
protected boolean isSubselectLoadingEnabled(FetchStats fetchStats)
从类复制的说明:AbstractLoadQueryDetailsIs subselect loading enabled?- 指定者:
isSubselectLoadingEnabled在类中AbstractLoadQueryDetails- 参数:
fetchStats- the fetch stats; may be null- 返回:
trueif subselect loading is enabled;falseotherwise.
-
shouldUseOptionalEntityInstance
protected boolean shouldUseOptionalEntityInstance()
-
getReaderCollector
protected ReaderCollector getReaderCollector()
-
getRootQuerySpace
protected QuerySpace getRootQuerySpace()
-
getRootTableAlias
protected String getRootTableAlias()
-
shouldApplyRootReturnFilterBeforeKeyRestriction
protected boolean shouldApplyRootReturnFilterBeforeKeyRestriction()
-
applyRootReturnSelectFragments
protected void applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder)
-
-