public class PageSupport<Entity> extends Object implements PageResult<Entity>
| 构造器和说明 |
|---|
PageSupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
fatchCurrentPageIndex() |
int |
fatchFirstPageIndex()
首页
|
int |
fatchLastPageIndex()
最后一页
|
List<Entity> |
fatchList()
结果集
|
int |
fatchNextPageIndex()
下一页
|
int |
fatchPageCount()
共几页
|
int |
fatchPageIndex()
当前页索引,等同于getCurrentPageIndex()
|
int |
fatchPageSize()
每页显示几条记录
|
int |
fatchPrePageIndex()
上一页
|
int |
fatchStart() |
long |
fatchTotal()
总记录数
|
PageResult |
process(EntityProcessor<Entity> processor) |
static <Entity> List<Object> |
processEntityToJSONObject(List<Entity> list,
EntityProcessor<Entity> processor) |
void |
setList(List<Entity> list)
设置结果集
|
void |
setPageCount(int pageCount)
设置总页数
|
void |
setPageIndex(int pageIndex)
设置当前页索引
|
void |
setPageSize(int pageSize)
设置每页记录数
|
void |
setStart(int start)
设置第一条记录起始位置
|
void |
setTotal(long total)
设置记录总数
|
public PageResult process(EntityProcessor<Entity> processor)
public static <Entity> List<Object> processEntityToJSONObject(List<Entity> list, EntityProcessor<Entity> processor)
public int fatchCurrentPageIndex()
public int fatchPrePageIndex()
public int fatchNextPageIndex()
public int fatchFirstPageIndex()
public int fatchLastPageIndex()
public long fatchTotal()
public int fatchPageIndex()
public int fatchPageSize()
public int fatchStart()
public int fatchPageCount()
public void setTotal(long total)
PageResultsetTotal 在接口中 PageResult<Entity>public void setPageIndex(int pageIndex)
PageResultsetPageIndex 在接口中 PageResult<Entity>public void setPageSize(int pageSize)
PageResultsetPageSize 在接口中 PageResult<Entity>public void setPageCount(int pageCount)
PageResultsetPageCount 在接口中 PageResult<Entity>public void setStart(int start)
PageResultsetStart 在接口中 PageResult<Entity>public void setList(List<Entity> list)
PageResultsetList 在接口中 PageResult<Entity>Copyright © 2018. All Rights Reserved.