?? pageresult.java
字號:
package com.pagedemo.common;
import java.util.List;
public class PageResult {
private int current = 1;
private int pageSize = 3;
private int totalPage;
private int totalRecord;
private boolean pre;
private boolean next;
private String hql;
private List list;
public int getCurrent() {
return current;
}
public void setCurrent(int current) {
this.current = current;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotalPage() {
this.totalPage = (totalRecord + pageSize - 1) / pageSize;
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getTotalRecord() {
return totalRecord;
}
public void setTotalRecord(int totalRecord) {
this.totalRecord = totalRecord;
}
public boolean isPre() {
this.pre = current > 1 ? true : false;
return pre;
}
public void setPre(boolean pre) {
this.pre = pre;
}
public boolean isNext() {
this.next = current < totalPage ? true : false;
return next;
}
public void setNext(boolean next) {
this.next = next;
}
public String getHql() {
return hql;
}
public void setHql(String hql) {
this.hql = hql;
}
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -