Interface PreparedQueryResolver

All Known Implementing Classes:
DefaultPreparedQueryResolver

public interface PreparedQueryResolver
Prepared query resolver.
Since:
3.3
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    <E, R> PreparedQuery<E,R>
    resolveCountQuery(@NonNull io.micronaut.aop.MethodInvocationContext<?,?> context, @NonNull StoredQuery<E,R> storedQuery, @Nullable Pageable pageable)
    Prepared count query resolved from the method context.
    <E, R> PreparedQuery<E,R>
    resolveQuery(@NonNull io.micronaut.aop.MethodInvocationContext<?,?> context, @NonNull StoredQuery<E,R> storedQuery, @NonNull Pageable pageable)
    Prepared query resolved from the method context.
  • Method Details

    • resolveQuery

      <E, R> PreparedQuery<E,R> resolveQuery(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<?,?> context, @NonNull @NonNull StoredQuery<E,R> storedQuery, @NonNull @NonNull Pageable pageable)
      Prepared query resolved from the method context.
      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

      <E, R> PreparedQuery<E,R> resolveCountQuery(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<?,?> context, @NonNull @NonNull StoredQuery<E,R> storedQuery, @Nullable @Nullable Pageable pageable)
      Prepared count query resolved from the method context.
      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