public class PageBounds extends org.apache.ibatis.session.RowBounds implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
asyncTotalCount |
protected boolean |
containsTotalCount
结果集是否包含TotalCount
|
protected int |
limit
分页大小
|
static int |
NO_PAGE |
protected List<Order> |
orders
分页排序信息
|
protected int |
page
页号
|
| 构造器和说明 |
|---|
PageBounds() |
PageBounds(int limit)
Query TOP N, default containsTotalCount = false
|
PageBounds(int page,
int limit) |
PageBounds(int page,
int limit,
List<Order> orders) |
PageBounds(int page,
int limit,
List<Order> orders,
boolean containsTotalCount) |
PageBounds(int page,
int limit,
Order... order) |
PageBounds(List<Order> orders)
Just sorting, default containsTotalCount = false
|
PageBounds(Order... order)
Just sorting, default containsTotalCount = false
|
PageBounds(org.apache.ibatis.session.RowBounds rowBounds) |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
getAsyncTotalCount() |
int |
getLimit() |
int |
getOffset() |
List<Order> |
getOrders() |
int |
getPage() |
boolean |
isContainsTotalCount() |
void |
setAsyncTotalCount(Boolean asyncTotalCount) |
void |
setContainsTotalCount(boolean containsTotalCount) |
void |
setLimit(int limit) |
void |
setOrders(List<Order> orders) |
void |
setPage(int page) |
String |
toString() |
public static final int NO_PAGE
protected int page
protected int limit
protected boolean containsTotalCount
protected Boolean asyncTotalCount
public PageBounds()
public PageBounds(org.apache.ibatis.session.RowBounds rowBounds)
public PageBounds(int limit)
limit - public PageBounds(int page,
int limit)
public PageBounds(List<Order> orders)
orders - public PageBounds(Order... order)
order - public PageBounds(int page,
int limit,
Order... order)
public int getPage()
public void setPage(int page)
public int getLimit()
getLimit 在类中 org.apache.ibatis.session.RowBoundspublic void setLimit(int limit)
public boolean isContainsTotalCount()
public void setContainsTotalCount(boolean containsTotalCount)
public Boolean getAsyncTotalCount()
public void setAsyncTotalCount(Boolean asyncTotalCount)
public int getOffset()
getOffset 在类中 org.apache.ibatis.session.RowBoundsCopyright © 2013. All Rights Reserved.