Package org.hibernate.sql.ast.spi
Class AliasCollector
- java.lang.Object
- org.hibernate.sql.ast.spi.AbstractSqlAstWalker
- org.hibernate.sql.ast.spi.AliasCollector
- All Implemented Interfaces:
SqlAstWalker
public classAliasCollectorextendsAbstractSqlAstWalker
A simple walker that checks for aggregate functions.
Constructor Summary
Constructors Constructor Description AliasCollector()
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description staticMap<String,TableReference>getTableReferences(SqlAstNode node)voidvisitFunctionTableReference(FunctionTableReference tableReference)voidvisitNamedTableReference(NamedTableReference tableReference)voidvisitQueryPartTableReference(QueryPartTableReference tableReference)voidvisitValuesTableReference(ValuesTableReference tableReference)Methods inherited from class org.hibernate.sql.ast.spi.AbstractSqlAstWalker
visitAggregateColumnWriteExpression,visitAny,visitAssignment,visitBetweenPredicate,visitBinaryArithmeticExpression,visitBooleanExpressionPredicate,visitCaseSearchedExpression,visitCaseSimpleExpression,visitCastTarget,visitCollation,visitColumnReference,visitColumnWriteFragment,visitConversion,visitCustomTableDelete,visitCustomTableInsert,visitCustomTableUpdate,visitDeleteStatement,visitDistinct,visitDuration,visitDurationUnit,visitEmbeddableTypeLiteral,visitEntityTypeLiteral,visitEvery,visitExistsPredicate,visitExtractUnit,visitFilterFragmentPredicate,visitFilterPredicate,visitFormat,visitFromClause,visitGroupedPredicate,visitInArrayPredicate,visitInListPredicate,visitInsertStatement,visitInSubQueryPredicate,visitJdbcLiteral,visitJunction,visitLikePredicate,visitModifiedSubQueryExpression,visitNegatedPredicate,visitNestedColumnReference,visitNullnessPredicate,visitOffsetFetchClause,visitOptionalTableUpdate,visitOver,visitOverflow,visitParameter,visitQueryGroup,visitQueryLiteral,visitQuerySpec,visitRelationalPredicate,visitSelectClause,visitSelectStatement,visitSelfRenderingExpression,visitSelfRenderingPredicate,visitSortSpecification,visitSqlFragmentPredicate,visitSqlSelection,visitSqlSelectionExpression,visitStandardTableDelete,visitStandardTableInsert,visitStandardTableUpdate,visitStar,visitSummarization,visitTableGroup,visitTableGroupJoin,visitTableReferenceJoin,visitThruthnessPredicate,visitTrimSpecification,visitTuple,visitUnaryOperationExpression,visitUnparsedNumericLiteral,visitUpdateStatement
Method Detail
getTableReferences
public static Map<String,TableReference> getTableReferences(SqlAstNode node)
visitNamedTableReference
public void visitNamedTableReference(NamedTableReference tableReference)
- Specified by:
visitNamedTableReferencein interfaceSqlAstWalker- Overrides:
visitNamedTableReferencein classAbstractSqlAstWalker
visitValuesTableReference
public void visitValuesTableReference(ValuesTableReference tableReference)
- Specified by:
visitValuesTableReferencein interfaceSqlAstWalker- Overrides:
visitValuesTableReferencein classAbstractSqlAstWalker
visitQueryPartTableReference
public void visitQueryPartTableReference(QueryPartTableReference tableReference)
- Specified by:
visitQueryPartTableReferencein interfaceSqlAstWalker- Overrides:
visitQueryPartTableReferencein classAbstractSqlAstWalker
visitFunctionTableReference
public void visitFunctionTableReference(FunctionTableReference tableReference)
- Specified by:
visitFunctionTableReferencein interfaceSqlAstWalker- Overrides:
visitFunctionTableReferencein classAbstractSqlAstWalker