src/main/java/pw/phylame/util/sql/PagingResultSet.java
/**
     * Go to specified page.
     * @param pageNumber number of the page
     * @throws IndexOutOfBoundsException if the pageNumber out of range
     * @throws SQLException if occur errors when jump page
     */
Go to specified page.
@param pageNumber number of the page
@throws IndexOutOfBoundsException if the pageNumber out of range
@throws SQLException if occur errors when jump page
Go to specified page . @param pageNumber number of the page @throws IndexOutOfBoundsException if the pageNumber out of range @throws SQLException if occur errors when jump page
public void gotoPage(int pageNumber) throws SQLException {
        if (pageNumber > pageCount) {
            throw new IndexOutOfBoundsException("Page number out of range");
        } else if (pageNumber < 1) {
            throw new IndexOutOfBoundsException("Page number out of range");
        }
        rs.absolute((pageNumber - 1) * pageSize + 1);
        this.currentPage = pageNumber;
    }
public void gotoPage ( int pageNumber ) throws SQLException { if ( pageNumber > pageCount ) { throw new IndexOutOfBoundsException ( "Page number out of range" ) ; } else if ( pageNumber < 1 ) { throw new IndexOutOfBoundsException ( "Page number out of range" ) ; } rs . absolute ( ( pageNumber - 1 ) * pageSize + 1 ) ; this . currentPage = pageNumber ; }
Go to specified page.
Go to specified page .
// go to first row in the specify page