Class DefaultPreparedQueryResolver

java.lang.Object
io.micronaut.data.runtime.query.DefaultPreparedQueryResolver
All Implemented Interfaces:
PreparedQueryResolver

@Internal public abstract class DefaultPreparedQueryResolver extends Object implements PreparedQueryResolver
Default prepared query resolver.
Since:
3.3
Author:
Denis Stepanov
  • Constructor Details

    • DefaultPreparedQueryResolver

      public DefaultPreparedQueryResolver()
  • Method Details

    • resolveQuery

      public <E, R> PreparedQuery<E,R> resolveQuery(io.micronaut.aop.MethodInvocationContext<?,?> context, StoredQuery<E,R> storedQuery, Pageable pageable)
      Description copied from interface: PreparedQueryResolver
      Prepared query resolved from the method context.
      Specified by:
      resolveQuery in interface PreparedQueryResolver
      Type Parameters:
      E - The entity type
      R - The result type
      Parameters:
      context - The method context
      storedQuery - The stored query
      pageable - The pageable
      Returns:
      The prepared query
    • resolveCountQuery

      public <E, R> PreparedQuery<E,R> resolveCountQuery(io.micronaut.aop.MethodInvocationContext<?,?> context, StoredQuery<E,R> storedQuery, Pageable pageable)
      Description copied from interface: PreparedQueryResolver
      Prepared count query resolved from the method context.
      Specified by:
      resolveCountQuery in interface PreparedQueryResolver
      Type Parameters:
      E - The entity type
      R - The result type
      Parameters:
      context - The method context
      storedQuery - The stored query
      pageable - The pageable
      Returns:
      The prepared query
    • getConversionService

      protected abstract io.micronaut.core.convert.ConversionService getConversionService()