Class SqlAstProcessingStateImpl
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.SqlAstProcessingStateImpl
-
- All Implemented Interfaces:
BaseSqmToSqlAstConverter.SqmAliasedNodeCollector
,SqlAstProcessingState
,SqlExpressionResolver
- Direct Known Subclasses:
AbstractSqlAstQueryNodeProcessingStateImpl
public class SqlAstProcessingStateImpl extends Object implements SqlAstProcessingState, SqlExpressionResolver, BaseSqmToSqlAstConverter.SqmAliasedNodeCollector
Implementation of ProcessingState used on its own as the impl for DML statements and as the base for QuerySpec state
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
SqlExpressionResolver.ColumnReferenceKey
-
-
Constructor Summary
Constructors Constructor Description SqlAstProcessingStateImpl(SqlAstProcessingState parentState, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess)
SqlAstProcessingStateImpl(SqlAstProcessingState parentState, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlAstProcessingState
getParentState()
List<SqlSelection>
getSelections(int position)
SqlAstCreationState
getSqlAstCreationState()
SqlExpressionResolver
getSqlExpressionResolver()
void
next()
Expression
resolveSqlExpression(SqlExpressionResolver.ColumnReferenceKey key, Function<SqlAstProcessingState,Expression> creator)
Given a qualifier + a qualifiableSqlExpressible
, resolve the (Sql)Expression reference.SqlSelection
resolveSqlSelection(Expression expression, JavaType<?> javaType, FetchParent fetchParent, TypeConfiguration typeConfiguration)
Resolve the SqlSelection for the given expression-
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
isTopLevel
-
Methods inherited from interface org.hibernate.sql.ast.spi.SqlExpressionResolver
resolveSqlExpression
-
-
-
-
Constructor Detail
-
SqlAstProcessingStateImpl
public SqlAstProcessingStateImpl(SqlAstProcessingState parentState, SqlAstCreationState creationState, Supplier<Clause> currentClauseAccess)
-
SqlAstProcessingStateImpl
public SqlAstProcessingStateImpl(SqlAstProcessingState parentState, SqlAstCreationState creationState, Function<SqlExpressionResolver,SqlExpressionResolver> expressionResolverDecorator, Supplier<Clause> currentClauseAccess)
-
-
Method Detail
-
getParentState
public SqlAstProcessingState getParentState()
- Specified by:
getParentState
in interfaceSqlAstProcessingState
-
getSqlExpressionResolver
public SqlExpressionResolver getSqlExpressionResolver()
- Specified by:
getSqlExpressionResolver
in interfaceSqlAstProcessingState
-
getSqlAstCreationState
public SqlAstCreationState getSqlAstCreationState()
- Specified by:
getSqlAstCreationState
in interfaceSqlAstProcessingState
-
resolveSqlExpression
public Expression resolveSqlExpression(SqlExpressionResolver.ColumnReferenceKey key, Function<SqlAstProcessingState,Expression> creator)
Description copied from interface:SqlExpressionResolver
Given a qualifier + a qualifiableSqlExpressible
, resolve the (Sql)Expression reference.- Specified by:
resolveSqlExpression
in interfaceSqlExpressionResolver
-
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
-
next
public void next()
- Specified by:
next
in interfaceBaseSqmToSqlAstConverter.SqmAliasedNodeCollector
-
getSelections
public List<SqlSelection> getSelections(int position)
- Specified by:
getSelections
in interfaceBaseSqmToSqlAstConverter.SqmAliasedNodeCollector
-
-