java.lang.Object
org.apache.ibatis.session.RowBounds
org.miaixz.bus.pager.RowBounds
public class RowBounds
extends org.apache.ibatis.session.RowBounds
扩展MyBatis的RowBounds,添加分页结果信息,如总记录数和是否执行count查询。
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class org.apache.ibatis.session.RowBounds
DEFAULT, NO_ROW_LIMIT, NO_ROW_OFFSET -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.ibatis.session.RowBounds
getLimit, getOffset
-
Constructor Details
-
RowBounds
public RowBounds(int offset, int limit) 构造函数,指定偏移量和限制数。- Parameters:
offset- 起始偏移量limit- 每页记录数
-
-
Method Details
-
getTotal
获取总记录数。- Returns:
- 总记录数
-
setTotal
设置总记录数。- Parameters:
total- 总记录数
-
getCount
获取是否执行count查询。- Returns:
- 是否执行count查询
-
setCount
设置是否执行count查询。- Parameters:
count- 是否执行count查询
-