|
@@ -44,4 +44,20 @@ public class SimplePageRequest {
|
|
|
public void setSort(String sort) {
|
|
|
this.sort = sort;
|
|
|
}
|
|
|
+ public SimplePageRequest(){
|
|
|
+
|
|
|
+ }
|
|
|
+ public SimplePageRequest(int page, int rows){
|
|
|
+ this.page=page;
|
|
|
+ this.rows=rows;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "SimplePageRequest [page=" + page + ", rows=" + rows + ", sort=" + sort + ", order=" + order + "]";
|
|
|
+ }
|
|
|
+ public static void main(String[] args) {
|
|
|
+ SimplePageRequest s = new SimplePageRequest(1,10);
|
|
|
+ System.out.println(s.toString());
|
|
|
+ }
|
|
|
}
|