Java SQL ResultSet Close close(ResultSet resultSet)

Here you can find the source of close(ResultSet resultSet)

Description

Closes provided result set without throwing an exception.

License

Open Source License

Declaration

public static void close(ResultSet resultSet) 

Method Source Code


//package com.java2s;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    /**/*  w  ww.j  a v  a  2  s .c o  m*/
     * Closes provided result set without throwing an exception.
     */
    public static void close(ResultSet resultSet) {
        if (resultSet == null) {
            return;
        }
        try {
            resultSet.close();
        } catch (SQLException sex) {
            // ignore
        }
    }
}

Related

  1. close(Connection connection, Statement statement, ResultSet resultSet)
  2. close(final PreparedStatement ps, final ResultSet rs)
  3. close(final ResultSet rs, final Statement st)
  4. close(ResultSet _rsData, Logger _logger)
  5. close(ResultSet resultSet)
  6. close(ResultSet resultSet)
  7. close(ResultSet resultSet)
  8. close(ResultSet resultSet, CallableStatement statement, Connection connection)
  9. close(ResultSet resultSet, Statement statement, Connection connection)