1. 程式人生 > >PageBean類模板

PageBean類模板

pac count 數據 urn oid port pre class enc

package ${enclosing_package};

import java.util.ArrayList;
import java.util.List;

import com.itheima.domain.Product;

public class ${primary_type_name}<T> {
    
    //當前頁
    private int currentPage;
    //當前頁顯示的條數
    private int currentCount;
    //總條數
    private int totalCount;
    
//總頁數 private int totalPage; //每頁顯示的數據 private List<T> productList = new ArrayList<T>(); public int getCurrentPage() { return currentPage; } public void setCurrentPage(int currentPage) { this.currentPage = currentPage; } public
int getCurrentCount() { return currentCount; } public void setCurrentCount(int currentCount) { this.currentCount = currentCount; } public int getTotalCount() { return totalCount; } public void setTotalCount(int totalCount) { this.totalCount = totalCount; }
public int getTotalPage() { return totalPage; } public void setTotalPage(int totalPage) { this.totalPage = totalPage; } public List<T> getProductList() { return productList; } public void setProductList(List<T> productList) { this.productList = productList; } }

PageBean類模板