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
-
Field Summary
Fields inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
matcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
apply
(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.protected <T> String
applyProjections
(String querySequence, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.protected MethodMatchInfo
build
(MethodMatchContext matchContext) protected DataMethod.OperationType
Methods inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
applyForUpdate, applyJoinSpecs, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, buildMatchInfo, findProperty, getEntitiesParameter, getEntityParameter, getInterceptorElement, getProperty, hasNoWhereAndJoinDeclaration, joinSpecsAtMatchContext, resolveReturnTypeAndInterceptor, supportedByImplicitQueries
-
Constructor Details
-
QueryCriteriaMethodMatch
Default constructor.- Parameters:
matcher
- The matcher
-
-
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
-
build
- Specified by:
build
in classAbstractCriteriaMethodMatch
-
applyProjections
protected <T> String applyProjections(String querySequence, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.- Type Parameters:
T
- The entity type- Parameters:
querySequence
- The querySequenceroot
- The rootquery
- The querycb
- The criteria builder- Returns:
- the remaining querySequence
-
getOperationType
- Specified by:
getOperationType
in classAbstractCriteriaMethodMatch
- Returns:
- The operation type
-