public class PaginationTo extends AbstractTo
transfer-object containing criteria for paginating
queries.| Modifier and Type | Field and Description |
|---|---|
static PaginationTo |
NO_PAGINATION
Empty
PaginationTo indicating no pagination. |
private int |
page |
private static long |
serialVersionUID
UID for serialization.
|
private Integer |
size |
private boolean |
total |
| Constructor and Description |
|---|
PaginationTo() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPage() |
Integer |
getSize() |
boolean |
isTotal() |
void |
setPage(int page) |
void |
setSize(Integer size) |
void |
setTotal(boolean total) |
protected void |
toString(StringBuilder buffer) |
toStringpublic static final PaginationTo NO_PAGINATION
PaginationTo indicating no pagination.private static final long serialVersionUID
private int page
getPage()private boolean total
isTotal()public Integer getSize()
public void setSize(Integer size)
size - the size of a page.public int getPage()
public void setPage(int page)
page - the current page. Must be greater than 0.public boolean isTotal()
true if the client requests that the server calculates the total number of entries found.public void setTotal(boolean total)
total - is true to request calculation of the total number of entries.protected void toString(StringBuilder buffer)
toString in class AbstractToCopyright © 2014–2016 OASP-Team. All rights reserved.