Class SqlAstQueryPartProcessingStateImpl
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.SqlAstProcessingStateImpl
-
- org.hibernate.query.sqm.sql.internal.AbstractSqlAstQueryNodeProcessingStateImpl
-
- org.hibernate.query.sqm.sql.internal.SqlAstQueryPartProcessingStateImpl
-
- All Implemented Interfaces:
BaseSqmToSqlAstConverter.SqmAliasedNodeCollector
,SqlAstProcessingState
,SqlAstQueryNodeProcessingState
,SqlAstQueryPartProcessingState
,SqlExpressionResolver
public class SqlAstQueryPartProcessingStateImpl extends AbstractSqlAstQueryNodeProcessingStateImpl implements SqlAstQueryPartProcessingState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
SqlExpressionResolver.ColumnReferenceKey
-
-
Constructor Summary
Constructors Constructor Description SqlAstQueryPartProcessingStateImpl(QueryPart queryPart, SqlAstProcessingState parent, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess, boolean deduplicateSelectionItems)
SqlAstQueryPartProcessingStateImpl(QueryPart queryPart, SqlAstProcessingState parent, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess, boolean deduplicateSelectionItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyPredicate(Predicate predicate)
Apply the predicate to be used for the final statement.FromClause
getFromClause()
Returns the in-flight from clause for the query node.QueryPart
getInflightQueryPart()
Get the QueryPart being processed as part of this state.FetchParent
getNestingFetchParent()
SqlSelection
resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)
Resolve the SqlSelection for the given expressionvoid
setNestingFetchParent(FetchParent nestedParent)
-
Methods inherited from class org.hibernate.query.sqm.sql.internal.AbstractSqlAstQueryNodeProcessingStateImpl
getFromRegistrations, registerFromUsage, registerTreatedFrom
-
Methods inherited from class org.hibernate.query.sqm.sql.internal.SqlAstProcessingStateImpl
getParentState, getSelections, getSqlAstCreationState, getSqlExpressionResolver, next, resolveSqlExpression
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.spi.SqlAstProcessingState
getParentState, getSqlAstCreationState, getSqlExpressionResolver, isTopLevel
-
Methods inherited from interface org.hibernate.sql.ast.spi.SqlAstQueryNodeProcessingState
getFromRegistrations, registerFromUsage, registerTreatedFrom
-
Methods inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
resolveSqlExpression
-
-
-
-
Constructor Detail
-
SqlAstQueryPartProcessingStateImpl
public SqlAstQueryPartProcessingStateImpl(QueryPart queryPart, SqlAstProcessingState parent, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess, boolean deduplicateSelectionItems)
-
SqlAstQueryPartProcessingStateImpl
public SqlAstQueryPartProcessingStateImpl(QueryPart queryPart, SqlAstProcessingState parent, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess, boolean deduplicateSelectionItems)
-
-
Method Detail
-
getNestingFetchParent
public FetchParent getNestingFetchParent()
-
setNestingFetchParent
public void setNestingFetchParent(FetchParent nestedParent)
-
getInflightQueryPart
public QueryPart getInflightQueryPart()
Description copied from interface:SqlAstQueryPartProcessingState
Get the QueryPart being processed as part of this state. It is considered in-flight as it is probably still being built.- Specified by:
getInflightQueryPart
in interfaceSqlAstQueryPartProcessingState
-
getFromClause
public FromClause getFromClause()
Description copied from interface:SqlAstQueryNodeProcessingState
Returns the in-flight from clause for the query node.- Specified by:
getFromClause
in interfaceSqlAstQueryNodeProcessingState
-
applyPredicate
public void applyPredicate(Predicate predicate)
Description copied from interface:SqlAstQueryNodeProcessingState
Apply the predicate to be used for the final statement.- Specified by:
applyPredicate
in interfaceSqlAstQueryNodeProcessingState
-
resolveSqlSelection
public SqlSelection resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)
Description copied from interface:SqlExpressionResolver
Resolve the SqlSelection for the given expression- Specified by:
resolveSqlSelection
in interfaceSqlExpressionResolver
- Overrides:
resolveSqlSelection
in classSqlAstProcessingStateImpl
-
-