public class PageParams extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
countColumn
默认count(0)
|
protected boolean |
offsetAsPageNo
RowBounds参数offset作为PageNo使用 - 默认不使用
|
protected boolean |
pageSizeZero
当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果
|
protected boolean |
reasonable
分页合理化
|
protected boolean |
rowBoundsWithCount
RowBounds是否进行count查询 - 默认不查询
|
protected boolean |
supportMethodsArguments
是否支持接口参数来传递分页参数,默认false
|
| Constructor and Description |
|---|
PageParams() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCountColumn() |
Page |
getPage(Object parameterObject,
org.apache.ibatis.session.RowBounds rowBounds)
获取分页参数
|
boolean |
isOffsetAsPageNo() |
boolean |
isPageSizeZero() |
boolean |
isReasonable() |
boolean |
isRowBoundsWithCount() |
boolean |
isSupportMethodsArguments() |
void |
setProperties(Properties properties) |
protected boolean offsetAsPageNo
protected boolean rowBoundsWithCount
protected boolean pageSizeZero
protected boolean reasonable
protected boolean supportMethodsArguments
protected String countColumn
public Page getPage(Object parameterObject, org.apache.ibatis.session.RowBounds rowBounds)
parameterObject - 参数rowBounds - rowBounds对象public void setProperties(Properties properties)
public boolean isOffsetAsPageNo()
public boolean isRowBoundsWithCount()
public boolean isPageSizeZero()
public boolean isReasonable()
public boolean isSupportMethodsArguments()
public String getCountColumn()
Copyright © 2021. All rights reserved.