zoukankan      html  css  js  c++  java
  • 新闻发布项目——分页公共类(PageUitl )

    package bdqn.newsManageServlet.Util;
    /**
     * 分页的类
     * @author Administrator
     *
     */
    public class PageUitl {
    	private int pagesize;//页大小
    	private int pageindex=1;//页码
    	private int recordCount;//总记录数
    	private int totalPageCount;//总页数
    	
    	//计算总页数
    	public int getTotalPageCount() {
    		totalPageCount = recordCount % pagesize == 0 ? recordCount / pagesize
    				: recordCount / pagesize + 1;
    		return totalPageCount;
    	}
    	public int getPagesize() {
    		return pagesize;
    	}
    	public void setPagesize(int pagesize) {
    		this.pagesize = pagesize;
    	}
    	public int getPageindex() {
    		return pageindex;
    	}
    	public void setPageindex(int pageindex) {
    		this.pageindex = pageindex;
    	}
    	public int getRecordCount() {
    		return recordCount;
    	}
    	public void setRecordCount(int recordCount) {
    		this.recordCount = recordCount;
    	}
    	
    
    }
    

  • 相关阅读:
    Integer to English Words
    Word Ladder II
    Word Ladder
    Distinct Subsequences
    Interleaving String
    Scramble String
    【转】ROC和AUC介绍以及如何计算AUC
    Minimum Size Subarray Sum
    Minimum Window Substring
    Edit Distance
  • 原文地址:https://www.cnblogs.com/a1111/p/6540299.html
Copyright © 2011-2022 走看看