类 Limit

java.lang.Object
cool.scx.dao.query.Limit

public final class Limit extends Object
条数限制
版本:
0.0.1
作者:
scx567888
  • 构造器详细资料

    • Limit

      public Limit()
      创建一个 Pagination 对象
    • Limit

      public Limit(Limit limit)
      根据旧的 Limit 创建一个 Limit 对象
      参数:
      limit - 旧的 Limit
  • 方法详细资料

    • set

      public Limit set(Long offset, Long rowCount)
      设置分页参数
      参数:
      offset - 偏移量
      rowCount - 长度
      返回:
      p
    • set

      public Limit set(Long rowCount)
      设置每页数量
      参数:
      rowCount - 长度
      返回:
      s
    • offset

      public Long offset()
      获取偏移量
      返回:
      a int
    • rowCount

      public Long rowCount()
      获取分页大小 (这里分页大小即等于行数 所以直接返回 pageSize)
      返回:
      rowCount
    • clear

      public Limit clear()
      a
      返回:
      a