Java SQL ResultSet Close close(ResultSet rs)

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

Description

close

License

Open Source License

Declaration

public static void close(ResultSet rs) 

Method Source Code

//package com.java2s;

import java.sql.ResultSet;

import java.sql.Statement;

public class Main {
    public static void close(ResultSet rs) {
        try {/*from  www .j a v  a  2  s.com*/
            if (rs != null) {
                rs.close();
            }
        } catch (Exception e) {
        }
    }

    public static void close(Statement st) {
        try {
            if (st != null) {
                st.close();
            }
        } catch (Exception e) {
        }
    }
}

Related

  1. close(ResultSet resultSet, Statement statement, Connection connection)
  2. close(ResultSet resultSet, Statement statement, Connection connection)
  3. close(ResultSet resultSet, Statement statement, Connection connection)
  4. close(ResultSet rs)
  5. close(ResultSet rs)
  6. close(ResultSet rs)
  7. close(ResultSet rs, PreparedStatement pstmt, Connection con)
  8. close(ResultSet rs, Statement ps, Connection con)
  9. close(ResultSet rs, Statement ps, Connection conn)