Class Joiner
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.util.Joiner
- All Implemented Interfaces:
PredicateVisitor
,SelectionVisitor
Traversing the query selection and predicates and extracting required query joins.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The data structure representing a join. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJoins()
Returns required query joins.void
joinIfNeeded
(PersistentPropertyPath<?> persistentPropertyPath) Join property relationships if needed.void
visit
(IdExpression<?, ?> idExpression) VisitIdExpression
.void
visit
(LiteralExpression<?> literalExpression) VisitLiteralExpression
.void
visit
(ConjunctionPredicate conjunction) VisitConjunctionPredicate
.void
visit
(DisjunctionPredicate disjunction) VisitDisjunctionPredicate
.void
visit
(ExpressionBinaryPredicate expressionBinaryPredicate) VisitExpressionBinaryPredicate
.void
visit
(NegatedPredicate negate) VisitNegatedPredicate
.void
visit
(PersistentPropertyBetweenPredicate<?> propertyBetweenPredicate) void
visit
(PersistentPropertyBinaryPredicate<?> propertyToExpressionOp) void
visit
(PersistentPropertyInPredicate<?> propertyIn) void
visit
(PersistentPropertyInValuesPredicate<?> inValues) void
visit
(PersistentPropertyUnaryPredicate<?> propertyOp) void
visit
(AggregateExpression<?, ?> aggregateExpression) VisitAggregateExpression
.void
visit
(AliasedSelection<?> aliasedSelection) VisitAliasedSelection
.void
visit
(CompoundSelection<?> compoundSelection) VisitCompoundSelection
.void
visit
(PersistentEntityRoot<?> entityRoot) VisitPersistentEntityRoot
.void
visit
(PersistentPropertyPath<?> persistentPropertyPath) VisitPersistentPropertyPath
.void
visit
(jakarta.persistence.criteria.Predicate predicate) VisitPredicate
.
-
Constructor Details
-
Joiner
public Joiner()
-
-
Method Details
-
getJoins
Returns required query joins.- Returns:
- The joins
-
joinIfNeeded
Join property relationships if needed.- Parameters:
persistentPropertyPath
- The property
-
visit
Description copied from interface:SelectionVisitor
VisitPersistentEntityRoot
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
entityRoot
- The entityRoot
-
visit
Description copied from interface:SelectionVisitor
VisitPersistentPropertyPath
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
persistentPropertyPath
- The persistentPropertyPath
-
visit
public void visit(jakarta.persistence.criteria.Predicate predicate) Description copied from interface:SelectionVisitor
VisitPredicate
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
predicate
- The predicate
-
visit
Description copied from interface:SelectionVisitor
VisitAliasedSelection
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
aliasedSelection
- The aliasedSelection
-
visit
Description copied from interface:SelectionVisitor
VisitCompoundSelection
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
compoundSelection
- The compoundSelection
-
visit
Description copied from interface:SelectionVisitor
VisitLiteralExpression
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
literalExpression
- The literalExpression
-
visit
Description copied from interface:SelectionVisitor
VisitIdExpression
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
idExpression
- The idExpression
-
visit
Description copied from interface:SelectionVisitor
VisitAggregateExpression
.- Specified by:
visit
in interfaceSelectionVisitor
- Parameters:
aggregateExpression
- The aggregateExpression
-
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
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
propertyIn
- The propertyIn
-
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
- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
inValues
- The inValues
-
visit
Description copied from interface:PredicateVisitor
VisitExpressionBinaryPredicate
.- Specified by:
visit
in interfacePredicateVisitor
- Parameters:
expressionBinaryPredicate
- The expressionBinaryPredicate
-