Java JDBC Connection Close close(Connection rs)

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

Description

close

License

Apache License

Declaration

public synchronized static void close(Connection rs) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    public synchronized static void close(ResultSet rs) throws SQLException {
        rs.close();//from   w  w  w .j  ava  2  s . c  o  m
    }

    public synchronized static void close(PreparedStatement rs) throws SQLException {
        rs.close();
    }

    public synchronized static void close(Connection rs) throws SQLException {
        rs.close();
    }
}

Related

  1. close(Connection conn)
  2. close(Connection connection)
  3. close(Connection connection)
  4. close(Connection connection)
  5. close(Connection connection)
  6. close(Object obj)
  7. closeConnection(Closeable... closes)
  8. closeIfNotNull(Connection conn)
  9. closeJDBC(Object obj)