提交 | 用户 | 时间
|
58d006
|
1 |
package com.mandi.dao.common; |
A |
2 |
|
|
3 |
import java.io.Serializable; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author mengly |
|
7 |
* @version 创建时间:2016年4月1日 下午5:29:00 |
|
8 |
* 类说明 ,start:startpage, start=0 and pagesize=0表示取出所有的 |
|
9 |
*/ |
|
10 |
public class PageRequest implements Serializable { |
|
11 |
private static final long serialVersionUID = 1L; |
|
12 |
private int pageSize; |
|
13 |
private boolean needPages; |
|
14 |
private int start; |
|
15 |
private Sort sort; |
|
16 |
public PageRequest(int start,int pageSize, Sort sort) { |
|
17 |
this.pageSize = pageSize; |
|
18 |
this.start = start; |
|
19 |
this.sort = sort; |
|
20 |
} |
|
21 |
public int getPageSize() { |
|
22 |
return pageSize; |
|
23 |
} |
|
24 |
public void setPageSize(int pageSize) { |
|
25 |
this.pageSize = pageSize; |
|
26 |
} |
|
27 |
public int getStart() { |
|
28 |
return start; |
|
29 |
} |
|
30 |
public void setStart(int start) { |
|
31 |
this.start = start; |
|
32 |
} |
|
33 |
public Sort getSort() { |
|
34 |
return sort; |
|
35 |
} |
|
36 |
public void setSort(Sort sort) { |
|
37 |
this.sort = sort; |
|
38 |
} |
|
39 |
public boolean isNeedPages() { |
|
40 |
return needPages; |
|
41 |
} |
|
42 |
public void setNeedPages(boolean needPages) { |
|
43 |
this.needPages = needPages; |
|
44 |
} |
|
45 |
|
|
46 |
} |