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, Set<QueryFilter> queryFilters) -
Method Summary
Modifier and TypeMethodDescriptionint
getLink
(int page) long
int
int
getSortedPageLink
(String sortKey, String sortOrder) boolean
void
setCurrentPage
(int currentPage) void
setMaxPage
(int maxPage) void
setPageSize
(int pageSize)
-
Constructor Details
-
PaginationInfo
public PaginationInfo(int currentPage, int maxPage, int pageSize, long maxElement, String query, Set<QueryFilter> queryFilters)
-
-
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()
-