Interface PreparedQuery<E,R>

Type Parameters:
E - The entity type
R - The result type
All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.attr.AttributeHolder, io.micronaut.core.naming.Named, PagedQuery<E>, PreparedDataOperation<R>, StoredDataOperation<R>, StoredQuery<E,R>
All Known Subinterfaces:
BindableParametersPreparedQuery<E,R>, DelegatePreparedQuery<E,R>, MongoPreparedQuery<E,R>, SqlPreparedQuery<E,R>
All Known Implementing Classes:
DefaultBindableParametersPreparedQuery, DefaultPreparedQuery, DefaultSqlPreparedQuery, DummyPreparedQuery

public interface PreparedQuery<E,R> extends PagedQuery<E>, StoredQuery<E,R>, PreparedDataOperation<R>
Interface that models a prepared query. A prepared query extends from StoredQuery and includes the bound parameter values.
Since:
1.0.0
Author:
graemerocher
  • Method Details

    • getRepositoryType

      Class<?> getRepositoryType()
      Returns:
      The repository type.
    • getParameterArray

      Object[] getParameterArray()
      Returns:
      The method parameters
    • getArguments

      io.micronaut.core.type.Argument[] getArguments()
      Returns:
      The method arguments
    • getQueryHints

      @NonNull default @NonNull Map<String,Object> getQueryHints()
      Description copied from interface: PagedQuery
      The parameter binding. That is the mapping between named query parameters and parameters of the method.
      Specified by:
      getQueryHints in interface PagedQuery<E>
      Specified by:
      getQueryHints in interface StoredQuery<E,R>
      Returns:
      The parameter binding.
    • isRawQuery

      boolean isRawQuery()
      Gets an indicator telling whether underlying query is raw query.
      Specified by:
      isRawQuery in interface StoredQuery<E,R>
      Returns:
      true if it is raw query