Code example for ResultSet

Methods: first, getRow, last

0
		this.length=length;
		this.pageNum=pageNum;
	} 
	public int getRows(){ 
		try { 
			rs.last();
			count =rs.getRow();
			rs.first();
		} catch (SQLException e) {
			logger.error("È¡µÃÊý¾Ý½á¹û¼¯ÐÐÊýʱ³ö´í"+e);
		} 
		return count;		
	} 
	public int getSize(){ 
 
		size=(this.getRows()%this.length)==0?this.getRows()/this.length:this.getRows()/this.length+1;
		return size;
	} 
	public int getOffset(){	 
		this.getRows();
		this.getSize();