Class AbstractSqlAstQueryNodeProcessingStateImpl
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.SqlAstProcessingStateImpl
-
- org.hibernate.query.sqm.sql.internal.AbstractSqlAstQueryNodeProcessingStateImpl
-
- All Implemented Interfaces:
BaseSqmToSqlAstConverter.SqmAliasedNodeCollector
,SqlAstProcessingState
,SqlAstQueryNodeProcessingState
,SqlExpressionResolver
- Direct Known Subclasses:
SqlAstQueryNodeProcessingStateImpl
,SqlAstQueryPartProcessingStateImpl
public abstract class AbstractSqlAstQueryNodeProcessingStateImpl extends SqlAstProcessingStateImpl implements SqlAstQueryNodeProcessingState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
SqlExpressionResolver.ColumnReferenceKey
-
-
Constructor Summary
Constructors Constructor Description AbstractSqlAstQueryNodeProcessingStateImpl(SqlAstProcessingState parent, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess)
AbstractSqlAstQueryNodeProcessingStateImpl(SqlAstProcessingState parent, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<SqmFrom<?,?>,Boolean>
getFromRegistrations()
Returns the treated SqmFroms and whether theirEntityNameUse.TREAT
should be downgraded toEntityNameUse.EXPRESSION
.void
registerFromUsage(SqmFrom<?,?> sqmFrom, boolean downgradeTreatUses)
Registers that the given SqmFrom was used in an expression and whether to downgradeEntityNameUse.TREAT
of it.void
registerTreatedFrom(SqmFrom<?,?> sqmFrom)
Registers that the given SqmFrom is treated.-
Methods inherited from class org.hibernate.query.sqm.sql.internal.SqlAstProcessingStateImpl
getParentState, getSelections, getSqlAstCreationState, getSqlExpressionResolver, next, resolveSqlExpression, resolveSqlSelection
-
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
applyPredicate, getFromClause
-
Methods inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
resolveSqlExpression
-
-
-
-
Constructor Detail
-
AbstractSqlAstQueryNodeProcessingStateImpl
public AbstractSqlAstQueryNodeProcessingStateImpl(SqlAstProcessingState parent, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess)
-
AbstractSqlAstQueryNodeProcessingStateImpl
public AbstractSqlAstQueryNodeProcessingStateImpl(SqlAstProcessingState parent, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess)
-
-
Method Detail
-
registerTreatedFrom
public void registerTreatedFrom(SqmFrom<?,?> sqmFrom)
Description copied from interface:SqlAstQueryNodeProcessingState
Registers that the given SqmFrom is treated.- Specified by:
registerTreatedFrom
in interfaceSqlAstQueryNodeProcessingState
-
registerFromUsage
public void registerFromUsage(SqmFrom<?,?> sqmFrom, boolean downgradeTreatUses)
Description copied from interface:SqlAstQueryNodeProcessingState
Registers that the given SqmFrom was used in an expression and whether to downgradeEntityNameUse.TREAT
of it.- Specified by:
registerFromUsage
in interfaceSqlAstQueryNodeProcessingState
-
getFromRegistrations
public Map<SqmFrom<?,?>,Boolean> getFromRegistrations()
Description copied from interface:SqlAstQueryNodeProcessingState
Returns the treated SqmFroms and whether theirEntityNameUse.TREAT
should be downgraded toEntityNameUse.EXPRESSION
.- Specified by:
getFromRegistrations
in interfaceSqlAstQueryNodeProcessingState
-
-