package org.onetwo.common.utils;


/**
 * @author wayshall
 * <br/>
 */
public class PageRequest {
	protected int page = 1;
	protected int pageSize = Page.getDefaultPageSize();
	
	public <E> Page<E> toPageObject(){
		return Page.create(page, pageSize);
	}

	public int getPage() {
		return page;
	}

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

	public int getPageSize() {
		return pageSize;
	}

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

}

@@ -170,16 +170,52 @@
 Size();%0A
+%09private boolean pagination = true;%0A
 %09%0A%09publi
@@ -246,22 +246,36 @@
 ct()%7B%0A%09%09
-return
+Page%3CE%3E pageObject =
  Page.cr
@@ -296,16 +296,77 @@
 eSize);%0A
+%09%09pageObject.setPagination(pagination);%0A%09%09return pageObject;%0A
 %09%7D%0A%0A%09pub
@@ -585,10 +585,153 @@
 ze;%0A%09%7D%0A%0A
+%09public boolean isPagination() %7B%0A%09%09return pagination;%0A%09%7D%0A%0A%09public void setPagination(boolean pagination) %7B%0A%09%09this.pagination = pagination;%0A%09%7D%0A%0A
 %7D%0A

fix common