类 Page<R,Q>
- java.lang.Object
-
- cn.bbwres.biscuit.dto.Page<R,Q>
-
public class Page<R,Q> extends Object
简化的page分页数据- 版本:
- $Id: $Id
- 作者:
- zhanglinfeng
-
-
构造器概要
构造器 构造器 说明 Page()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcalculationPages()获取总页数longgetCurrent()Getter for the fieldcurrent.longgetPages()Getter for the fieldpages.QgetQuery()Getter for the fieldquery.List<R>getRecords()Getter for the fieldrecords.longgetSize()Getter for the fieldsize.List<SortInfo>getSortInfos()Getter for the fieldsortInfos.longgetTotal()Getter for the fieldtotal.booleanhasNext()是否存在下一页booleanhasPrevious()是否存在上一页voidsetCurrent(long current)Setter for the fieldcurrent.voidsetPages(long pages)Setter for the fieldpages.voidsetQuery(Q query)Setter 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.
-
-
-
方法详细资料
-
hasPrevious
public boolean hasPrevious()
是否存在上一页- 返回:
- true / false
-
hasNext
public boolean hasNext()
是否存在下一页- 返回:
- true / false
-
calculationPages
public void calculationPages()
获取总页数
-
setRecords
public void setRecords(List<R> records)
Setter for the field
records.- 参数:
records- aListobject
-
getQuery
public Q getQuery()
Getter for the field
query.- 返回:
- a Q object
-
setQuery
public void setQuery(Q query)
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
-
-