public abstract class AbstractLoadQueryDetails extends Object implements LoadQueryDetails
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractLoadQueryDetails.ReaderCollectorImpl |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoadQueryDetails(AbstractLoadQueryDetails initialLoadQueryDetails,
QueryBuildingParameters buildingParameters)
Constructs an AbstractLoadQueryDetails object from an initial object and new building parameters,
with the guarantee that only batch size changed between the initial parameters and the new ones.
|
protected |
AbstractLoadQueryDetails(LoadPlan loadPlan,
AliasResolutionContextImpl aliasResolutionContext,
QueryBuildingParameters buildingParameters,
String[] keyColumnNames,
Return rootReturn,
SessionFactoryImplementor factory) |
protected AbstractLoadQueryDetails(LoadPlan loadPlan, AliasResolutionContextImpl aliasResolutionContext, QueryBuildingParameters buildingParameters, String[] keyColumnNames, Return rootReturn, SessionFactoryImplementor factory)
rootReturn
- The root return reference we are processingfactory
- The SessionFactorybuildingParameters
- The query building contextprotected AbstractLoadQueryDetails(AbstractLoadQueryDetails initialLoadQueryDetails, QueryBuildingParameters buildingParameters)
initialLoadQueryDetails
- The initial object to be copiedbuildingParameters
- The new building parameters, with only the batch size being different
from the parameters used in the initial object.protected QuerySpace getQuerySpace(String querySpaceUid)
public String getSqlStatement()
getSqlStatement
in interface LoadQueryDetails
public ResultSetProcessor getResultSetProcessor()
getResultSetProcessor
in interface LoadQueryDetails
protected final Return getRootReturn()
protected final AliasResolutionContext getAliasResolutionContext()
protected final QueryBuildingParameters getQueryBuildingParameters()
protected final SessionFactoryImplementor getSessionFactory()
protected LoadPlan getLoadPlan()
protected String[] getKeyColumnNames()
protected void generate()
protected abstract boolean isSubselectLoadingEnabled(FetchStats fetchStats)
fetchStats
- the fetch stats; may be nulltrue
if subselect loading is enabled; false
otherwise.protected abstract boolean shouldUseOptionalEntityInstance()
protected abstract ReaderCollector getReaderCollector()
protected abstract QuerySpace getRootQuerySpace()
protected abstract String getRootTableAlias()
protected abstract boolean shouldApplyRootReturnFilterBeforeKeyRestriction()
protected abstract void applyRootReturnSelectFragments(SelectStatementBuilder selectStatementBuilder)
protected abstract void applyRootReturnTableFragments(SelectStatementBuilder selectStatementBuilder)
protected abstract void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder)
protected abstract void applyRootReturnWhereJoinRestrictions(SelectStatementBuilder selectStatementBuilder)
protected abstract void applyRootReturnOrderByFragments(SelectStatementBuilder selectStatementBuilder)
Copyright © 2018 JBoss by Red Hat. All rights reserved.