类 Page<R,Q>

java.lang.Object
cn.bbwres.biscuit.dto.Page<R,Q>

public class Page<R,Q> extends Object
简化的page分页数据
版本:
$Id: $Id
作者:
zhanglinfeng
  • 字段详细资料

    • records

      protected List<R> records
      查询数据列表
    • query

      protected Q 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

      public List<R> getRecords()

      Getter for the field records.

      返回:
      a List object
    • setRecords

      public void setRecords(List<R> records)

      Setter for the field records.

      参数:
      records - a List object
    • 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
    • getSortInfos

      public List<SortInfo> getSortInfos()

      Getter for the field sortInfos.

      返回:
      a List object
    • setSortInfos

      public void setSortInfos(List<SortInfo> sortInfos)

      Setter for the field sortInfos.

      参数:
      sortInfos - a List object