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 SummaryNested classes/interfaces inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatchAbstractCriteriaMethodMatch.MethodResult
- 
Field SummaryFields inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatchmatches
- 
Constructor SummaryConstructorsConstructorDescriptionUpdateCriteriaMethodMatch(List<MethodNameParser.Match> matches, boolean isReturning) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected <T> voidaddPropertiesToUpdate(List<io.micronaut.inject.ast.ParameterElement> nonConsumedParameters, MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) protected <T> voidapply(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.protected <T> voidapplyProjections(String projection, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.protected MethodMatchInfobuild(MethodMatchContext matchContext) protected DataMethod.OperationTypeprotected <T> jakarta.persistence.criteria.PredicateinterceptPredicate(MethodMatchContext matchContext, List<io.micronaut.inject.ast.ParameterElement> notConsumedParameters, PersistentEntityRoot<T> root, PersistentEntityCriteriaBuilder cb, jakarta.persistence.criteria.Predicate existingPredicate) Intercept the predicate being applied.Methods inherited from class io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatchanalyzeMethodResult, analyzeMethodResult, applyJoinSpecs, buildMatchInfo, extractPredicates, extractPredicates, findProperty, findSelections, getDtoProjectionProperties, getEntitiesParameter, getEntityParameter, getProperty, hasNoWhereAndJoinDeclaration, joinSpecsAtMatchContext, resolveReturnTypeAndInterceptor, supportedByImplicitQueries
- 
Constructor Details- 
UpdateCriteriaMethodMatchDefault constructor.- Parameters:
- matches- The matches
- isReturning- The returning
 
 
- 
- 
Method Details- 
applyprotected <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 context
- root- The root
- query- The query
- cb- The criteria builder
 
- 
interceptPredicateprotected <T> jakarta.persistence.criteria.Predicate interceptPredicate(MethodMatchContext matchContext, List<io.micronaut.inject.ast.ParameterElement> notConsumedParameters, PersistentEntityRoot<T> root, PersistentEntityCriteriaBuilder cb, jakarta.persistence.criteria.Predicate existingPredicate) Description copied from class:AbstractCriteriaMethodMatchIntercept the predicate being applied.- Overrides:
- interceptPredicatein class- AbstractCriteriaMethodMatch
- Type Parameters:
- T- The entity type
- Parameters:
- matchContext- The matchContext
- notConsumedParameters- The parameters
- root- The root
- cb- The criteria builder
- existingPredicate- The existing predicate
- Returns:
- A new predicate
 
- 
applyProjectionsprotected <T> void applyProjections(String projection, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.- Type Parameters:
- T- The entity type
- Parameters:
- projection- The querySequence
- root- The root
- query- The query
- cb- The criteria builder
 
- 
addPropertiesToUpdateprotected <T> void addPropertiesToUpdate(List<io.micronaut.inject.ast.ParameterElement> nonConsumedParameters, MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaUpdate<T> query, SourcePersistentEntityCriteriaBuilder cb) 
- 
build- Specified by:
- buildin class- AbstractCriteriaMethodMatch
 
- 
getOperationType- Specified by:
- getOperationTypein class- AbstractCriteriaMethodMatch
- Returns:
- The operation type
 
 
-