Package org.hibernate.query.sqm.tree.jpa
Class ParameterCollector
- java.lang.Object
-
- org.hibernate.query.sqm.spi.BaseSemanticQueryWalker
-
- org.hibernate.query.sqm.tree.jpa.ParameterCollector
-
- All Implemented Interfaces:
SemanticQueryWalker<Object>
public class ParameterCollector extends BaseSemanticQueryWalker
todo (6.0) : how is this different fromParameterCollector
?
-
-
Method Summary
-
Methods inherited from class org.hibernate.query.sqm.spi.BaseSemanticQueryWalker
consumeAttributeJoin, consumeCrossJoin, consumeCteJoin, consumeDerivedJoin, consumeEntityJoin, consumeExplicitJoin, consumeExplicitJoins, consumeFromClauseRoot, consumePluralPartJoin, consumeTreat, getServiceRegistry, visitAny, visitAnyDiscriminatorTypeExpression, visitAnyDiscriminatorTypeValueExpression, visitAnyValuedValuedPath, visitAssignment, visitBasicValuedPath, visitBinaryArithmeticExpression, visitBooleanExpressionPredicate, visitByUnit, visitCastTarget, visitCoalesce, visitCollation, visitCorrelation, visitCrossJoin, visitCteContainer, visitCteStatement, visitDeleteStatement, visitDiscriminatorPath, visitDistinct, visitDurationUnit, visitDynamicInstantiation, visitElementAggregateFunction, visitEmbeddableValuedPath, visitEntityTypeLiteralExpression, visitEntityValuedPath, visitEnumLiteral, visitEvery, visitExistsPredicate, visitExtractUnit, visitFetchExpression, visitFieldLiteral, visitFkExpression, visitFormat, visitFromClause, visitFullyQualifiedClass, visitGroupByClause, visitGroupedPredicate, visitHavingClause, visitIndexAggregateFunction, visitInsertSelectStatement, visitInsertValuesStatement, visitJpaCompoundSelection, visitJunctionPredicate, visitLiteral, visitMapEntryFunction, visitModifiedSubQueryExpression, visitNegatedPredicate, visitNonAggregatedCompositeValuedPath, visitOffsetExpression, visitOrderByClause, visitOver, visitOverflow, visitParameterizedEntityTypeExpression, visitPluralAttributeSizeFunction, visitPluralPartJoin, visitPluralValuedPath, visitQualifiedAttributeJoin, visitQualifiedCteJoin, visitQualifiedDerivedJoin, visitQualifiedEntityJoin, visitQueryGroup, visitQueryPart, visitQuerySpec, visitRootCte, visitRootDerived, visitRootPath, visitSelectClause, visitSelection, visitSelectQuery, visitSelectStatement, visitSetClause, visitSortSpecification, visitStar, visitSubQueryExpression, visitSummarization, visitToDuration, visitTreatedPath, visitTrimSpecification, visitTuple, visitUnaryOperationExpression, visitUpdateStatement, visitValues, visitWhereClause, visitWindow
-
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
-
collectParameters
public static Set<SqmParameter<?>> collectParameters(SqmStatement<?> statement, Consumer<SqmParameter<?>> consumer, ServiceRegistry serviceRegistry)
-
visitPositionalParameterExpression
public Object visitPositionalParameterExpression(SqmPositionalParameter<?> expression)
- Specified by:
visitPositionalParameterExpression
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitPositionalParameterExpression
in classBaseSemanticQueryWalker
-
visitNamedParameterExpression
public Object visitNamedParameterExpression(SqmNamedParameter<?> expression)
- Specified by:
visitNamedParameterExpression
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitNamedParameterExpression
in classBaseSemanticQueryWalker
-
visitJpaCriteriaParameter
public SqmJpaCriteriaParameterWrapper<?> visitJpaCriteriaParameter(JpaCriteriaParameter<?> expression)
This is called while performing an inflight parameter collection of parameters for `CriteriaQuery#getParameters`. That method can be called multiple times and the parameters may have changed in between each call - therefore the parameters must be collected dynamically each time. This form simply returns the JpaCriteriaParameter- Specified by:
visitJpaCriteriaParameter
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitJpaCriteriaParameter
in classBaseSemanticQueryWalker
- See Also:
SqmSelectStatement.resolveParameters()
-
visitFunction
public Object visitFunction(SqmFunction<?> sqmFunction)
- Specified by:
visitFunction
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitFunction
in classBaseSemanticQueryWalker
-
visitSimpleCaseExpression
public Object visitSimpleCaseExpression(SqmCaseSimple<?,?> expression)
- Specified by:
visitSimpleCaseExpression
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitSimpleCaseExpression
in classBaseSemanticQueryWalker
-
visitSearchedCaseExpression
public Object visitSearchedCaseExpression(SqmCaseSearched<?> expression)
- Specified by:
visitSearchedCaseExpression
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitSearchedCaseExpression
in classBaseSemanticQueryWalker
-
visitIndexedPluralAccessPath
public Object visitIndexedPluralAccessPath(SqmIndexedCollectionAccessPath<?> path)
- Specified by:
visitIndexedPluralAccessPath
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitIndexedPluralAccessPath
in classBaseSemanticQueryWalker
-
visitIsEmptyPredicate
public Object visitIsEmptyPredicate(SqmEmptinessPredicate predicate)
- Specified by:
visitIsEmptyPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitIsEmptyPredicate
in classBaseSemanticQueryWalker
-
visitIsNullPredicate
public Object visitIsNullPredicate(SqmNullnessPredicate predicate)
- Specified by:
visitIsNullPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitIsNullPredicate
in classBaseSemanticQueryWalker
-
visitComparisonPredicate
public Object visitComparisonPredicate(SqmComparisonPredicate predicate)
- Specified by:
visitComparisonPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitComparisonPredicate
in classBaseSemanticQueryWalker
-
visitBetweenPredicate
public Object visitBetweenPredicate(SqmBetweenPredicate predicate)
- Specified by:
visitBetweenPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitBetweenPredicate
in classBaseSemanticQueryWalker
-
visitLikePredicate
public Object visitLikePredicate(SqmLikePredicate predicate)
- Specified by:
visitLikePredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitLikePredicate
in classBaseSemanticQueryWalker
-
visitMemberOfPredicate
public Object visitMemberOfPredicate(SqmMemberOfPredicate predicate)
- Specified by:
visitMemberOfPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitMemberOfPredicate
in classBaseSemanticQueryWalker
-
visitInListPredicate
public Object visitInListPredicate(SqmInListPredicate<?> predicate)
- Specified by:
visitInListPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitInListPredicate
in classBaseSemanticQueryWalker
-
visitInSubQueryPredicate
public Object visitInSubQueryPredicate(SqmInSubQueryPredicate<?> predicate)
- Specified by:
visitInSubQueryPredicate
in interfaceSemanticQueryWalker<Object>
- Overrides:
visitInSubQueryPredicate
in classBaseSemanticQueryWalker
-
-