public void close ( boolean closeConnection ) throws SQLException { if ( closeConnection ) { resultSet . getStatement ( ) . getConnection ( ) . close ( ) ; } else { resultSet . close ( ) ; } finished = true ; }
Closes underlying result set and optionally the whole connection .