com.kukababy.plus.pager.CustPager Maven / Gradle / Ivy
The newest version!
package com.kukababy.plus.pager;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import com.kukababy.plus.utils.Constant;
/**
*
* 描述:
*
* @author [email protected]
* @date 2019年3月5日 下午10:45:53
*/
public class CustPager implements Serializable {
private static final long serialVersionUID = 1L;
private int total = 0;// 总记录数
private int currPage = 0;
private int pageSize = Constant.PageSize;
/**
* 分页时,是否有独立的统计记录数的function ,约定格式 为后缀 加Count
*/
private boolean hasCount = true;
private Map keyVals = new HashMap();
/**
* @return the total
*/
public int getTotal() {
return total;
}
/**
* @param total the total to set
*/
public void setTotal(int total) {
this.total = total;
}
/**
* @return the currPage
*/
public int getCurrPage() {
return currPage;
}
/**
* @param currPage the currPage to set
*/
public void setCurrPage(int currPage) {
this.currPage = currPage;
}
/**
* @return the pageSize
*/
public int getPageSize() {
return pageSize;
}
/**
* @param pageSize the pageSize to set
*/
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
/**
* @return the keyVals
*/
public Map getKeyVals() {
return keyVals;
}
/**
* @param keyVals the keyVals to set
*/
public void setKeyVals(Map keyVals) {
this.keyVals = keyVals;
}
/**
* @return the hasCount
*/
public boolean isHasCount() {
return hasCount;
}
/**
* @param hasCount the hasCount to set
*/
public void setHasCount(boolean hasCount) {
this.hasCount = hasCount;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy