Interface PagedQuery<E>

Type Parameters:
E - The entity type
All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named
All Known Subinterfaces:
BindableParametersPreparedQuery<E,R>, DelegatePreparedQuery<E,R>, MongoPreparedQuery<E,R>, PreparedQuery<E,R>, SqlPreparedQuery<E,R>
All Known Implementing Classes:
DefaultBindableParametersPreparedQuery, DefaultPagedQuery, DefaultPreparedQuery, DefaultSqlPreparedQuery, DummyPreparedQuery

public interface PagedQuery<E> extends io.micronaut.core.naming.Named, io.micronaut.core.annotation.AnnotationMetadataProvider
Object passed to queries for pagination requests.
Since:
1.0.0
Author:
graemerocher
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Pageable
     
    default @NonNull Map<String,Object>
    The parameter binding.
    @NonNull Class<E>
    The root entity type.

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

    findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType

    Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

    getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared

    Methods inherited from interface io.micronaut.core.naming.Named

    getName
  • Method Details

    • getRootEntity

      @NonNull @NonNull Class<E> getRootEntity()
      The root entity type.
      Returns:
      The root entity type
    • getPageable

      @NonNull @NonNull Pageable getPageable()
      Returns:
      The pageable object. Defaults to Pageable.UNPAGED
    • getQueryHints

      @NonNull default @NonNull Map<String,Object> getQueryHints()
      The parameter binding. That is the mapping between named query parameters and parameters of the method.
      Returns:
      The parameter binding.