org.phoenix.basic.paging.Pager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phoenix_db Show documentation
Show all versions of phoenix_db Show documentation
对hibernate4的封装。封装了Druid,通过Druid可以轻量级的对其他数据库进行操作
package org.phoenix.basic.paging;
import java.util.List;
/**
* 分页对象
* @author Administrator
*
*/
public class Pager {
/**
* 分页的大小
*/
private int size;
/**
* 分页的起始页
*/
private int offset;
/**
* 总记录数
*/
private long total;
/**
* 分页的数据
*/
private List datas;
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getOffset() {
return offset;
}
public void setOffset(int offset) {
this.offset = offset;
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public List getDatas() {
return datas;
}
public void setDatas(List datas) {
this.datas = datas;
}
}