Interface Data.PageableRepository<E,ID>

Type Parameters:
E - the entity type
ID - the identifier type
All Superinterfaces:
Data.GenericRepository<E,ID>
Enclosing class:
Data

public static interface Data.PageableRepository<E,ID> extends Data.GenericRepository<E,ID>
A Data.GenericRepository that supports pagination.
  • Method Details

    • pages

      Page<E> pages(PageRequest pageable)
      Return Page with all entities of the E type. This is pageable alternative of Data.BasicRepository.findAll().
      Parameters:
      pageable - pageable query result as page with specified page number and size, shall not be null
      Returns:
      all entities found, never returns null
      Throws:
      DataException - if the operation has failed
    • slices

      Slice<E> slices(PageRequest pageable)
      Return Slice with all entities of the E type. This is pageable alternative of Data.BasicRepository.findAll().
      Parameters:
      pageable - pageable query result as page with specified page number and size, shall not be null
      Returns:
      all entities found, never returns null
      Throws:
      DataException - if the operation has failed