Class AbstractSqlLikeQueryBuilder2.SqlPredicateVisitor
java.lang.Object
io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.SqlPredicateVisitor
- All Implemented Interfaces:
PredicateVisitor
,AdvancedPredicateVisitor<PersistentPropertyPath>
- Enclosing class:
- AbstractSqlLikeQueryBuilder2
protected class AbstractSqlLikeQueryBuilder2.SqlPredicateVisitor
extends Object
implements AdvancedPredicateVisitor<PersistentPropertyPath>
The predicate visitor to construct the query.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.micronaut.core.annotation.AnnotationMetadata
protected final PersistentEntity
protected final StringBuilder
protected final AbstractSqlLikeQueryBuilder2.QueryState
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
SqlPredicateVisitor
(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
appendExpression
(jakarta.persistence.criteria.Expression<?> expression, @Nullable jakarta.persistence.criteria.Expression<?> boundedExpression) protected final void
appendPropertyRef
(PersistentPropertyPath propertyPath) getRequiredProperty
(PersistentPropertyPath<?> persistentPropertyPath) Get the required property defined by the property path.void
visit
(ConjunctionPredicate conjunction) VisitConjunctionPredicate
.void
visit
(DisjunctionPredicate disjunction) VisitDisjunctionPredicate
.void
visit
(ExistsSubqueryPredicate existsSubqueryPredicate) VisitExistsSubqueryPredicate
.void
visit
(LikePredicate likePredicate) VisitLikePredicate
.void
visit
(NegatedPredicate negate) VisitNegatedPredicate
.void
visitContains
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEndsWith
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEquals
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) void
visitGreaterThan
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) void
visitGreaterThanOrEquals
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) void
visitIdEquals
(jakarta.persistence.criteria.Expression<?> expression) void
visitIn
(jakarta.persistence.criteria.Expression<?> expression, Collection<?> values, boolean negated) void
visitInBetween
(jakarta.persistence.criteria.Expression<?> value, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) void
visitIsEmpty
(jakarta.persistence.criteria.Expression<?> expression) void
visitIsFalse
(jakarta.persistence.criteria.Expression<?> expression) void
visitIsNotEmpty
(jakarta.persistence.criteria.Expression<?> expression) void
visitIsNotNull
(jakarta.persistence.criteria.Expression<?> expression) void
visitIsNull
(jakarta.persistence.criteria.Expression<?> expression) void
visitIsTrue
(jakarta.persistence.criteria.Expression<?> expression) void
visitLessThan
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) void
visitLessThanOrEquals
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) void
visitNotEquals
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) void
visitStartsWith
(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.query.impl.AdvancedPredicateVisitor
appendPredicate, visit, visit, visit, visit, visitArrayContains, visitRegexp
-
Field Details
-
persistentEntity
-
tableAlias
-
query
-
queryState
-
annotationMetadata
protected final io.micronaut.core.annotation.AnnotationMetadata annotationMetadata
-
-
Constructor Details
-
SqlPredicateVisitor
protected SqlPredicateVisitor(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
-
-
Method Details
-
getRequiredProperty
Description copied from interface:AdvancedPredicateVisitor
Get the required property defined by the property path.- Specified by:
getRequiredProperty
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
- Parameters:
persistentPropertyPath
- The criteria property- Returns:
- The property
-
visit
Description copied from interface:PredicateVisitor
VisitConjunctionPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
conjunction
- The conjunction
-
visit
Description copied from interface:PredicateVisitor
VisitDisjunctionPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
disjunction
- The disjunction
-
visit
Description copied from interface:PredicateVisitor
VisitNegatedPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
negate
- The negated predicate
-
visit
Description copied from interface:PredicateVisitor
VisitLikePredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
likePredicate
- The like predicate
-
visit
Description copied from interface:PredicateVisitor
VisitExistsSubqueryPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
existsSubqueryPredicate
- The exists subquery predicate
-
visitEquals
public void visitEquals(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) - Specified by:
visitEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitNotEquals
public void visitNotEquals(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) - Specified by:
visitNotEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitGreaterThan
public void visitGreaterThan(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) - Specified by:
visitGreaterThan
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitGreaterThanOrEquals
public void visitGreaterThanOrEquals(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) - Specified by:
visitGreaterThanOrEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitLessThan
public void visitLessThan(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) - Specified by:
visitLessThan
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitLessThanOrEquals
public void visitLessThanOrEquals(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression) - Specified by:
visitLessThanOrEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitStartsWith
public void visitStartsWith(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> rightExpression, boolean ignoreCase) - Specified by:
visitStartsWith
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitContains
public void visitContains(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitContains
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitEndsWith
public void visitEndsWith(jakarta.persistence.criteria.Expression<?> leftExpression, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitEndsWith
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIdEquals
public void visitIdEquals(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIdEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
appendPropertyRef
-
appendExpression
protected final void appendExpression(jakarta.persistence.criteria.Expression<?> expression, @Nullable @Nullable jakarta.persistence.criteria.Expression<?> boundedExpression) -
visitIsFalse
public void visitIsFalse(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsFalse
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNotNull
public void visitIsNotNull(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsNotNull
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNull
public void visitIsNull(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsNull
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsTrue
public void visitIsTrue(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsTrue
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsEmpty
public void visitIsEmpty(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsEmpty
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNotEmpty
public void visitIsNotEmpty(jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitIsNotEmpty
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitInBetween
public void visitInBetween(jakarta.persistence.criteria.Expression<?> value, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) - Specified by:
visitInBetween
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIn
public void visitIn(jakarta.persistence.criteria.Expression<?> expression, Collection<?> values, boolean negated) - Specified by:
visitIn
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-