org.nutz.web.query.WebQueryResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-web Show documentation
Show all versions of nutz-web Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.web.query;
import java.util.LinkedList;
/**
* 描述了一个分页查询结果
*
* @author zozoh([email protected])
*/
public class WebQueryResult {
/**
* 当前第几页
*/
public int pn;
/**
* 一页最多有多少记录
*/
public int pgsz;
/**
* 【选】 一共多少页
*/
public int pgcount;
/**
* 【选】一共有多少记录
*/
public int rcount;
/**
* 【选】是否还有更多的记录
*/
public boolean hasMore;
public LinkedList list;
public WebQueryResult() {
list = new LinkedList();
}
public WebQueryResult(WebQuery q) {
this();
pn = q.getPageNumber();
pgsz = q.getPageSize();
}
public WebQueryResult add(T o) {
list.add(o);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy