Class PagingAndSortingRepository<T,​ID>

java.lang.Object
NTNU.IDATT1002.repository.AbstractRepository<T,​ID>
NTNU.IDATT1002.repository.PagingAndSortingRepository<T,​ID>
Type Parameters:
T - type of entity
ID - type of entity id
All Implemented Interfaces:
Repository<T,​ID>
Direct Known Subclasses:
AlbumRepository, ImageRepository

public abstract class PagingAndSortingRepository<T,​ID>
extends AbstractRepository<T,​ID>
Paging and Sorting Repository. Supports operations for requesting paginated and sorted results.
  • Constructor Details

  • Method Details

    • findAll

      public Page<T> findAll​(PageRequest pageRequest)
      Find all entities specified by given PageRequest. Queries for the total amount of results to support proper pagination.
      Parameters:
      pageRequest - the PageRequest specifying which page and how many entities to query for, with an optional Sort
      Returns:
      Page consisting of the results of this operation