public class PageBounds extends org.apache.ibatis.session.RowBounds implements Serializable
| 构造器和说明 |
|---|
PageBounds() |
PageBounds(int limit) |
PageBounds(int limit,
boolean checkPage) |
PageBounds(int page,
int limit) |
PageBounds(int page,
int limit,
boolean checkPage) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getLimit() |
int |
getOffset() |
int |
getPage() |
boolean |
isCheckPage() |
boolean |
isQueryTotal() |
boolean |
notNeedPage() |
void |
pageWrong(Integer count)
If count = 10, limit = 15, But incoming param page value was 2, It's wrong, Can only be 1
|
void |
setCheckPage(boolean checkPage) |
void |
setLimit(int limit) |
void |
setPage(int page) |
void |
setQueryTotal(boolean queryTotal) |
String |
toString() |
public PageBounds()
public PageBounds(int limit)
public PageBounds(int page,
int limit)
public PageBounds(int limit,
boolean checkPage)
public PageBounds(int page,
int limit,
boolean checkPage)
public boolean notNeedPage()
public void pageWrong(Integer count)
count - select count(1)public void setPage(int page)
public int getPage()
public void setQueryTotal(boolean queryTotal)
public boolean isQueryTotal()
public void setCheckPage(boolean checkPage)
public boolean isCheckPage()
public void setLimit(int limit)
public int getLimit()
getLimit 在类中 org.apache.ibatis.session.RowBoundspublic int getOffset()
getOffset 在类中 org.apache.ibatis.session.RowBoundsCopyright © 2017. All Rights Reserved.