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 Summary
ConstructorsConstructorDescriptionMethodMatchInfo(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable io.micronaut.inject.ast.ClassElement interceptor) Creates a method info. - 
Method Summary
Modifier 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
- 
MethodMatchInfo
public 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 typeresultType- The result type, can be null for void etc.interceptor- The interceptor type to execute at runtime
 
 - 
 - 
Method Details
- 
getOperationType
- Returns:
 - The operation type
 
 - 
isDto
public boolean isDto()Is the query result a DTO query.- Returns:
 - True if it is
 
 - 
isOptimisticLock
public boolean isOptimisticLock()Gets optimistic lock value.- Returns:
 - the value
 
 - 
setOptimisticLock
public void setOptimisticLock(boolean optimisticLock) Sets optimistic lock value.- Parameters:
 optimisticLock- new value
 - 
addParameterRole
Adds a parameter role. This indicates that a parameter is involved somehow in the query.- Parameters:
 role- The role namename- 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
 - 
getInterceptor
public io.micronaut.inject.ast.ClassElement getInterceptor() - 
getQueryResult
 - 
getCountQueryResult
 - 
isRawQuery
public boolean isRawQuery() - 
isEncodeEntityParameters
public boolean isEncodeEntityParameters() 
 -