Class QueryCriteriaMethodMatch
java.lang.Object
io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
io.micronaut.data.processor.visitors.finders.criteria.QueryCriteriaMethodMatch
- All Implemented Interfaces:
MethodMatcher.MethodMatch
Query criteria method match.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
AbstractCriteriaMethodMatch.MethodResult
-
Field Summary
Fields inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
matches
-
Constructor Summary
ConstructorDescriptionDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
apply
(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.protected <T> void
applyDistinct
(PersistentEntityCriteriaQuery<T> query) Apply the distinct valu.protected <T> void
applyProjections
(String projectionPart, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, PersistentEntityCriteriaBuilder cb, String returnTypeName) Apply projections.protected MethodMatchInfo
build
(MethodMatchContext matchContext) protected DataMethod.OperationType
Methods inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
analyzeMethodResult, analyzeMethodResult, applyJoinSpecs, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, buildMatchInfo, findProperty, findSelections, getDtoProjectionProperties, getEntitiesParameter, getEntityParameter, getProperty, hasNoWhereAndJoinDeclaration, joinSpecsAtMatchContext, resolveReturnTypeAndInterceptor, supportedByImplicitQueries
-
Constructor Details
-
QueryCriteriaMethodMatch
Default constructor.- Parameters:
matches
- The matches
-
-
Method Details
-
apply
protected <T> void apply(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.- Type Parameters:
T
- The entity type- Parameters:
matchContext
- The match contextroot
- The rootquery
- The querycb
- The criteria builder
-
applyDistinct
Apply the distinct valu.- Type Parameters:
T
- The query type- Parameters:
query
- The query
-
build
- Specified by:
build
in classAbstractCriteriaMethodMatch
-
applyProjections
protected <T> void applyProjections(String projectionPart, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, PersistentEntityCriteriaBuilder cb, String returnTypeName) Apply projections.- Type Parameters:
T
- The entity type- Parameters:
projectionPart
- The projectionroot
- The rootquery
- The querycb
- The criteria builderreturnTypeName
- The returnTypeName
-
getOperationType
- Specified by:
getOperationType
in classAbstractCriteriaMethodMatch
- Returns:
- The operation type
-