Class PaginationInfo

java.lang.Object
tech.ailef.dbadmin.external.dto.PaginationInfo

public class PaginationInfo extends Object
Attached as output to requests that have a paginated response, holds information about the current pagination.
  • Constructor Details

    • PaginationInfo

      public PaginationInfo(int currentPage, int maxPage, int pageSize, long maxElement, String query, FilterRequest request)
  • Method Details

    • getCurrentPage

      public int getCurrentPage()
    • setCurrentPage

      public void setCurrentPage(int currentPage)
    • getMaxPage

      public int getMaxPage()
    • setMaxPage

      public void setMaxPage(int maxPage)
    • getPageSize

      public int getPageSize()
    • setPageSize

      public void setPageSize(int pageSize)
    • getMaxElement

      public long getMaxElement()
    • getSortedPageLink

      public String getSortedPageLink(String sortKey, String sortOrder)
    • getLink

      public String getLink(int page)
    • getBeforePages

      public List<Integer> getBeforePages()
    • getAfterPages

      public List<Integer> getAfterPages()
    • isLastPage

      public boolean isLastPage()