@ Override public boolean last ( ) throws SQLException { checkClosed ( ) ; if ( rowCount == 0 ) { return false ; } try { if ( cursorPosition != Position . middle ) { cursorPosition = Position . middle ; table . resetRowPosition ( ) ; table . advanceToRow ( 0 ) ; } return table . advanceToRow ( rowCount - 1 ) ; } catch ( Exception x ) { throw SQLError . get ( x ) ; } }
Moves the cursor to the last row in this ResultSet object .