- java.lang.Object
-
- org.redkale.source.RowBound
-
- 所有已实现的接口:
Serializable
,Cloneable
- 直接已知子类:
Flipper
public class RowBound extends Object implements Serializable, Cloneable
翻页对象, offset从0开始, limit必须大于0详情见: https://redkale.org
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 RowBound
clone()
RowBound
copyFrom(RowBound copy)
RowBound
copyTo(RowBound copy)
RowBound
current(int current)
设置当前页号,页号从1开始boolean
equals(Object obj)
static int
getDefaultLimit()
int
getLimit()
int
getOffset()
int
hashCode()
static boolean
hasLimit(RowBound round)
RowBound
limit(int limit)
RowBound
maxLimit(int maxlimit)
RowBound
next()
翻下一页RowBound
offset(int offset)
static void
setDefaultLimit(int limit)
void
setLimit(int limit)
void
setOffset(int offset)
String
toString()
RowBound
unlimit()
-
-
-
字段详细资料
-
offset
@ConvertColumn(index=1) @Comment("\u8bb0\u5f55\u884c\u7684\u504f\u79fb\u91cf\uff0c\u4ece0\u5f00\u59cb") protected int offset
-
limit
@ConvertColumn(index=2) @Comment("\u6bcf\u9875\u591a\u5c11\u884c") protected int limit
-
-
方法详细资料
-
next
public RowBound next()
翻下一页- 返回:
- RowBound
-
current
public RowBound current(int current)
设置当前页号,页号从1开始- 参数:
current
- 页号, 从1开始- 返回:
- Flipper
-
limit
public RowBound limit(int limit)
-
maxLimit
public RowBound maxLimit(int maxlimit)
-
unlimit
public RowBound unlimit()
-
getLimit
public int getLimit()
-
setLimit
public void setLimit(int limit)
-
getOffset
public int getOffset()
-
setOffset
public void setOffset(int offset)
-
offset
public RowBound offset(int offset)
-
hasLimit
public static boolean hasLimit(RowBound round)
-
getDefaultLimit
public static int getDefaultLimit()
-
setDefaultLimit
public static void setDefaultLimit(int limit)
-
-