<reponame>wanghaiyang-github/dna-cloud<filename>bazl-dna-lims-service/src/main/java/com/bazl/dna/lims/model/vo/AbstractBaseVo.java<gh_stars>0
package com.bazl.dna.lims.model.vo;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/10/11.
 */
public class AbstractBaseVo<T> implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected int offset;
    protected int rows = 15;

    /**
     * 当前页码
     */
    protected int pageIndex = 1;

    protected String orderByClause;

    protected T entity;

    public AbstractBaseVo() {
        super();
    }

    public AbstractBaseVo(T entity) {
        super();
        this.entity = entity;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }
}
