Interface AdvancedPredicateVisitor<P>
- Type Parameters:
P
- The property type
- All Superinterfaces:
PredicateVisitor
- All Known Implementing Classes:
AbstractSqlLikeQueryBuilder2.SqlPredicateVisitor
A variation of
PredicateVisitor
that visits more expression methods.- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
appendPredicateOfPropertyAndExpression
(PredicateBinaryOp op, P leftProperty, jakarta.persistence.criteria.Expression<?> expression) getRequiredProperty
(PersistentPropertyPath<?> persistentPropertyPath) Get the required property defined by the property path.default void
visit
(ExpressionBinaryPredicate expressionBinaryPredicate) VisitExpressionBinaryPredicate
.default void
visit
(PersistentPropertyBetweenPredicate<?> propertyBetweenPredicate) default void
visit
(PersistentPropertyBinaryPredicate<?> propertyToExpressionOp) default void
visit
(PersistentPropertyInPredicate<?> predicate) default void
visit
(PersistentPropertyUnaryPredicate<?> propertyOp) default void
visitArrayContains
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitContains
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEndsWith
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEquals
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitGreaterThan
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitGreaterThanOrEquals
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitIdEquals
(jakarta.persistence.criteria.Expression<?> expression) void
visitIn
(P propertyPath, Collection<?> values, boolean negated) void
visitInBetween
(P property, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) void
visitIsEmpty
(P property) void
visitIsFalse
(P property) void
visitIsNotEmpty
(P property) void
visitIsNotNull
(P property) void
visitIsNull
(P property) void
visitIsTrue
(P property) void
visitLessThan
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitLessThanOrEquals
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitNotEquals
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) default void
visitPropertyPathPredicate
(PersistentPropertyPath<?> propertyPath, jakarta.persistence.criteria.Expression<?> expression, PredicateBinaryOp op) default void
visitRegexp
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitStartsWith
(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.PredicateVisitor
visit, visit, visit, visit
-
Method Details
-
getRequiredProperty
Get the required property defined by the property path.- Parameters:
persistentPropertyPath
- The criteria property- Returns:
- The property
-
visit
Description copied from interface:PredicateVisitor
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
propertyOp
- The propertyOp
-
visit
Description copied from interface:PredicateVisitor
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
propertyBetweenPredicate
- The propertyBetweenPredicate
-
visit
Description copied from interface:PredicateVisitor
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
propertyToExpressionOp
- The propertyToExpressionOp
-
visit
Description copied from interface:PredicateVisitor
VisitExpressionBinaryPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
expressionBinaryPredicate
- The expressionBinaryPredicate
-
visitIdEquals
void visitIdEquals(jakarta.persistence.criteria.Expression<?> expression) -
visitPropertyPathPredicate
default void visitPropertyPathPredicate(PersistentPropertyPath<?> propertyPath, jakarta.persistence.criteria.Expression<?> expression, PredicateBinaryOp op) -
appendPredicateOfPropertyAndExpression
default void appendPredicateOfPropertyAndExpression(PredicateBinaryOp op, P leftProperty, jakarta.persistence.criteria.Expression<?> expression) -
visitContains
void visitContains(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) -
visitEndsWith
void visitEndsWith(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) -
visitRegexp
-
visitArrayContains
default void visitArrayContains(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) -
visitStartsWith
void visitStartsWith(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) -
visitEquals
void visitEquals(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) -
visitNotEquals
void visitNotEquals(P leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) -
visitGreaterThan
-
visitGreaterThanOrEquals
void visitGreaterThanOrEquals(P leftProperty, jakarta.persistence.criteria.Expression<?> expression) -
visitLessThan
-
visitLessThanOrEquals
-
visitInBetween
void visitInBetween(P property, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) -
visitIsFalse
-
visitIsNotNull
-
visitIsNull
-
visitIsTrue
-
visitIsEmpty
-
visitIsNotEmpty
-
visit
Description copied from interface:PredicateVisitor
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
predicate
- The propertyIn
-
visitIn
-