Class UpdateCriteriaMethodMatch
java.lang.Object
io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
io.micronaut.data.processor.visitors.finders.criteria.UpdateCriteriaMethodMatch
- All Implemented Interfaces:
MethodMatcher.MethodMatch
Update 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
ConstructorDescriptionUpdateCriteriaMethodMatch
(List<MethodNameParser.Match> matches, boolean isReturning) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
addPropertiesToUpdate
(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) protected <T> void
apply
(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.protected <T> void
applyProjections
(String projection, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<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
analyzeMethodResult, analyzeMethodResult, applyJoinSpecs, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, applyPredicates, buildMatchInfo, findProperty, findSelections, getDtoProjectionProperties, getEntitiesParameter, getEntityParameter, getProperty, hasNoWhereAndJoinDeclaration, joinSpecsAtMatchContext, resolveReturnTypeAndInterceptor, supportedByImplicitQueries
-
Constructor Details
-
UpdateCriteriaMethodMatch
Default constructor.- Parameters:
matches
- The matchesisReturning
- The returning
-
-
Method Details
-
apply
protected <T> void apply(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<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
-
applyProjections
protected <T> void applyProjections(String projection, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.- Type Parameters:
T
- The entity type- Parameters:
projection
- The querySequenceroot
- The rootquery
- The querycb
- The criteria builder
-
addPropertiesToUpdate
protected <T> void addPropertiesToUpdate(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) -
build
- Specified by:
build
in classAbstractCriteriaMethodMatch
-
getOperationType
- Specified by:
getOperationType
in classAbstractCriteriaMethodMatch
- Returns:
- The operation type
-