?? page.java.svn-base
字號:
package com.pure.page;
/**
* 分頁器
*
* @author pure
*
*/
public class Page {
/**
* 默認每頁顯示記錄數
*/
private int perPage = 20;
/**
* 頁碼
*/
private int page = 1;
/**
* 記錄總數
*/
private int total = 0;
/**
* 開始記錄數(新的游標起始位置)
*/
private int startRs = 0;
/**
* 翻頁的url(路徑),不帶參數,參數由其它屬性指定
*/
private String url = "";
/**
* 翻頁參數,多個參數用&分隔
*/
private String param = "";
/**
* 上下環境
*/
private String contextPath = "";
/**
* 分頁條可視頁碼1..10 11..20
*/
private int viewPage = 10;
/**
* 要執行的hql語句
*/
private String hql;
/**
* 項目在服務器上的真實路徑
*/
private String realPath;
/**
* 翻頁條外觀模板
*/
private String pageTemplate;
/**
* 翻頁外觀模板路徑
*/
private String pageTemplatePath;
/**
* 用戶自定義頁數倍率 10 20 30 40....
*/
private int cNum = 4;
private Object condition;
public Object getCondition() {
return condition;
}
public void setCondition(Object condition) {
this.condition = condition;
}
public String getPageTemplatePath() {
return pageTemplatePath;
}
public void setPageTemplatePath(String pageTemplatePath) {
this.pageTemplatePath = pageTemplatePath;
}
public String getPageTemplate() {
return pageTemplate;
}
public void setPageTemplate(String pageTemplate) {
this.pageTemplate = pageTemplate;
}
public String getRealPath() {
return realPath;
}
public void setRealPath(String realPath) {
this.realPath = realPath;
}
public String getHql() {
return hql;
}
public void setHql(String hql) {
this.hql = hql;
}
public Page() {
}
public int getPerPage() {
return perPage;
}
public void setPage(int page) {
this.page = page;
}
public void setPerPage(int perPage) {
this.perPage = perPage;
}
public void setTotal(int total) {
this.total = total;
}
public int getPage() {
return page;
}
public int getTotal() {
return total;
}
public String getContextPath() {
return contextPath;
}
public void setContextPath(String contextPath) {
this.contextPath = contextPath;
}
public String getParam() {
return param;
}
public void setParam(String param) {
this.param = param;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public int getStartRs() {
return startRs;
}
public void setStartRs(int startRs) {
this.startRs = startRs;
}
public int getViewPage() {
return viewPage;
}
public void setViewPage(int viewPage) {
this.viewPage = viewPage;
}
public int getCNum() {
return cNum;
}
public void setCNum(int num) {
cNum = num;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -