All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jeecgframework.minidao.pojo.MiniDaoPage Maven / Gradle / Ivy

The newest version!
package org.jeecgframework.minidao.pojo;

import java.util.List;

/**
 * 
 * @Title:MiniDaoPage
 * @description:minidao自动分页设置
 * @author 赵俊夫
 * @author JueYue
 * @date 2014-3-12 下午10:22:24
 * @version V1.1
 */
public class MiniDaoPage {
	// 当前页面
	private int page;
	// 每页显示记录数
	private int rows;
	// 总行数
	private int total;
	// 总页数
	private int pages;
	// 结果集
	private List results;

	public int getPage() {
		return page;
	}

	public int getPages() {
		return pages;
	}

	public List getResults() {
		return results;
	}

	public int getRows() {
		return rows;
	}

	public int getTotal() {
		return total;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public void setResults(List results) {
		this.results = results;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public void setTotal(int total) {
		this.total = total;
		this.pages = total / rows + (total % rows > 0 ? 1 : 0);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy