public class MethodMatchInfo
extends java.lang.Object
DataMethod
annotation
which is readable at runtime.Modifier and Type | Class and Description |
---|---|
static class |
MethodMatchInfo.OperationType
Describes the operation type.
|
Constructor and Description |
---|
MethodMatchInfo(io.micronaut.inject.ast.TypedElement resultType,
QueryModel query,
io.micronaut.inject.ast.ClassElement interceptor)
Creates a method info.
|
MethodMatchInfo(io.micronaut.inject.ast.TypedElement resultType,
QueryModel query,
io.micronaut.inject.ast.ClassElement interceptor,
boolean dto)
Creates a method info.
|
MethodMatchInfo(io.micronaut.inject.ast.TypedElement resultType,
QueryModel query,
io.micronaut.inject.ast.ClassElement interceptor,
MethodMatchInfo.OperationType operationType)
Creates a method info.
|
MethodMatchInfo(io.micronaut.inject.ast.TypedElement resultType,
QueryModel query,
io.micronaut.inject.ast.ClassElement interceptor,
MethodMatchInfo.OperationType operationType,
java.lang.String[] updateProperties)
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.OperationType |
getOperationType()
The operation type to execute.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterRoles() |
QueryModel |
getQuery()
The query to be executed.
|
io.micronaut.inject.ast.TypedElement |
getResultType()
The computed result type.
|
io.micronaut.inject.ast.ClassElement |
getRuntimeInterceptor()
The runtime interceptor that will handle the method.
|
java.util.List<java.lang.String> |
getUpdateProperties() |
boolean |
isDto()
Is the query result a DTO query.
|
boolean |
isOptimisticLock()
Gets optimistic lock value.
|
void |
setOptimisticLock(boolean optimisticLock)
Sets optimistic lock value.
|
public MethodMatchInfo(@Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable QueryModel query, @Nullable io.micronaut.inject.ast.ClassElement interceptor)
resultType
- The result typequery
- The queryinterceptor
- The interceptor type to execute at runtimepublic MethodMatchInfo(@Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable QueryModel query, @Nullable io.micronaut.inject.ast.ClassElement interceptor, boolean dto)
resultType
- The result typequery
- The queryinterceptor
- The interceptor type to execute at runtimedto
- indicate that this is a DTO querypublic MethodMatchInfo(@Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable QueryModel query, @Nullable io.micronaut.inject.ast.ClassElement interceptor, @NonNull MethodMatchInfo.OperationType operationType)
resultType
- The result type, can be null for void etc.query
- The query, can be null for interceptors that don't execute queries.interceptor
- The interceptor type to execute at runtimeoperationType
- The operation typepublic MethodMatchInfo(@Nullable io.micronaut.inject.ast.TypedElement resultType, @Nullable QueryModel query, @Nullable io.micronaut.inject.ast.ClassElement interceptor, @NonNull MethodMatchInfo.OperationType operationType, java.lang.String[] updateProperties)
resultType
- The result type, can be null for void etc.query
- The query, can be null for interceptors that don't execute queries.interceptor
- The interceptor type to execute at runtimeoperationType
- The operation typeupdateProperties
- the update propertiespublic 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()
@NonNull public java.util.List<java.lang.String> getUpdateProperties()
@Nullable public io.micronaut.inject.ast.TypedElement getResultType()
@Nullable public QueryModel getQuery()
@Nullable public io.micronaut.inject.ast.ClassElement getRuntimeInterceptor()
@NonNull public MethodMatchInfo.OperationType getOperationType()