分页页面实体类
作者:互联网
分页页面实体类
package com.yl.bean;
import java.util.List;
public class PageInfo {
private Integer pageCode;//当前页码
private Integer pageSize;//每页数据条数
private Integer totalPage;//总页数
private Integer totalCount;//总数据条数
private List<Object> objectList;//用来存储查询出来的结果集
private Integer start;//查询起始位置
public Integer getPageCode() {
return pageCode;
}
public Integer getPageSize() {
return pageSize;
}
public Integer getTotalCount() {
return totalCount;
}
public List<Object> getObjectList() {
return objectList;
}
public Integer getStart() {
return (pageCode-1)*pageSize;
}
public Integer getTotalPage() {
return totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
}
public void setPageCode(Integer pageCode) {
this.pageCode = pageCode;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public void setObjectList(List<Object> objectList) {
this.objectList = objectList;
}
}
标签:实体类,return,分页,pageSize,private,totalCount,Integer,public,页面 来源: https://www.cnblogs.com/Y-wee/p/13969567.html