public class UpdateByMethod extends DynamicFinder
OPERATOR_AND, OPERATOR_OR, OPERATORS
pattern
DEFAULT_POSITION
Constructor and Description |
---|
UpdateByMethod()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected MethodMatchInfo |
buildInfo(MethodMatchContext matchContext,
io.micronaut.inject.ast.ClassElement queryResultType,
QueryModel query)
Build the
MethodMatchInfo . |
protected MethodMatchInfo.OperationType |
getOperationType() |
protected boolean |
hasQueryAnnotation(io.micronaut.inject.ast.MethodElement methodElement)
Method that checks for the presence of the query annotation.
|
boolean |
isMethodMatch(io.micronaut.inject.ast.MethodElement methodElement,
MatchContext matchContext)
Checks whether the given method is a match.
|
buildMatchInfo
applyJoinSpecs, applyOrderBy, buildRawQuery, getInterceptorElement, getInterceptorElement, matchOrder, matchProjections
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
@NonNull protected MethodMatchInfo.OperationType getOperationType()
getOperationType
in class AbstractPatternBasedMethod
public boolean isMethodMatch(io.micronaut.inject.ast.MethodElement methodElement, MatchContext matchContext)
DynamicFinder
isMethodMatch
in interface MethodCandidate
isMethodMatch
in class DynamicFinder
methodElement
- The method elementmatchContext
- The match context. Never null.protected boolean hasQueryAnnotation(@NonNull io.micronaut.inject.ast.MethodElement methodElement)
DynamicFinder
hasQueryAnnotation
in class DynamicFinder
methodElement
- The method element@Nullable protected MethodMatchInfo buildInfo(MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement queryResultType, @Nullable QueryModel query)
AbstractPatternBasedMethod
MethodMatchInfo
.buildInfo
in class AbstractPatternBasedMethod
matchContext
- The match contextqueryResultType
- The query result typequery
- The query