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
public class QueryCriteriaMethodMatch extends AbstractCriteriaMethodMatch
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
Constructors Constructor Description QueryCriteriaMethodMatch(java.util.regex.Matcher matcher)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> void
apply(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, SourcePersistentEntityCriteriaBuilder cb)
Apply query match.protected <T> java.lang.String
applyProjections(java.lang.String querySequence, PersistentEntityRoot<T> root, PersistentEntityCriteriaQuery<T> query, PersistentEntityCriteriaBuilder cb)
Apply projections.protected MethodMatchInfo
build(MethodMatchContext matchContext)
protected DataMethod.OperationType
getOperationType()
-
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
-
-
-
-
Method Detail
-
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
protected MethodMatchInfo build(MethodMatchContext matchContext)
- Specified by:
build
in classAbstractCriteriaMethodMatch
-
applyProjections
protected <T> java.lang.String applyProjections(java.lang.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
protected DataMethod.OperationType getOperationType()
- Specified by:
getOperationType
in classAbstractCriteriaMethodMatch
- Returns:
- The operation type
-
-