Package cool.scx.data.query
Class LimitInfo
- All Implemented Interfaces:
Query
条数限制
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class cool.scx.data.query.QueryLike
addGroupBy, addOrderBy, addWhere, clearGroupBy, clearOrderBy, clearWhere, getGroupBy, getOrderBy, getWhere, groupBy, orderBy, where
-
Constructor Details
-
LimitInfo
public LimitInfo()创建一个 Limit 对象 -
LimitInfo
根据旧的 Limit 创建一个 Limit 对象- Parameters:
oldLimit- 旧的 Limit
-
-
Method Details
-
offset
setOffset -
limit
setLimit -
getOffset
获取偏移量 -
getLimit
获取分页大小 (这里分页大小即等于行数 所以直接返回 pageSize) -
clearOffset
clearOffset- Specified by:
clearOffsetin interfaceQuery- Overrides:
clearOffsetin classQueryLike<LimitInfo>- Returns:
- self
-
clearLimit
clearLimit- Specified by:
clearLimitin interfaceQuery- Overrides:
clearLimitin classQueryLike<LimitInfo>- Returns:
- self
-
getLimitInfo
- Specified by:
getLimitInfoin interfaceQuery- Overrides:
getLimitInfoin classQueryLike<LimitInfo>
-
toQuery
-