Class AbstractSqlLikeQueryBuilder2.ExpressionAppender
java.lang.Object
io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.ExpressionAppender
- All Implemented Interfaces:
ExpressionVisitor
- Direct Known Subclasses:
AbstractSqlLikeQueryBuilder2.SqlPredicateVisitor
- Enclosing class:
- AbstractSqlLikeQueryBuilder2
protected class AbstractSqlLikeQueryBuilder2.ExpressionAppender
extends Object
implements ExpressionVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.micronaut.core.annotation.AnnotationMetadata
protected final PersistentEntity
protected final StringBuilder
protected final AbstractSqlLikeQueryBuilder2.QueryState
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExpressionAppender
(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
appendBinaryOperation
(@NonNull String operator, @NonNull jakarta.persistence.criteria.Expression<?> leftExpression, @NonNull jakarta.persistence.criteria.Expression<?> rightExpression) protected final void
appendBindingParameter
(BindingParameter bindingParameter, @Nullable PersistentPropertyPath entityPropertyPath) protected final void
appendExpression
(jakarta.persistence.criteria.Expression<?> expression) protected final void
appendExpression
(jakarta.persistence.criteria.Expression<?> expression, @Nullable jakarta.persistence.criteria.Expression<?> boundedExpression) protected final void
appendFunction
(String functionName, jakarta.persistence.criteria.Expression<?> expression) protected final void
appendFunction
(String functionName, List<jakarta.persistence.criteria.Expression<?>> expressions) protected final void
appendPropertyRef
(PersistentPropertyPath propertyPath) protected final PersistentPropertyPath
findParameterBoundProperty
(jakarta.persistence.criteria.Expression<?> binaryOpExpression) final PersistentPropertyPath
getRequiredProperty
(PersistentPropertyPath<?> persistentPropertyPath) void
visit
(BinaryExpression<?> binaryExpression) VisitBinaryExpression
.void
visit
(FunctionExpression<?> functionExpression) VisitFunctionExpression
.void
visit
(IdExpression<?, ?> idExpression) VisitIdExpression
.void
visit
(LiteralExpression<?> literalExpression) VisitLiteralExpression
.void
visit
(SubqueryExpression<?> subqueryExpression) VisitSubqueryExpression
.void
visit
(UnaryExpression<?> unaryExpression) VisitUnaryExpression
.void
visit
(IParameterExpression<?> parameterExpression) VisitIParameterExpression
.void
visit
(PersistentEntityRoot<?> entityRoot) VisitPersistentEntityRoot
.void
visit
(PersistentEntitySubquery<?> subquery) VisitPersistentEntitySubquery
.void
visit
(PersistentPropertyPath<?> persistentPropertyPath) VisitPersistentPropertyPath
.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.jpa.criteria.impl.ExpressionVisitor
visit
-
Field Details
-
persistentEntity
-
tableAlias
-
query
-
queryState
-
annotationMetadata
protected final io.micronaut.core.annotation.AnnotationMetadata annotationMetadata
-
-
Constructor Details
-
ExpressionAppender
protected ExpressionAppender(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
-
-
Method Details
-
getRequiredProperty
public final PersistentPropertyPath getRequiredProperty(PersistentPropertyPath<?> persistentPropertyPath) -
appendPropertyRef
-
appendBinaryOperation
protected final void appendBinaryOperation(@NonNull @NonNull String operator, @NonNull @NonNull jakarta.persistence.criteria.Expression<?> leftExpression, @NonNull @NonNull jakarta.persistence.criteria.Expression<?> rightExpression) -
appendExpression
protected final void appendExpression(jakarta.persistence.criteria.Expression<?> expression) -
appendExpression
protected final void appendExpression(jakarta.persistence.criteria.Expression<?> expression, @Nullable @Nullable jakarta.persistence.criteria.Expression<?> boundedExpression) -
findParameterBoundProperty
protected final PersistentPropertyPath findParameterBoundProperty(jakarta.persistence.criteria.Expression<?> binaryOpExpression) -
appendFunction
protected final void appendFunction(String functionName, jakarta.persistence.criteria.Expression<?> expression) -
appendFunction
-
appendBindingParameter
protected final void appendBindingParameter(BindingParameter bindingParameter, @Nullable @Nullable PersistentPropertyPath entityPropertyPath) -
visit
Description copied from interface:ExpressionVisitor
VisitPersistentPropertyPath
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
persistentPropertyPath
- The persistentPropertyPath
-
visit
Description copied from interface:ExpressionVisitor
VisitPersistentEntityRoot
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
entityRoot
- The entityRoot
-
visit
Description copied from interface:ExpressionVisitor
VisitLiteralExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
literalExpression
- The literalExpression
-
visit
Description copied from interface:ExpressionVisitor
VisitUnaryExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
unaryExpression
- The unary expression
-
visit
Description copied from interface:ExpressionVisitor
VisitBinaryExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
binaryExpression
- The aggregateExpression
-
visit
Description copied from interface:ExpressionVisitor
VisitIdExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
idExpression
- The idExpression
-
visit
Description copied from interface:ExpressionVisitor
VisitFunctionExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
functionExpression
- The function expression
-
visit
Description copied from interface:ExpressionVisitor
VisitIParameterExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
parameterExpression
- The parameter expression
-
visit
Description copied from interface:ExpressionVisitor
VisitSubqueryExpression
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
subqueryExpression
- The subquery expression
-
visit
Description copied from interface:ExpressionVisitor
VisitPersistentEntitySubquery
.- Specified by:
visit
in interfaceExpressionVisitor
- Parameters:
subquery
- The subquery
-