package ssm.pojo;
public class PageInfo {
private Integer pageRow; //第几行
private Integer pageIndex;//第几页
private Integer pageSize;//每页大小
private Integer sum; //数据总数
private Integer pageCount; //总页数
private QueryCondition keyWord;
public Integer getPageRow() {
return pageRow;
}
public void setPageRow(Integer pageRow) {
this.pageRow = pageRow;
}
public Integer getPageIndex() {
return pageIndex;
}
public void setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public Integer getSum() {
return sum;
}
public void setSum(Integer sum) {
this.sum = sum;
}
public Integer getPageCount() {
pageCount=sum/pageSize;
if(sum%pageSize !=0){
pageCount++;
}
return pageCount;
}
public void setPageCount(Integer pageCount) {
this.pageCount = pageCount;
}
public QueryCondition getKeyWord() {
return keyWord;
}
public void setKeyWord(QueryCondition keyWord) {
this.keyWord = keyWord;
}
public PageInfo(Integer pageRow, Integer pageIndex, Integer pageSize, Integer sum, Integer pageCount,
QueryCondition keyWord) {
super();
this.pageRow = pageRow;
this.pageIndex = pageIndex;
this.pageSize = pageSize;
this.sum = sum;
this.pageCount = pageCount;
this.keyWord = keyWord;
}
public PageInfo() {
super();
// TODO Auto-generated constructor stub
}
}
public class PageInfo {
private Integer pageRow; //第几行
private Integer pageIndex;//第几页
private Integer pageSize;//每页大小
private Integer sum; //数据总数
private Integer pageCount; //总页数
private QueryCondition keyWord;
public Integer getPageRow() {
return pageRow;
}
public void setPageRow(Integer pageRow) {
this.pageRow = pageRow;
}
public Integer getPageIndex() {
return pageIndex;
}
public void setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public Integer getSum() {
return sum;
}
public void setSum(Integer sum) {
this.sum = sum;
}
public Integer getPageCount() {
pageCount=sum/pageSize;
if(sum%pageSize !=0){
pageCount++;
}
return pageCount;
}
public void setPageCount(Integer pageCount) {
this.pageCount = pageCount;
}
public QueryCondition getKeyWord() {
return keyWord;
}
public void setKeyWord(QueryCondition keyWord) {
this.keyWord = keyWord;
}
public PageInfo(Integer pageRow, Integer pageIndex, Integer pageSize, Integer sum, Integer pageCount,
QueryCondition keyWord) {
super();
this.pageRow = pageRow;
this.pageIndex = pageIndex;
this.pageSize = pageSize;
this.sum = sum;
this.pageCount = pageCount;
this.keyWord = keyWord;
}
public PageInfo() {
super();
// TODO Auto-generated constructor stub
}
}