Package tech.ailef.dbadmin.external.dto
Class PaginationInfo
java.lang.Object
tech.ailef.dbadmin.external.dto.PaginationInfo
Attached as output to requests that have a paginated response,
holds information about the current pagination.
-
Constructor Summary
ConstructorsConstructorDescriptionPaginationInfo(int currentPage, int maxPage, int pageSize, long maxElement, String query, FilterRequest request) -
Method Summary
Modifier and TypeMethodDescriptionintgetLink(int page) longintintgetSortedPageLink(String sortKey, String sortOrder) booleanvoidsetCurrentPage(int currentPage) voidsetMaxPage(int maxPage) voidsetPageSize(int pageSize)
-
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
-
getLink
-
getBeforePages
-
getAfterPages
-
isLastPage
public boolean isLastPage()
-