JAvaEEページング、パッケージされたPageBeanクラス
1050 ワード
PageBean.java:
package com.xxx.domain;
import java.util.List;
public class PageBean {
private int currentPage; // ,
private int currentCount; //
private int totalCount; //
private int totalPage; // 。 int totalPage = (int) Math.ceil(1.0*totalCount/currentCount);
private List list; // JavaBean
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getCurrentCount() {
return currentCount;
}
public void setCurrentCount(int currentCount) {
this.currentCount = currentCount;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;
}
}