public static void closeResultSetStatement ( ResultSet resultSet , String sql ) { if ( resultSet != null ) { try { resultSet . getStatement ( ) . close ( ) ; } catch ( SQLException e ) { log . log ( Level . WARNING , "Failed to close SQL ResultSet: " + sql , e ) ; } } }
Close the ResultSet Statement from which it was created which closes all ResultSets as well