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

com.aggrepoint.dao.PageList Maven / Gradle / Ivy

The newest version!
package com.aggrepoint.dao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Jiangming Yang ([email protected])
 * 
 */
public class PageList implements Serializable {
	private static final long serialVersionUID = 1L;

	private int totalPage;
	private int totalCount;
	private int pageSize;
	private int currentPage;
	private List list;

	public PageList() {
	}

	public PageList(PageList ref) {
		this.totalPage = ref.totalPage;
		this.totalCount = ref.totalCount;
		this.pageSize = ref.pageSize;
		this.currentPage = ref.currentPage;
	}

	public PageList(PageList ref, List list) {
		this.totalPage = ref.totalPage;
		this.totalCount = ref.totalCount;
		this.pageSize = ref.pageSize;
		this.currentPage = ref.currentPage;
		this.list = list;
	}

	public List getList() {
		if (list == null)
			list = new ArrayList();
		return list;
	}

	@SuppressWarnings("unchecked")
	public void setList(List list) {
		this.list = (List) list;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy