public class PagedRequest<E> extends BaseRequest
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CURRENT_PAGE |
static int |
DEFAULT_PAGE_SIZE |
| Constructor and Description |
|---|
PagedRequest() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentPage() |
int |
getMySQLOffset() |
int |
getPageSize() |
boolean |
isCountTotal() |
boolean |
isFetchAll() |
int |
resolveCurrentPage(int currentPage) |
int |
resolvePageSize(int pageSize) |
void |
setCountTotal(boolean countTotal) |
void |
setCurrentPage(int currentPage) |
void |
setFetchAll(boolean fetchAll) |
void |
setPageParam(int currentPage,
int pageSize) |
void |
setPageParam(int currentPage,
int pageSize,
boolean countTotal) |
void |
setPageParam(int currentPage,
int pageSize,
boolean fetchAll,
boolean countTotal) |
void |
setPageSize(int pageSize) |
getSid, setSidpublic static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_CURRENT_PAGE
public void setPageParam(int currentPage,
int pageSize,
boolean fetchAll,
boolean countTotal)
public void setPageParam(int currentPage,
int pageSize)
public void setPageParam(int currentPage,
int pageSize,
boolean countTotal)
public int getCurrentPage()
public void setCurrentPage(int currentPage)
public int getPageSize()
public void setPageSize(int pageSize)
public boolean isFetchAll()
public void setFetchAll(boolean fetchAll)
public boolean isCountTotal()
public void setCountTotal(boolean countTotal)
public int resolvePageSize(int pageSize)
public int resolveCurrentPage(int currentPage)
public int getMySQLOffset()
Copyright © 2018. All rights reserved.