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 voidapplyPredicate(Predicate predicate)Apply the predicate to be used for the final statement.FromClausegetFromClause()Returns the in-flight from clause for the query node.QueryPartgetInflightQueryPart()Get the QueryPart being processed as part of this state.FetchParentgetNestingFetchParent()SqlSelectionresolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)Resolve the SqlSelection for the given expressionvoidsetNestingFetchParent(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:SqlAstQueryPartProcessingStateGet the QueryPart being processed as part of this state. It is considered in-flight as it is probably still being built.- Specified by:
getInflightQueryPartin interfaceSqlAstQueryPartProcessingState
-
getFromClause
public FromClause getFromClause()
Description copied from interface:SqlAstQueryNodeProcessingStateReturns the in-flight from clause for the query node.- Specified by:
getFromClausein interfaceSqlAstQueryNodeProcessingState
-
applyPredicate
public void applyPredicate(Predicate predicate)
Description copied from interface:SqlAstQueryNodeProcessingStateApply the predicate to be used for the final statement.- Specified by:
applyPredicatein interfaceSqlAstQueryNodeProcessingState
-
resolveSqlSelection
public SqlSelection resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)
Description copied from interface:SqlExpressionResolverResolve the SqlSelection for the given expression- Specified by:
resolveSqlSelectionin interfaceSqlExpressionResolver- Overrides:
resolveSqlSelectionin classSqlAstProcessingStateImpl
-
-