分页查询-分析

 

 

 

 

package com.itheima.pojo;


import java.util.List;

// 分页查询 JavaBean
// <T>为了更好的契合各种各样的查询  <Brand> / <User>
public class PageBean<T> {
    // 总记录数
    private int totalCount;

    // 当前页数据

    private List<T> rows;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}

 

posted @ 2023-07-05 19:09  Karlshell  阅读(12)  评论(0)    收藏  举报