Class MethodMatchInfo
java.lang.Object
io.micronaut.data.processor.visitors.finders.MethodMatchInfo
The method info. This class describes the pre-computed method handling for a
 repository and is computed into a 
DataMethod annotation
 which is readable at runtime.- Since:
- 1.0
- Author:
- graemerocher
- 
Constructor SummaryConstructorsConstructorDescriptionMethodMatchInfo(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable io.micronaut.inject.ast.ClassElement interceptor) Creates a method info.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddParameterRole(CharSequence role, String name) Adds a parameter role.countQueryResult(QueryResult countQueryResult) dto(boolean dto) encodeEntityParameters(boolean encodeEntityParameters) io.micronaut.inject.ast.ClassElement@Nullable io.micronaut.inject.ast.TypedElementThe computed result type.@Nullable io.micronaut.inject.ast.ClassElementThe runtime interceptor that will handle the method.booleanisDto()Is the query result a DTO query.booleanbooleanGets optimistic lock value.booleanisRawQuery(boolean isRawQuery) optimisticLock(boolean optimisticLock) queryResult(QueryResult queryResult) voidsetOptimisticLock(boolean optimisticLock) Sets optimistic lock value.
- 
Constructor Details- 
MethodMatchInfopublic MethodMatchInfo(DataMethod.OperationType operationType, @Nullable @Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable @Nullable io.micronaut.inject.ast.ClassElement interceptor) Creates a method info.- Parameters:
- operationType- The operation type
- resultType- The result type, can be null for void etc.
- interceptor- The interceptor type to execute at runtime
 
 
- 
- 
Method Details- 
getOperationType- Returns:
- The operation type
 
- 
isDtopublic boolean isDto()Is the query result a DTO query.- Returns:
- True if it is
 
- 
isOptimisticLockpublic boolean isOptimisticLock()Gets optimistic lock value.- Returns:
- the value
 
- 
setOptimisticLockpublic void setOptimisticLock(boolean optimisticLock) Sets optimistic lock value.- Parameters:
- optimisticLock- new value
 
- 
addParameterRoleAdds a parameter role. This indicates that a parameter is involved somehow in the query.- Parameters:
- role- The role name
- name- The parameter
- See Also:
 
- 
getParameterRoles- Returns:
- The parameter roles
 
- 
getResultType@Nullable public @Nullable io.micronaut.inject.ast.TypedElement getResultType()The computed result type.- Returns:
- The result type.
 
- 
getRuntimeInterceptor@Nullable public @Nullable io.micronaut.inject.ast.ClassElement getRuntimeInterceptor()The runtime interceptor that will handle the method.- Returns:
- The runtime interceptor
 
- 
dto
- 
queryResult
- 
countQueryResult
- 
isRawQuery
- 
encodeEntityParameters
- 
optimisticLock
- 
getInterceptorpublic io.micronaut.inject.ast.ClassElement getInterceptor()
- 
getQueryResult
- 
getCountQueryResult
- 
isRawQuerypublic boolean isRawQuery()
- 
isEncodeEntityParameterspublic boolean isEncodeEntityParameters()
 
-