Code example for Connection

Methods: close, isClosed

0
//		return DriverManager.getConnection("jdbc:postgresql://localhost:5432/procurados", "postgres", "admin"); 
	} 
 
	@Override 
	public void closeConnection(Connection conn) throws SQLException {
		if(conn != null && !conn.isClosed())
			conn.close();
	} 
 
}