Class MatchUtils
java.lang.Object
io.micronaut.data.processor.visitors.finders.MatchUtils
The match utils.
- Since:
- 5.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodResultanalyzeMethodResult(io.micronaut.inject.ast.ClassElement repositoryClass, io.micronaut.inject.ast.ClassElement rootEntity, @Nullable io.micronaut.inject.ast.ClassElement queryResultType, FindersUtils.InterceptorMatch interceptorMatch, boolean allowEntityResultByDefault) Analyze method result.static booleanisDto(io.micronaut.inject.ast.ClassElement entityType, io.micronaut.inject.ast.ClassElement resultType)
-
Method Details
-
analyzeMethodResult
public static MethodResult analyzeMethodResult(io.micronaut.inject.ast.ClassElement repositoryClass, io.micronaut.inject.ast.ClassElement rootEntity, @Nullable @Nullable io.micronaut.inject.ast.ClassElement queryResultType, FindersUtils.InterceptorMatch interceptorMatch, boolean allowEntityResultByDefault) Analyze method result.- Parameters:
repositoryClass- The repository classrootEntity- The root entityqueryResultType- The query result typeinterceptorMatch- The interceptor matchallowEntityResultByDefault- True if entity result is allowed by default- Returns:
- The method result
-
isDto
public static boolean isDto(io.micronaut.inject.ast.ClassElement entityType, io.micronaut.inject.ast.ClassElement resultType)
-