domain包–>model:
1.pageBean类–>对应复杂查询的数据
package cn.itcast.domain;
import java.util.List;
public class PageBean<T> {
private int totalPage; // 总页数
private int totalCount; // 数据总条数
private int rows; // 显示条数
private int currentPage; // 当前页码
private List<T> list; // 查询到的rows条数据
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public int getRows() {
return rows;
}
public void setRows(int rows) {
this.rows = rows;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public List<T> getList() {
return list;
}
public void setList(List<T> list) {
this.list = list;
}
@Override
public String toString() {
return "PageBean{" +
"totalPage=" + totalPage +
", totalCount=" + totalCount +
", rows=" + rows +
", currentPage=" + currentPage +
", list=" + list +
'}';
}