Class RawQueryMethodMatcher

java.lang.Object
io.micronaut.data.processor.visitors.finders.RawQueryMethodMatcher
All Implemented Interfaces:
io.micronaut.core.order.Ordered, MethodMatcher

public class RawQueryMethodMatcher extends Object implements MethodMatcher
Finder with custom defied query used to return a single result.
Since:
2.4.0
  • Constructor Details

    • RawQueryMethodMatcher

      public RawQueryMethodMatcher()
  • Method Details

    • getOrder

      public final int getOrder()
      Specified by:
      getOrder in interface MethodMatcher
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered
    • match

      public MethodMatcher.MethodMatch match(MethodMatchContext matchContext)
      Specified by:
      match in interface MethodMatcher
    • addBinding

      public static io.micronaut.data.model.query.builder.QueryParameterBinding addBinding(MethodMatchContext matchContext, List<io.micronaut.inject.ast.ParameterElement> parameters, List<io.micronaut.core.annotation.AnnotationValue<io.micronaut.data.annotation.ParameterExpression>> parameterExpressions, io.micronaut.inject.ast.ParameterElement entityParam, SourcePersistentEntity persistentEntity, String name, io.micronaut.data.model.query.BindingParameter.BindingContext bindingContext)
    • extractExpressionType

      public static io.micronaut.inject.ast.ClassElement extractExpressionType(MatchContext matchContext, io.micronaut.core.annotation.AnnotationValue<io.micronaut.data.annotation.ParameterExpression> parameterExpression)
      Extract the expression type.
      Parameters:
      matchContext - The match context
      parameterExpression - The parameter expression
      Returns:
      the type