org.iartisan.runtime.bean.Pagination Maven / Gradle / Ivy
package org.iartisan.runtime.bean;
import java.io.Serializable;
/**
*
* 分页组件使用
*
* @author King
* @since 2017/4/17
*/
public class Pagination implements Serializable {
private int pageSize = 10;
private int totalPage;
private int pageIndex = 1;
private int totalRecords;
public Pagination(int pageIndex, int pageSize) {
this.pageSize = pageSize;
this.pageIndex = pageIndex;
}
public Pagination() {
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getPageIndex() {
return pageIndex;
}
public void setPageIndex(int pageIndex) {
this.pageIndex = pageIndex;
}
public int getTotalRecords() {
return totalRecords;
}
public void setTotalRecords(int totalRecords) {
this.totalRecords = totalRecords;
}
}