java.lang.Object
io.micronaut.data.processor.visitors.finders.MatchUtils

@Internal public final class MatchUtils extends Object
The match utils.
Since:
5.0
Author:
Denis Stepanov
  • 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 class
      rootEntity - The root entity
      queryResultType - The query result type
      interceptorMatch - The interceptor match
      allowEntityResultByDefault - 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)