Top Methods
org.hibernate.sql.ast

public Interface SqlAstTranslator<T extends org.hibernate.sql.exec.spi.JdbcOperation>

extends SqlAstWalker
Known Direct Implementers
org.hibernate.sql.ast.spi.AbstractSqlAstTranslator
Imports
java.util.Set, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.util.collections.Stack, org.hibernate.query.spi.QueryOptions, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.select.QueryPart, org.hibernate.sql.exec.spi.JdbcOperation, .JdbcParameterBindings

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Set<String>
getAffectedTableNames()

Not the best spot for this.

public Stack<Clause>
public QueryPart
getCurrentQueryPart()

Returns the current query part that is translated.

public SessionFactoryImplementor
getSessionFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public void
render(SqlAstNode sqlAstNode, SqlAstNodeRenderingMode renderingMode)

Renders the given SQL AST node with the given rendering mode.

public boolean
supportsFilterClause()

Whether the FILTER clause for aggregate functions is supported.

public T
translate(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)

Inherited from org.hibernate.sql.ast.SqlAstWalker:
visitAggregateColumnWriteExpressionvisitAnyvisitAssignmentvisitBetweenPredicatevisitBinaryArithmeticExpressionvisitBooleanExpressionPredicatevisitCaseSearchedExpressionvisitCaseSimpleExpressionvisitCastTargetvisitCollationvisitColumnReferencevisitColumnWriteFragmentvisitConversionvisitCustomTableDeletevisitCustomTableInsertvisitCustomTableUpdatevisitDeleteStatementvisitDistinctvisitDurationvisitDurationUnitvisitEntityTypeLiteralvisitEveryvisitExistsPredicatevisitExtractUnitvisitFilterFragmentPredicatevisitFilterPredicatevisitFormatvisitFromClausevisitFunctionTableReferencevisitGroupedPredicatevisitInArrayPredicatevisitInListPredicatevisitInsertStatementvisitInSubQueryPredicatevisitJdbcLiteralvisitJunctionvisitLikePredicatevisitModifiedSubQueryExpressionvisitNamedTableReferencevisitNegatedPredicatevisitNullnessPredicatevisitOffsetFetchClausevisitOptionalTableUpdatevisitOvervisitOverflowvisitParametervisitQueryGroupvisitQueryLiteralvisitQueryPartTableReferencevisitQuerySpecvisitRelationalPredicatevisitSelectClausevisitSelectStatementvisitSelfRenderingExpressionvisitSelfRenderingPredicatevisitSortSpecificationvisitSqlFragmentPredicatevisitSqlSelectionvisitSqlSelectionExpressionvisitStandardTableDeletevisitStandardTableInsertvisitStandardTableUpdatevisitStarvisitSummarizationvisitTableGroupvisitTableGroupJoinvisitTableReferenceJoinvisitThruthnessPredicatevisitTrimSpecificationvisitTuplevisitUnaryOperationExpressionvisitUnparsedNumericLiteralvisitUpdateStatementvisitValuesTableReference

Method Detail

getAffectedTableNamesback to summary
public Set<String> getAffectedTableNames()

Not the best spot for this. Its the table names collected while walking the SQL AST. Its ok here because the translator is consider a one-time-use. It just needs to be called after translation. A better option is probably to have "translation" objects that expose the affected table-names.

getCurrentClauseStackback to summary
public Stack<Clause> getCurrentClauseStack()
getCurrentQueryPartback to summary
public QueryPart getCurrentQueryPart()

Returns the current query part that is translated.

getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

renderback to summary
public void render(SqlAstNode sqlAstNode, SqlAstNodeRenderingMode renderingMode)

Renders the given SQL AST node with the given rendering mode.

supportsFilterClauseback to summary
public boolean supportsFilterClause()

Whether the FILTER clause for aggregate functions is supported.

translateback to summary
public T translate(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)