Class DeleteCriteriaMethodMatch
java.lang.Object
io.micronaut.data.processor.visitors.finders.AbstractCriteriaMethodMatch
io.micronaut.data.processor.visitors.finders.criteria.DeleteCriteriaMethodMatch
- All Implemented Interfaces:
MethodMatcher.MethodMatch
Delete 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
ConstructorDescriptionDeleteCriteriaMethodMatch
(List<MethodNameParser.Match> matches, boolean isReturning) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> void
apply
(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaDelete<T> query, SourcePersistentEntityCriteriaBuilder cb) Apply query match.protected <T> void
applyProjections
(String projection, PersistentEntityRoot<T> root, PersistentEntityCriteriaDelete<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
-
DeleteCriteriaMethodMatch
Default constructor.- Parameters:
matches
- The matchesisReturning
- Is returning
-
-
Method Details
-
apply
protected <T> void apply(MethodMatchContext matchContext, PersistentEntityRoot<T> root, PersistentEntityCriteriaDelete<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, PersistentEntityCriteriaDelete<T> query, PersistentEntityCriteriaBuilder cb) Apply projections.- Type Parameters:
T
- The entity type- Parameters:
projection
- The querySequenceroot
- The rootquery
- The querycb
- The criteria builder
-
build
- Specified by:
build
in classAbstractCriteriaMethodMatch
-
getOperationType
- Specified by:
getOperationType
in classAbstractCriteriaMethodMatch
- Returns:
- The operation type
-