类 Page<R,Q>
java.lang.Object
cn.bbwres.biscuit.dto.Page<R,Q>
简化的page分页数据
- 版本:
- $Id: $Id
- 作者:
- zhanglinfeng
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void获取总页数longGetter for the fieldcurrent.longgetPages()Getter for the fieldpages.getQuery()Getter for the fieldquery.Getter for the fieldrecords.longgetSize()Getter for the fieldsize.Getter for the fieldsortInfos.longgetTotal()Getter for the fieldtotal.booleanhasNext()是否存在下一页boolean是否存在上一页voidsetCurrent(long current) Setter for the fieldcurrent.voidsetPages(long pages) Setter for the fieldpages.voidSetter for the fieldquery.voidsetRecords(List<R> records) Setter for the fieldrecords.voidsetSize(long size) Setter for the fieldsize.voidsetSortInfos(List<SortInfo> sortInfos) Setter for the fieldsortInfos.voidsetTotal(long total) Setter for the fieldtotal.
-
字段详细资料
-
records
查询数据列表 -
query
查询字段 -
total
protected long total总数 -
size
protected long size每页显示条数,默认 10 -
current
protected long current当前页 -
pages
protected long pages总页数
-
-
构造器详细资料
-
Page
public Page()
-
-
方法详细资料
-
hasPrevious
public boolean hasPrevious()是否存在上一页- 返回:
- true / false
-
hasNext
public boolean hasNext()是否存在下一页- 返回:
- true / false
-
calculationPages
public void calculationPages()获取总页数 -
getRecords
Getter for the field
records.- 返回:
- a
Listobject
-
setRecords
Setter for the field
records.- 参数:
records- aListobject
-
getQuery
Getter for the field
query.- 返回:
- a Q object
-
setQuery
Setter for the field
query.- 参数:
query- a Q object
-
getTotal
public long getTotal()Getter for the field
total.- 返回:
- a long
-
setTotal
public void setTotal(long total) Setter for the field
total.- 参数:
total- a long
-
getSize
public long getSize()Getter for the field
size.- 返回:
- a long
-
setSize
public void setSize(long size) Setter for the field
size.- 参数:
size- a long
-
getCurrent
public long getCurrent()Getter for the field
current.- 返回:
- a long
-
setCurrent
public void setCurrent(long current) Setter for the field
current.- 参数:
current- a long
-
getPages
public long getPages()Getter for the field
pages.- 返回:
- a long
-
setPages
public void setPages(long pages) Setter for the field
pages.- 参数:
pages- a long
-
getSortInfos
Getter for the field
sortInfos.- 返回:
- a
Listobject
-
setSortInfos
Setter for the field
sortInfos.- 参数:
sortInfos- aListobject
-