Package org.hibernate.sql.ast.spi
Class AggregateFunctionChecker
- java.lang.Object
-
- org.hibernate.sql.ast.spi.AbstractSqlAstWalker
-
- org.hibernate.sql.ast.spi.AggregateFunctionChecker
-
- All Implemented Interfaces:
SqlAstWalker
public class AggregateFunctionChecker extends AbstractSqlAstWalker
A simple walker that checks for aggregate functions.
-
-
Constructor Summary
Constructors Constructor Description AggregateFunctionChecker()
-
Method Summary
-
Methods inherited from class org.hibernate.sql.ast.spi.AbstractSqlAstWalker
visitAggregateColumnWriteExpression, visitBetweenPredicate, visitBinaryArithmeticExpression, visitBooleanExpressionPredicate, visitCaseSearchedExpression, visitCaseSimpleExpression, visitCollation, visitColumnWriteFragment, visitCustomTableDelete, visitCustomTableInsert, visitCustomTableUpdate, visitFilterFragmentPredicate, visitGroupedPredicate, visitJunction, visitLikePredicate, visitNegatedPredicate, visitNullnessPredicate, visitRelationalPredicate, visitSelectClause, visitSelfRenderingPredicate, visitSortSpecification, visitSqlFragmentPredicate, visitSqlSelection, visitStandardTableDelete, visitStandardTableInsert, visitStandardTableUpdate, visitTuple, visitUnaryOperationExpression
-
-
-
-
Method Detail
-
hasAggregateFunctions
public static boolean hasAggregateFunctions(Expression expression)
-
hasAggregateFunctions
public static boolean hasAggregateFunctions(QuerySpec querySpec)
-
visitSelfRenderingExpression
public void visitSelfRenderingExpression(SelfRenderingExpression expression)
- Specified by:
visitSelfRenderingExpression
in interfaceSqlAstWalker
- Overrides:
visitSelfRenderingExpression
in classAbstractSqlAstWalker
-
visitOver
public void visitOver(Over<?> over)
- Specified by:
visitOver
in interfaceSqlAstWalker
- Overrides:
visitOver
in classAbstractSqlAstWalker
-
visitSelectStatement
public void visitSelectStatement(SelectStatement statement)
- Specified by:
visitSelectStatement
in interfaceSqlAstWalker
- Overrides:
visitSelectStatement
in classAbstractSqlAstWalker
-
visitDeleteStatement
public void visitDeleteStatement(DeleteStatement statement)
- Specified by:
visitDeleteStatement
in interfaceSqlAstWalker
- Overrides:
visitDeleteStatement
in classAbstractSqlAstWalker
-
visitUpdateStatement
public void visitUpdateStatement(UpdateStatement statement)
- Specified by:
visitUpdateStatement
in interfaceSqlAstWalker
- Overrides:
visitUpdateStatement
in classAbstractSqlAstWalker
-
visitInsertStatement
public void visitInsertStatement(InsertSelectStatement statement)
- Specified by:
visitInsertStatement
in interfaceSqlAstWalker
- Overrides:
visitInsertStatement
in classAbstractSqlAstWalker
-
visitAssignment
public void visitAssignment(Assignment assignment)
- Specified by:
visitAssignment
in interfaceSqlAstWalker
- Overrides:
visitAssignment
in classAbstractSqlAstWalker
-
visitQueryGroup
public void visitQueryGroup(QueryGroup queryGroup)
- Specified by:
visitQueryGroup
in interfaceSqlAstWalker
- Overrides:
visitQueryGroup
in classAbstractSqlAstWalker
-
visitQuerySpec
public void visitQuerySpec(QuerySpec querySpec)
- Specified by:
visitQuerySpec
in interfaceSqlAstWalker
- Overrides:
visitQuerySpec
in classAbstractSqlAstWalker
-
visitColumnReference
public void visitColumnReference(ColumnReference columnReference)
- Specified by:
visitColumnReference
in interfaceSqlAstWalker
- Overrides:
visitColumnReference
in classAbstractSqlAstWalker
-
visitExtractUnit
public void visitExtractUnit(ExtractUnit extractUnit)
- Specified by:
visitExtractUnit
in interfaceSqlAstWalker
- Overrides:
visitExtractUnit
in classAbstractSqlAstWalker
-
visitFormat
public void visitFormat(Format format)
- Specified by:
visitFormat
in interfaceSqlAstWalker
- Overrides:
visitFormat
in classAbstractSqlAstWalker
-
visitDistinct
public void visitDistinct(Distinct distinct)
- Specified by:
visitDistinct
in interfaceSqlAstWalker
- Overrides:
visitDistinct
in classAbstractSqlAstWalker
-
visitOverflow
public void visitOverflow(Overflow overflow)
- Specified by:
visitOverflow
in interfaceSqlAstWalker
- Overrides:
visitOverflow
in classAbstractSqlAstWalker
-
visitStar
public void visitStar(Star star)
- Specified by:
visitStar
in interfaceSqlAstWalker
- Overrides:
visitStar
in classAbstractSqlAstWalker
-
visitOffsetFetchClause
public void visitOffsetFetchClause(QueryPart querySpec)
- Specified by:
visitOffsetFetchClause
in interfaceSqlAstWalker
- Overrides:
visitOffsetFetchClause
in classAbstractSqlAstWalker
-
visitTrimSpecification
public void visitTrimSpecification(TrimSpecification trimSpecification)
- Specified by:
visitTrimSpecification
in interfaceSqlAstWalker
- Overrides:
visitTrimSpecification
in classAbstractSqlAstWalker
-
visitCastTarget
public void visitCastTarget(CastTarget castTarget)
- Specified by:
visitCastTarget
in interfaceSqlAstWalker
- Overrides:
visitCastTarget
in classAbstractSqlAstWalker
-
visitDurationUnit
public void visitDurationUnit(DurationUnit durationUnit)
- Specified by:
visitDurationUnit
in interfaceSqlAstWalker
- Overrides:
visitDurationUnit
in classAbstractSqlAstWalker
-
visitDuration
public void visitDuration(Duration duration)
- Specified by:
visitDuration
in interfaceSqlAstWalker
- Overrides:
visitDuration
in classAbstractSqlAstWalker
-
visitConversion
public void visitConversion(Conversion conversion)
- Specified by:
visitConversion
in interfaceSqlAstWalker
- Overrides:
visitConversion
in classAbstractSqlAstWalker
-
visitInListPredicate
public void visitInListPredicate(InListPredicate inListPredicate)
- Specified by:
visitInListPredicate
in interfaceSqlAstWalker
- Overrides:
visitInListPredicate
in classAbstractSqlAstWalker
-
visitInArrayPredicate
public void visitInArrayPredicate(InArrayPredicate predicate)
- Specified by:
visitInArrayPredicate
in interfaceSqlAstWalker
- Overrides:
visitInArrayPredicate
in classAbstractSqlAstWalker
-
visitInSubQueryPredicate
public void visitInSubQueryPredicate(InSubQueryPredicate inSubQueryPredicate)
- Specified by:
visitInSubQueryPredicate
in interfaceSqlAstWalker
- Overrides:
visitInSubQueryPredicate
in classAbstractSqlAstWalker
-
visitModifiedSubQueryExpression
public void visitModifiedSubQueryExpression(ModifiedSubQueryExpression expression)
- Specified by:
visitModifiedSubQueryExpression
in interfaceSqlAstWalker
- Overrides:
visitModifiedSubQueryExpression
in classAbstractSqlAstWalker
-
visitAny
public void visitAny(Any any)
- Specified by:
visitAny
in interfaceSqlAstWalker
- Overrides:
visitAny
in classAbstractSqlAstWalker
-
visitEvery
public void visitEvery(Every every)
- Specified by:
visitEvery
in interfaceSqlAstWalker
- Overrides:
visitEvery
in classAbstractSqlAstWalker
-
visitExistsPredicate
public void visitExistsPredicate(ExistsPredicate existsPredicate)
- Specified by:
visitExistsPredicate
in interfaceSqlAstWalker
- Overrides:
visitExistsPredicate
in classAbstractSqlAstWalker
-
visitFilterPredicate
public void visitFilterPredicate(FilterPredicate filterPredicate)
- Specified by:
visitFilterPredicate
in interfaceSqlAstWalker
- Overrides:
visitFilterPredicate
in classAbstractSqlAstWalker
-
visitParameter
public void visitParameter(JdbcParameter jdbcParameter)
- Specified by:
visitParameter
in interfaceSqlAstWalker
- Overrides:
visitParameter
in classAbstractSqlAstWalker
-
visitJdbcLiteral
public void visitJdbcLiteral(JdbcLiteral<?> jdbcLiteral)
- Specified by:
visitJdbcLiteral
in interfaceSqlAstWalker
- Overrides:
visitJdbcLiteral
in classAbstractSqlAstWalker
-
visitQueryLiteral
public void visitQueryLiteral(QueryLiteral<?> queryLiteral)
- Specified by:
visitQueryLiteral
in interfaceSqlAstWalker
- Overrides:
visitQueryLiteral
in classAbstractSqlAstWalker
-
visitSummarization
public void visitSummarization(Summarization every)
- Specified by:
visitSummarization
in interfaceSqlAstWalker
- Overrides:
visitSummarization
in classAbstractSqlAstWalker
-
visitEntityTypeLiteral
public void visitEntityTypeLiteral(EntityTypeLiteral expression)
- Specified by:
visitEntityTypeLiteral
in interfaceSqlAstWalker
- Overrides:
visitEntityTypeLiteral
in classAbstractSqlAstWalker
-
visitSqlSelectionExpression
public void visitSqlSelectionExpression(SqlSelectionExpression expression)
- Specified by:
visitSqlSelectionExpression
in interfaceSqlAstWalker
- Overrides:
visitSqlSelectionExpression
in classAbstractSqlAstWalker
-
visitNamedTableReference
public void visitNamedTableReference(NamedTableReference tableReference)
- Specified by:
visitNamedTableReference
in interfaceSqlAstWalker
- Overrides:
visitNamedTableReference
in classAbstractSqlAstWalker
-
visitValuesTableReference
public void visitValuesTableReference(ValuesTableReference tableReference)
- Specified by:
visitValuesTableReference
in interfaceSqlAstWalker
- Overrides:
visitValuesTableReference
in classAbstractSqlAstWalker
-
visitQueryPartTableReference
public void visitQueryPartTableReference(QueryPartTableReference tableReference)
- Specified by:
visitQueryPartTableReference
in interfaceSqlAstWalker
- Overrides:
visitQueryPartTableReference
in classAbstractSqlAstWalker
-
visitFunctionTableReference
public void visitFunctionTableReference(FunctionTableReference tableReference)
- Specified by:
visitFunctionTableReference
in interfaceSqlAstWalker
- Overrides:
visitFunctionTableReference
in classAbstractSqlAstWalker
-
visitTableReferenceJoin
public void visitTableReferenceJoin(TableReferenceJoin tableReferenceJoin)
- Specified by:
visitTableReferenceJoin
in interfaceSqlAstWalker
- Overrides:
visitTableReferenceJoin
in classAbstractSqlAstWalker
-
visitFromClause
public void visitFromClause(FromClause fromClause)
- Specified by:
visitFromClause
in interfaceSqlAstWalker
- Overrides:
visitFromClause
in classAbstractSqlAstWalker
-
visitTableGroup
public void visitTableGroup(TableGroup tableGroup)
- Specified by:
visitTableGroup
in interfaceSqlAstWalker
- Overrides:
visitTableGroup
in classAbstractSqlAstWalker
-
visitTableGroupJoin
public void visitTableGroupJoin(TableGroupJoin tableGroupJoin)
- Specified by:
visitTableGroupJoin
in interfaceSqlAstWalker
- Overrides:
visitTableGroupJoin
in classAbstractSqlAstWalker
-
-