public class EntityLoadQueryDetails extends AbstractLoadQueryDetails
AbstractLoadQueryDetails.ReaderCollectorImpl
Modifier | Constructor and Description |
---|---|
protected |
EntityLoadQueryDetails(EntityLoadQueryDetails initialEntityLoadQueryDetails,
QueryBuildingParameters buildingParameters) |
protected |
EntityLoadQueryDetails(LoadPlan loadPlan,
java.lang.String[] keyColumnNames,
AliasResolutionContextImpl aliasResolutionContext,
EntityReturn rootReturn,
QueryBuildingParameters buildingParameters,
SessionFactoryImplementor factory)
Constructs a EntityLoadQueryDetails object from the given inputs.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder) |
protected void |
applyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder) |
protected void |
applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder) |
protected void |
applyRootReturnTableFragments(SelectStatementBuilder select)
Applies "table fragments" to the FROM-CLAUSE of the given SelectStatementBuilder for the given Loadable
|
protected void |
applyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder) |
protected ReaderCollector |
getReaderCollector() |
protected QuerySpace |
getRootQuerySpace() |
protected java.lang.String |
getRootTableAlias() |
boolean |
hasCollectionInitializers() |
protected boolean |
isSubselectLoadingEnabled(FetchStats fetchStats)
Is subselect loading enabled?
|
protected boolean |
shouldApplyRootReturnFilterBeforeKeyRestriction() |
protected boolean |
shouldUseOptionalEntityInstance() |
generate, getAliasResolutionContext, getKeyColumnNames, getLoadPlan, getQueryBuildingParameters, getQuerySpace, getResultSetProcessor, getRootReturn, getSessionFactory, getSqlStatement
protected EntityLoadQueryDetails(LoadPlan loadPlan, java.lang.String[] keyColumnNames, AliasResolutionContextImpl aliasResolutionContext, EntityReturn rootReturn, QueryBuildingParameters buildingParameters, SessionFactoryImplementor factory)
loadPlan
- The load plankeyColumnNames
- The columns to load the entity by (the PK columns or some other unique set of columns)buildingParameters
- And influencers that would affect the generated SQL (mostly we are concerned with those
that add additional joins here)factory
- The SessionFactoryprotected EntityLoadQueryDetails(EntityLoadQueryDetails initialEntityLoadQueryDetails, QueryBuildingParameters buildingParameters)
public boolean hasCollectionInitializers()
protected void applyRootReturnTableFragments(SelectStatementBuilder select)
applyRootReturnTableFragments
in class AbstractLoadQueryDetails
select
- The SELECT statement builderOuterJoinLoadable.fromTableFragment(java.lang.String)
,
Joinable.fromJoinFragment(java.lang.String, boolean, boolean)
protected void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder)
applyRootReturnFilterRestrictions
in class AbstractLoadQueryDetails
protected void applyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder)
applyRootReturnWhereJoinRestrictions
in class AbstractLoadQueryDetails
protected void applyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder)
applyRootReturnOrderByFragments
in class AbstractLoadQueryDetails
protected boolean isSubselectLoadingEnabled(FetchStats fetchStats)
AbstractLoadQueryDetails
isSubselectLoadingEnabled
in class AbstractLoadQueryDetails
fetchStats
- the fetch stats; may be nulltrue
if subselect loading is enabled; false
otherwise.protected boolean shouldUseOptionalEntityInstance()
shouldUseOptionalEntityInstance
in class AbstractLoadQueryDetails
protected ReaderCollector getReaderCollector()
getReaderCollector
in class AbstractLoadQueryDetails
protected QuerySpace getRootQuerySpace()
getRootQuerySpace
in class AbstractLoadQueryDetails
protected java.lang.String getRootTableAlias()
getRootTableAlias
in class AbstractLoadQueryDetails
protected boolean shouldApplyRootReturnFilterBeforeKeyRestriction()
shouldApplyRootReturnFilterBeforeKeyRestriction
in class AbstractLoadQueryDetails
protected void applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder)
applyRootReturnSelectFragments
in class AbstractLoadQueryDetails
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.