public final class MethodMatchInfo
extends java.lang.Object
DataMethod
annotation
which is readable at runtime.Constructor and Description |
---|
MethodMatchInfo(DataMethod.OperationType operationType,
io.micronaut.inject.ast.TypedElement resultType,
io.micronaut.inject.ast.ClassElement interceptor)
Creates a method info.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameterRole(java.lang.CharSequence role,
java.lang.String name)
Adds a parameter role.
|
MethodMatchInfo |
countQueryResult(QueryResult countQueryResult) |
MethodMatchInfo |
dto(boolean dto) |
MethodMatchInfo |
encodeEntityParameters(boolean encodeEntityParameters) |
QueryResult |
getCountQueryResult() |
io.micronaut.inject.ast.ClassElement |
getInterceptor() |
DataMethod.OperationType |
getOperationType() |
java.util.Map<java.lang.String,java.lang.String> |
getParameterRoles() |
QueryResult |
getQueryResult() |
io.micronaut.inject.ast.TypedElement |
getResultType()
The computed result type.
|
io.micronaut.inject.ast.ClassElement |
getRuntimeInterceptor()
The runtime interceptor that will handle the method.
|
boolean |
isDto()
Is the query result a DTO query.
|
boolean |
isEncodeEntityParameters() |
boolean |
isOptimisticLock()
Gets optimistic lock value.
|
boolean |
isRawQuery() |
MethodMatchInfo |
isRawQuery(boolean isRawQuery) |
MethodMatchInfo |
optimisticLock(boolean optimisticLock) |
MethodMatchInfo |
queryResult(QueryResult queryResult) |
void |
setOptimisticLock(boolean optimisticLock)
Sets optimistic lock value.
|
public MethodMatchInfo(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable io.micronaut.inject.ast.ClassElement interceptor)
operationType
- The operation typeresultType
- The result type, can be null for void etc.interceptor
- The interceptor type to execute at runtimepublic DataMethod.OperationType getOperationType()
public boolean isDto()
public boolean isOptimisticLock()
public void setOptimisticLock(boolean optimisticLock)
optimisticLock
- new valuepublic void addParameterRole(java.lang.CharSequence role, java.lang.String name)
role
- The role namename
- The parameterTypeRole
public java.util.Map<java.lang.String,java.lang.String> getParameterRoles()
@Nullable public io.micronaut.inject.ast.TypedElement getResultType()
@Nullable public io.micronaut.inject.ast.ClassElement getRuntimeInterceptor()
public MethodMatchInfo dto(boolean dto)
public MethodMatchInfo queryResult(QueryResult queryResult)
public MethodMatchInfo countQueryResult(QueryResult countQueryResult)
public MethodMatchInfo isRawQuery(boolean isRawQuery)
public MethodMatchInfo encodeEntityParameters(boolean encodeEntityParameters)
public MethodMatchInfo optimisticLock(boolean optimisticLock)
public io.micronaut.inject.ast.ClassElement getInterceptor()
public QueryResult getQueryResult()
public QueryResult getCountQueryResult()
public boolean isRawQuery()
public boolean isEncodeEntityParameters()