Package org.miaixz.bus.pager.builtin
Class PageParams
java.lang.Object
org.miaixz.bus.pager.builtin.PageParams
Page 参数信息
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String默认count(0)protected booleanRowBounds参数offset作为PageNo使用 - 默认不使用protected boolean当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果protected boolean分页合理化protected booleanRowBounds是否进行count查询 - 默认不查询protected boolean是否支持接口参数来传递分页参数,默认false -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取分页参数booleanbooleanbooleanbooleanbooleanbooleanvoidsetProperties(Properties properties)
-
Field Details
-
offsetAsPageNo
protected boolean offsetAsPageNoRowBounds参数offset作为PageNo使用 - 默认不使用 -
rowBoundsWithCount
protected boolean rowBoundsWithCountRowBounds是否进行count查询 - 默认不查询 -
pageSizeZero
protected boolean pageSizeZero当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果 -
reasonable
protected boolean reasonable分页合理化 -
supportMethodsArguments
protected boolean supportMethodsArguments是否支持接口参数来传递分页参数,默认false -
countColumn
默认count(0)
-
-
Constructor Details
-
PageParams
public PageParams()
-
-
Method Details
-
getPage
获取分页参数- Parameters:
parameterObject-rowBounds-- Returns:
-
setProperties
-
isOffsetAsPageNo
public boolean isOffsetAsPageNo() -
isRowBoundsWithCount
public boolean isRowBoundsWithCount() -
isPageSizeZero
public boolean isPageSizeZero() -
isReasonable
public boolean isReasonable() -
isSupportMethodsArguments
public boolean isSupportMethodsArguments() -
getCountColumn
-
isAsyncCount
public boolean isAsyncCount()
-