List of utility methods to do SQL ResultSet Close
void | close(ResultSet rs) close try { if (rs != null) { rs.close(); } catch (Exception e) { |
void | close(ResultSet rs) Close a ResultSet , avoid closing if null.
if (rs != null) {
rs.close();
|
void | close(ResultSet rs, PreparedStatement pstmt, Connection con) close try { if (rs != null) rs.close(); if (pstmt != null) pstmt.close(); if (con != null) con.close(); } catch (Throwable e) { ... |
void | close(ResultSet rs, Statement ps, Connection con) close close(rs); close(ps); close(con); |
void | close(ResultSet rs, Statement ps, Connection conn) close try { if (rs != null) { rs.close(); } catch (SQLException e) { e.printStackTrace(); try { ... |
void | close(ResultSet rs, Statement st, Connection con) Close connection try { try { if (rs != null) { rs.close(); } finally { try { if (st != null) { ... |
void | close(ResultSet rs, Statement st, Connection conn) close try { if (rs != null) { rs.close(); } catch (SQLException e) { e.printStackTrace(); } finally { try { ... |
void | close(ResultSet rs, Statement stmt) close closeResultSet(rs); closeStatement(stmt); |
void | close(ResultSet rs, Statement stmt, Connection con) Utility function for safely closing open resultset/statement/connection if (rs != null) { try { rs.close(); } catch (SQLException e) { System.out.println("The result set cannot be closed."); if (stmt != null) { ... |
void | close(ResultSet rs, Statement stmt, Connection con) Closes a result set, statement, and connection. close(rs); close(stmt); close(con); |