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, PersistentPropertyPath propertyPath) 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
(LikePredicate likePredicate) VisitLikePredicate
.void
visit
(NegatedPredicate negate) VisitNegatedPredicate
.void
visit
(PersistentPropertyInPredicate<?> predicate) void
visitContains
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEndsWith
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitEquals
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitGreaterThan
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitGreaterThanOrEquals
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitIdEquals
(jakarta.persistence.criteria.Expression<?> expression) void
visitIn
(PersistentPropertyPath propertyPath, Collection<?> values, boolean negated) void
visitInBetween
(PersistentPropertyPath propertyPath, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) void
visitIsEmpty
(PersistentPropertyPath propertyPath) void
visitIsFalse
(PersistentPropertyPath propertyPath) void
visitIsNotEmpty
(PersistentPropertyPath propertyPath) void
visitIsNotNull
(PersistentPropertyPath propertyPath) void
visitIsNull
(PersistentPropertyPath propertyPath) void
visitIsTrue
(PersistentPropertyPath propertyPath) void
visitLessThan
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitLessThanOrEquals
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) void
visitNotEquals
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) void
visitStartsWith
(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, 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
appendPredicateOfPropertyAndExpression, visit, visit, visit, visit, visitArrayContains, visitPropertyPathPredicate, 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 negate
-
visit
Description copied from interface:PredicateVisitor
VisitLikePredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
likePredicate
- The like predicate
-
visitEquals
public void visitEquals(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitNotEquals
public void visitNotEquals(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitNotEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitGreaterThan
public void visitGreaterThan(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitGreaterThan
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitGreaterThanOrEquals
public void visitGreaterThanOrEquals(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitGreaterThanOrEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitLessThan
public void visitLessThan(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitLessThan
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitLessThanOrEquals
public void visitLessThanOrEquals(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression) - Specified by:
visitLessThanOrEquals
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitStartsWith
public void visitStartsWith(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitStartsWith
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitContains
public void visitContains(PersistentPropertyPath leftProperty, jakarta.persistence.criteria.Expression<?> expression, boolean ignoreCase) - Specified by:
visitContains
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitEndsWith
public void visitEndsWith(PersistentPropertyPath leftProperty, 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, PersistentPropertyPath propertyPath) -
visitIsFalse
- Specified by:
visitIsFalse
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNotNull
- Specified by:
visitIsNotNull
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNull
- Specified by:
visitIsNull
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsTrue
- Specified by:
visitIsTrue
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsEmpty
- Specified by:
visitIsEmpty
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitIsNotEmpty
- Specified by:
visitIsNotEmpty
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visitInBetween
public void visitInBetween(PersistentPropertyPath propertyPath, jakarta.persistence.criteria.Expression<?> from, jakarta.persistence.criteria.Expression<?> to) - Specified by:
visitInBetween
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-
visit
Description copied from interface:PredicateVisitor
- Specified by:
visit
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
predicate
- The propertyIn
-
visitIn
- Specified by:
visitIn
in interfaceAdvancedPredicateVisitor<PersistentPropertyPath>
-