Class PageParams

java.lang.Object
org.miaixz.bus.pager.builtin.PageParams

public class PageParams extends Object
Page 参数信息
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • offsetAsPageNo

      protected boolean offsetAsPageNo
      RowBounds参数offset作为PageNo使用 - 默认不使用
    • rowBoundsWithCount

      protected boolean rowBoundsWithCount
      RowBounds是否进行count查询 - 默认不查询
    • pageSizeZero

      protected boolean pageSizeZero
      当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果
    • reasonable

      protected boolean reasonable
      分页合理化
    • supportMethodsArguments

      protected boolean supportMethodsArguments
      是否支持接口参数来传递分页参数,默认false
    • countColumn

      protected String countColumn
      默认count(0)
  • Constructor Details

    • PageParams

      public PageParams()
  • Method Details

    • getPage

      public Page getPage(Object parameterObject, org.apache.ibatis.session.RowBounds rowBounds)
      获取分页参数
      Parameters:
      parameterObject -
      rowBounds -
      Returns:
    • setProperties

      public void setProperties(Properties properties)
    • isOffsetAsPageNo

      public boolean isOffsetAsPageNo()
    • isRowBoundsWithCount

      public boolean isRowBoundsWithCount()
    • isPageSizeZero

      public boolean isPageSizeZero()
    • isReasonable

      public boolean isReasonable()
    • isSupportMethodsArguments

      public boolean isSupportMethodsArguments()
    • getCountColumn

      public String getCountColumn()
    • isAsyncCount

      public boolean isAsyncCount()