Class DefaultPagedQuery<E>

  • Type Parameters:
    E - The paged query
    All Implemented Interfaces:
    io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named, PagedQuery<E>

    @Internal
    public final class DefaultPagedQuery<E>
    extends java.lang.Object
    implements PagedQuery<E>
    Default implementation of PagedQuery.
    • Field Summary

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

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultPagedQuery​(io.micronaut.inject.ExecutableMethod<?,​?> method, java.lang.Class<E> rootEntity, Pageable pageable)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()  
      java.lang.String getName()  
      Pageable getPageable()  
      java.lang.Class<E> getRootEntity()
      The root entity type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, 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
    • Constructor Detail

      • DefaultPagedQuery

        public DefaultPagedQuery​(io.micronaut.inject.ExecutableMethod<?,​?> method,
                                 @NonNull
                                 java.lang.Class<E> rootEntity,
                                 Pageable pageable)
        Default constructor.
        Parameters:
        method - The method
        rootEntity - The root entity
        pageable - The pageable
    • Method Detail

      • getRootEntity

        @NonNull
        public java.lang.Class<E> getRootEntity()
        Description copied from interface: PagedQuery
        The root entity type.
        Specified by:
        getRootEntity in interface PagedQuery<E>
        Returns:
        The root entity type
      • getName

        @NonNull
        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.core.naming.Named
      • getAnnotationMetadata

        public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
        Specified by:
        getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProvider