Package org.hibernate.query.sqm.spi
Class BaseSemanticQueryWalker
- java.lang.Object
-
- org.hibernate.query.sqm.spi.BaseSemanticQueryWalker
-
- All Implemented Interfaces:
SemanticQueryWalker<Object>
- Direct Known Subclasses:
BaseSqmToSqlAstConverter
,FakeSqmToSqlAstConverter
,ParameterCollector
public abstract class BaseSemanticQueryWalker extends Object implements SemanticQueryWalker<Object>
Base support for an SQM walker
-
-
Constructor Summary
Constructors Constructor Description BaseSemanticQueryWalker()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.sqm.SemanticQueryWalker
visitBagJoin, visitCorrelatedBagJoin, visitCorrelatedCrossJoin, visitCorrelatedEntityJoin, visitCorrelatedListJoin, visitCorrelatedMapJoin, visitCorrelatedPluralPartJoin, visitCorrelatedRoot, visitCorrelatedRootJoin, visitCorrelatedSetJoin, visitCorrelatedSingularJoin, visitListJoin, visitMapJoin, visitSetJoin, visitSingularJoin
-
-
-
-
Method Detail
-
visitSelectStatement
public Object visitSelectStatement(SqmSelectStatement<?> statement)
- Specified by:
visitSelectStatement
in interfaceSemanticQueryWalker<Object>
-
visitUpdateStatement
public Object visitUpdateStatement(SqmUpdateStatement<?> statement)
- Specified by:
visitUpdateStatement
in interfaceSemanticQueryWalker<Object>
-
visitSetClause
public Object visitSetClause(SqmSetClause setClause)
- Specified by:
visitSetClause
in interfaceSemanticQueryWalker<Object>
-
visitAssignment
public Object visitAssignment(SqmAssignment<?> assignment)
- Specified by:
visitAssignment
in interfaceSemanticQueryWalker<Object>
-
visitInsertSelectStatement
public Object visitInsertSelectStatement(SqmInsertSelectStatement<?> statement)
- Specified by:
visitInsertSelectStatement
in interfaceSemanticQueryWalker<Object>
-
visitInsertValuesStatement
public Object visitInsertValuesStatement(SqmInsertValuesStatement<?> statement)
- Specified by:
visitInsertValuesStatement
in interfaceSemanticQueryWalker<Object>
-
visitDeleteStatement
public Object visitDeleteStatement(SqmDeleteStatement<?> statement)
- Specified by:
visitDeleteStatement
in interfaceSemanticQueryWalker<Object>
-
visitCteStatement
public Object visitCteStatement(SqmCteStatement<?> sqmCteStatement)
- Specified by:
visitCteStatement
in interfaceSemanticQueryWalker<Object>
-
visitSelectQuery
protected Object visitSelectQuery(SqmSelectQuery<?> selectQuery)
-
visitCteContainer
public Object visitCteContainer(SqmCteContainer consumer)
- Specified by:
visitCteContainer
in interfaceSemanticQueryWalker<Object>
-
visitQueryPart
public Object visitQueryPart(SqmQueryPart<?> queryPart)
-
visitQueryGroup
public Object visitQueryGroup(SqmQueryGroup<?> queryGroup)
- Specified by:
visitQueryGroup
in interfaceSemanticQueryWalker<Object>
-
visitQuerySpec
public Object visitQuerySpec(SqmQuerySpec<?> querySpec)
- Specified by:
visitQuerySpec
in interfaceSemanticQueryWalker<Object>
-
visitFromClause
public Object visitFromClause(SqmFromClause fromClause)
- Specified by:
visitFromClause
in interfaceSemanticQueryWalker<Object>
-
consumeFromClauseRoot
protected void consumeFromClauseRoot(SqmRoot<?> sqmRoot)
-
consumeExplicitJoins
protected void consumeExplicitJoins(SqmFrom<?,?> sqmFrom)
-
consumeTreat
protected void consumeTreat(SqmFrom<?,?> sqmTreat)
-
consumeExplicitJoin
protected void consumeExplicitJoin(SqmJoin<?,?> sqmJoin, boolean transitive)
-
consumeAttributeJoin
protected void consumeAttributeJoin(SqmAttributeJoin<?,?> sqmJoin, boolean transitive)
-
consumeCrossJoin
protected void consumeCrossJoin(SqmCrossJoin<?> sqmJoin, boolean transitive)
-
consumeEntityJoin
protected void consumeEntityJoin(SqmEntityJoin<?> sqmJoin, boolean transitive)
-
consumeDerivedJoin
protected void consumeDerivedJoin(SqmDerivedJoin<?> sqmJoin, boolean transitive)
-
consumeCteJoin
protected void consumeCteJoin(SqmCteJoin<?> sqmJoin, boolean transitive)
-
consumePluralPartJoin
protected void consumePluralPartJoin(SqmPluralPartJoin<?,?> sqmJoin, boolean transitive)
-
visitRootPath
public Object visitRootPath(SqmRoot<?> sqmRoot)
- Specified by:
visitRootPath
in interfaceSemanticQueryWalker<Object>
-
visitRootDerived
public Object visitRootDerived(SqmDerivedRoot<?> sqmRoot)
- Specified by:
visitRootDerived
in interfaceSemanticQueryWalker<Object>
-
visitRootCte
public Object visitRootCte(SqmCteRoot<?> sqmRoot)
- Specified by:
visitRootCte
in interfaceSemanticQueryWalker<Object>
-
visitCrossJoin
public Object visitCrossJoin(SqmCrossJoin<?> joinedFromElement)
- Specified by:
visitCrossJoin
in interfaceSemanticQueryWalker<Object>
-
visitPluralPartJoin
public Object visitPluralPartJoin(SqmPluralPartJoin<?,?> joinedFromElement)
- Specified by:
visitPluralPartJoin
in interfaceSemanticQueryWalker<Object>
-
visitQualifiedEntityJoin
public Object visitQualifiedEntityJoin(SqmEntityJoin<?> joinedFromElement)
- Specified by:
visitQualifiedEntityJoin
in interfaceSemanticQueryWalker<Object>
-
visitQualifiedAttributeJoin
public Object visitQualifiedAttributeJoin(SqmAttributeJoin<?,?> joinedFromElement)
- Specified by:
visitQualifiedAttributeJoin
in interfaceSemanticQueryWalker<Object>
-
visitQualifiedDerivedJoin
public Object visitQualifiedDerivedJoin(SqmDerivedJoin<?> joinedFromElement)
- Specified by:
visitQualifiedDerivedJoin
in interfaceSemanticQueryWalker<Object>
-
visitQualifiedCteJoin
public Object visitQualifiedCteJoin(SqmCteJoin<?> joinedFromElement)
- Specified by:
visitQualifiedCteJoin
in interfaceSemanticQueryWalker<Object>
-
visitBasicValuedPath
public Object visitBasicValuedPath(SqmBasicValuedSimplePath<?> path)
- Specified by:
visitBasicValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitEmbeddableValuedPath
public Object visitEmbeddableValuedPath(SqmEmbeddedValuedSimplePath<?> path)
- Specified by:
visitEmbeddableValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitAnyValuedValuedPath
public Object visitAnyValuedValuedPath(SqmAnyValuedSimplePath<?> path)
- Specified by:
visitAnyValuedValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitNonAggregatedCompositeValuedPath
public Object visitNonAggregatedCompositeValuedPath(NonAggregatedCompositeSimplePath<?> path)
- Specified by:
visitNonAggregatedCompositeValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitEntityValuedPath
public Object visitEntityValuedPath(SqmEntityValuedSimplePath<?> path)
- Specified by:
visitEntityValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitPluralValuedPath
public Object visitPluralValuedPath(SqmPluralValuedSimplePath<?> path)
- Specified by:
visitPluralValuedPath
in interfaceSemanticQueryWalker<Object>
-
visitFkExpression
public Object visitFkExpression(SqmFkExpression<?> fkExpression)
- Specified by:
visitFkExpression
in interfaceSemanticQueryWalker<Object>
-
visitDiscriminatorPath
public Object visitDiscriminatorPath(EntityDiscriminatorSqmPath path)
- Specified by:
visitDiscriminatorPath
in interfaceSemanticQueryWalker<Object>
-
visitIndexedPluralAccessPath
public Object visitIndexedPluralAccessPath(SqmIndexedCollectionAccessPath<?> path)
- Specified by:
visitIndexedPluralAccessPath
in interfaceSemanticQueryWalker<Object>
-
visitElementAggregateFunction
public Object visitElementAggregateFunction(SqmElementAggregateFunction<?> path)
- Specified by:
visitElementAggregateFunction
in interfaceSemanticQueryWalker<Object>
-
visitIndexAggregateFunction
public Object visitIndexAggregateFunction(SqmIndexAggregateFunction<?> path)
- Specified by:
visitIndexAggregateFunction
in interfaceSemanticQueryWalker<Object>
-
visitCorrelation
public Object visitCorrelation(SqmCorrelation<?,?> correlation)
- Specified by:
visitCorrelation
in interfaceSemanticQueryWalker<Object>
-
visitSelectClause
public Object visitSelectClause(SqmSelectClause selectClause)
- Specified by:
visitSelectClause
in interfaceSemanticQueryWalker<Object>
-
visitSelection
public Object visitSelection(SqmSelection<?> selection)
- Specified by:
visitSelection
in interfaceSemanticQueryWalker<Object>
-
visitJpaCompoundSelection
public Object visitJpaCompoundSelection(SqmJpaCompoundSelection<?> selection)
- Specified by:
visitJpaCompoundSelection
in interfaceSemanticQueryWalker<Object>
-
visitValues
public Object visitValues(SqmValues values)
- Specified by:
visitValues
in interfaceSemanticQueryWalker<Object>
-
visitWhereClause
public Object visitWhereClause(SqmWhereClause whereClause)
- Specified by:
visitWhereClause
in interfaceSemanticQueryWalker<Object>
-
visitGroupedPredicate
public Object visitGroupedPredicate(SqmGroupedPredicate predicate)
- Specified by:
visitGroupedPredicate
in interfaceSemanticQueryWalker<Object>
-
visitJunctionPredicate
public Object visitJunctionPredicate(SqmJunctionPredicate predicate)
- Specified by:
visitJunctionPredicate
in interfaceSemanticQueryWalker<Object>
-
visitComparisonPredicate
public Object visitComparisonPredicate(SqmComparisonPredicate predicate)
- Specified by:
visitComparisonPredicate
in interfaceSemanticQueryWalker<Object>
-
visitIsEmptyPredicate
public Object visitIsEmptyPredicate(SqmEmptinessPredicate predicate)
- Specified by:
visitIsEmptyPredicate
in interfaceSemanticQueryWalker<Object>
-
visitIsNullPredicate
public Object visitIsNullPredicate(SqmNullnessPredicate predicate)
- Specified by:
visitIsNullPredicate
in interfaceSemanticQueryWalker<Object>
-
visitIsTruePredicate
public Object visitIsTruePredicate(SqmTruthnessPredicate predicate)
- Specified by:
visitIsTruePredicate
in interfaceSemanticQueryWalker<Object>
-
visitBetweenPredicate
public Object visitBetweenPredicate(SqmBetweenPredicate predicate)
- Specified by:
visitBetweenPredicate
in interfaceSemanticQueryWalker<Object>
-
visitLikePredicate
public Object visitLikePredicate(SqmLikePredicate predicate)
- Specified by:
visitLikePredicate
in interfaceSemanticQueryWalker<Object>
-
visitMemberOfPredicate
public Object visitMemberOfPredicate(SqmMemberOfPredicate predicate)
- Specified by:
visitMemberOfPredicate
in interfaceSemanticQueryWalker<Object>
-
visitNegatedPredicate
public Object visitNegatedPredicate(SqmNegatedPredicate predicate)
- Specified by:
visitNegatedPredicate
in interfaceSemanticQueryWalker<Object>
-
visitInListPredicate
public Object visitInListPredicate(SqmInListPredicate<?> predicate)
- Specified by:
visitInListPredicate
in interfaceSemanticQueryWalker<Object>
-
visitInSubQueryPredicate
public Object visitInSubQueryPredicate(SqmInSubQueryPredicate<?> predicate)
- Specified by:
visitInSubQueryPredicate
in interfaceSemanticQueryWalker<Object>
-
visitBooleanExpressionPredicate
public Object visitBooleanExpressionPredicate(SqmBooleanExpressionPredicate predicate)
- Specified by:
visitBooleanExpressionPredicate
in interfaceSemanticQueryWalker<Object>
-
visitExistsPredicate
public Object visitExistsPredicate(SqmExistsPredicate predicate)
- Specified by:
visitExistsPredicate
in interfaceSemanticQueryWalker<Object>
-
visitOrderByClause
public Object visitOrderByClause(SqmOrderByClause orderByClause)
- Specified by:
visitOrderByClause
in interfaceSemanticQueryWalker<Object>
-
visitSortSpecification
public Object visitSortSpecification(SqmSortSpecification sortSpecification)
- Specified by:
visitSortSpecification
in interfaceSemanticQueryWalker<Object>
-
visitOffsetExpression
public Object visitOffsetExpression(SqmExpression<?> expression)
- Specified by:
visitOffsetExpression
in interfaceSemanticQueryWalker<Object>
-
visitGroupByClause
public Object visitGroupByClause(List<SqmExpression<?>> groupByClauseExpressions)
- Specified by:
visitGroupByClause
in interfaceSemanticQueryWalker<Object>
-
visitHavingClause
public Object visitHavingClause(SqmPredicate sqmPredicate)
- Specified by:
visitHavingClause
in interfaceSemanticQueryWalker<Object>
-
visitFetchExpression
public Object visitFetchExpression(SqmExpression<?> expression)
- Specified by:
visitFetchExpression
in interfaceSemanticQueryWalker<Object>
-
visitPositionalParameterExpression
public Object visitPositionalParameterExpression(SqmPositionalParameter<?> expression)
- Specified by:
visitPositionalParameterExpression
in interfaceSemanticQueryWalker<Object>
-
visitNamedParameterExpression
public Object visitNamedParameterExpression(SqmNamedParameter<?> expression)
- Specified by:
visitNamedParameterExpression
in interfaceSemanticQueryWalker<Object>
-
visitJpaCriteriaParameter
public Object visitJpaCriteriaParameter(JpaCriteriaParameter<?> expression)
- Specified by:
visitJpaCriteriaParameter
in interfaceSemanticQueryWalker<Object>
-
visitEntityTypeLiteralExpression
public Object visitEntityTypeLiteralExpression(SqmLiteralEntityType<?> expression)
- Specified by:
visitEntityTypeLiteralExpression
in interfaceSemanticQueryWalker<Object>
-
visitAnyDiscriminatorTypeExpression
public Object visitAnyDiscriminatorTypeExpression(AnyDiscriminatorSqmPath<?> expression)
- Specified by:
visitAnyDiscriminatorTypeExpression
in interfaceSemanticQueryWalker<Object>
-
visitAnyDiscriminatorTypeValueExpression
public Object visitAnyDiscriminatorTypeValueExpression(SqmAnyDiscriminatorValue<?> expression)
- Specified by:
visitAnyDiscriminatorTypeValueExpression
in interfaceSemanticQueryWalker<Object>
-
visitParameterizedEntityTypeExpression
public Object visitParameterizedEntityTypeExpression(SqmParameterizedEntityType<?> expression)
- Specified by:
visitParameterizedEntityTypeExpression
in interfaceSemanticQueryWalker<Object>
-
visitUnaryOperationExpression
public Object visitUnaryOperationExpression(SqmUnaryOperation<?> sqmExpression)
- Specified by:
visitUnaryOperationExpression
in interfaceSemanticQueryWalker<Object>
-
visitFunction
public Object visitFunction(SqmFunction<?> sqmFunction)
- Specified by:
visitFunction
in interfaceSemanticQueryWalker<Object>
-
visitModifiedSubQueryExpression
public Object visitModifiedSubQueryExpression(SqmModifiedSubQueryExpression<?> expression)
- Specified by:
visitModifiedSubQueryExpression
in interfaceSemanticQueryWalker<Object>
-
visitExtractUnit
public Object visitExtractUnit(SqmExtractUnit<?> extractUnit)
- Specified by:
visitExtractUnit
in interfaceSemanticQueryWalker<Object>
-
visitFormat
public Object visitFormat(SqmFormat sqmFormat)
- Specified by:
visitFormat
in interfaceSemanticQueryWalker<Object>
-
visitCastTarget
public Object visitCastTarget(SqmCastTarget<?> castTarget)
- Specified by:
visitCastTarget
in interfaceSemanticQueryWalker<Object>
-
visitCoalesce
public Object visitCoalesce(SqmCoalesce<?> sqmCoalesce)
- Specified by:
visitCoalesce
in interfaceSemanticQueryWalker<Object>
-
visitToDuration
public Object visitToDuration(SqmToDuration<?> toDuration)
- Specified by:
visitToDuration
in interfaceSemanticQueryWalker<Object>
-
visitTrimSpecification
public Object visitTrimSpecification(SqmTrimSpecification trimSpecification)
- Specified by:
visitTrimSpecification
in interfaceSemanticQueryWalker<Object>
-
visitDistinct
public Object visitDistinct(SqmDistinct<?> distinct)
- Specified by:
visitDistinct
in interfaceSemanticQueryWalker<Object>
-
visitStar
public Object visitStar(SqmStar sqmStar)
- Specified by:
visitStar
in interfaceSemanticQueryWalker<Object>
-
visitOver
public Object visitOver(SqmOver<?> over)
- Specified by:
visitOver
in interfaceSemanticQueryWalker<Object>
-
visitWindow
public Object visitWindow(SqmWindow window)
- Specified by:
visitWindow
in interfaceSemanticQueryWalker<Object>
-
visitOverflow
public Object visitOverflow(SqmOverflow<?> sqmOverflow)
- Specified by:
visitOverflow
in interfaceSemanticQueryWalker<Object>
-
visitTreatedPath
public Object visitTreatedPath(SqmTreatedPath<?,?> sqmTreatedPath)
- Specified by:
visitTreatedPath
in interfaceSemanticQueryWalker<Object>
-
visitPluralAttributeSizeFunction
public Object visitPluralAttributeSizeFunction(SqmCollectionSize function)
- Specified by:
visitPluralAttributeSizeFunction
in interfaceSemanticQueryWalker<Object>
-
visitMapEntryFunction
public Object visitMapEntryFunction(SqmMapEntryReference<?,?> binding)
- Specified by:
visitMapEntryFunction
in interfaceSemanticQueryWalker<Object>
-
visitLiteral
public Object visitLiteral(SqmLiteral<?> literal)
- Specified by:
visitLiteral
in interfaceSemanticQueryWalker<Object>
-
visitHqlNumericLiteral
public <N extends Number> Object visitHqlNumericLiteral(SqmHqlNumericLiteral<N> numericLiteral)
- Specified by:
visitHqlNumericLiteral
in interfaceSemanticQueryWalker<Object>
-
visitTuple
public Object visitTuple(SqmTuple<?> sqmTuple)
- Specified by:
visitTuple
in interfaceSemanticQueryWalker<Object>
-
visitCollation
public Object visitCollation(SqmCollation sqmCollate)
- Specified by:
visitCollation
in interfaceSemanticQueryWalker<Object>
-
visitBinaryArithmeticExpression
public Object visitBinaryArithmeticExpression(SqmBinaryArithmetic<?> expression)
- Specified by:
visitBinaryArithmeticExpression
in interfaceSemanticQueryWalker<Object>
-
visitByUnit
public Object visitByUnit(SqmByUnit byUnit)
- Specified by:
visitByUnit
in interfaceSemanticQueryWalker<Object>
-
visitDurationUnit
public Object visitDurationUnit(SqmDurationUnit<?> durationUnit)
- Specified by:
visitDurationUnit
in interfaceSemanticQueryWalker<Object>
-
visitSubQueryExpression
public Object visitSubQueryExpression(SqmSubQuery<?> expression)
- Specified by:
visitSubQueryExpression
in interfaceSemanticQueryWalker<Object>
-
visitSimpleCaseExpression
public Object visitSimpleCaseExpression(SqmCaseSimple<?,?> expression)
- Specified by:
visitSimpleCaseExpression
in interfaceSemanticQueryWalker<Object>
-
visitAny
public Object visitAny(SqmAny<?> sqmAny)
- Specified by:
visitAny
in interfaceSemanticQueryWalker<Object>
-
visitEvery
public Object visitEvery(SqmEvery<?> sqmEvery)
- Specified by:
visitEvery
in interfaceSemanticQueryWalker<Object>
-
visitSummarization
public Object visitSummarization(SqmSummarization<?> sqmSummarization)
- Specified by:
visitSummarization
in interfaceSemanticQueryWalker<Object>
-
visitSearchedCaseExpression
public Object visitSearchedCaseExpression(SqmCaseSearched<?> expression)
- Specified by:
visitSearchedCaseExpression
in interfaceSemanticQueryWalker<Object>
-
visitDynamicInstantiation
public Object visitDynamicInstantiation(SqmDynamicInstantiation<?> sqmDynamicInstantiation)
- Specified by:
visitDynamicInstantiation
in interfaceSemanticQueryWalker<Object>
-
visitFullyQualifiedClass
public Object visitFullyQualifiedClass(Class<?> namedClass)
- Specified by:
visitFullyQualifiedClass
in interfaceSemanticQueryWalker<Object>
-
visitEnumLiteral
public Object visitEnumLiteral(SqmEnumLiteral<?> sqmEnumLiteral)
- Specified by:
visitEnumLiteral
in interfaceSemanticQueryWalker<Object>
-
visitFieldLiteral
public Object visitFieldLiteral(SqmFieldLiteral<?> sqmFieldLiteral)
- Specified by:
visitFieldLiteral
in interfaceSemanticQueryWalker<Object>
-
-