public class Page<T> extends PageOrder implements Serializable
orderDirection, orderField| 构造器和说明 |
|---|
Page() |
Page(int pageSize) |
Page(int pageSize,
String orderDirection,
String orderField) |
Page(List<T> data) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurrentPageNo()
和
getPageNo()一致 |
int |
getFirst() |
int |
getNextPage() |
int |
getPageNo() |
int |
getPageSize() |
int |
getPrePage() |
List |
getRawResult()
获取原生不带类型的结果
|
List<?> |
getResult() |
int |
getTotalCount() |
int |
getTotalPages() |
List<T> |
getTResult()
获取泛型结果
|
boolean |
isAutoCount() |
boolean |
isFirstSetted() |
boolean |
isHasNext() |
boolean |
isHasPre() |
boolean |
isPageSizeSetted() |
void |
setAutoCount(boolean autoCount) |
void |
setPageNo(int pageNo)
设置当前页码
|
void |
setPageSize(int pageSize)
设置每页数据量大小
|
void |
setRawResult(List result) |
void |
setResult(List<?> result) |
void |
setTotalCount(int totalCount)
所有数据量大小
|
void |
setTResult(List<T> result) |
getOrderDirection, getOrderField, setOrderDirection, setOrderFieldpublic boolean isAutoCount()
public void setAutoCount(boolean autoCount)
public int getPageSize()
public void setPageSize(int pageSize)
#pageSize - public boolean isPageSizeSetted()
public int getPageNo()
public int getCurrentPageNo()
getPageNo()一致getPageNo()public void setPageNo(int pageNo)
#pageNo - public int getFirst()
public boolean isFirstSetted()
public List<?> getResult()
public List getRawResult()
public void setResult(List<?> result)
public void setRawResult(List result)
public int getTotalCount()
public void setTotalCount(int totalCount)
#totalCount - public int getTotalPages()
public boolean isHasNext()
public int getNextPage()
public boolean isHasPre()
public int getPrePage()
Copyright © 2019. All rights reserved.