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

org.nutz.web.query.WebQueryResult Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.67
Show newest version
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