Package com.dzidzi.dto.pagination
Class DzidziPaginationDTO.Builder<T>
java.lang.Object
com.dzidzi.dto.pagination.DzidziPaginationDTO.Builder<T>
- Enclosing class:
DzidziPaginationDTO<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()limit(int limit) The limit is used to get a specific amount or subset of a dataset.offset(int offset) The offset.page(int page) The page number.The returns the datasets retrieved from the database.toString()totalCount(long totalCount) The total count of the given filter.totalPages(long totalPages) This returns the total pages of the dataset expected to return by the query.
-
Method Details
-
page
The page number.- Returns:
this.
-
offset
The offset.- Returns:
this.
-
limit
The limit is used to get a specific amount or subset of a dataset. This is the page.- Returns:
this.
-
totalCount
The total count of the given filter.- Returns:
this.
-
totalPages
This returns the total pages of the dataset expected to return by the query.- Returns:
this.
-
results
The returns the datasets retrieved from the database.- Returns:
this.
-
build
-
toString
-