List of utility methods to do SQL ResultSet Close
void | closeAllConnections(PreparedStatement preparedStatement, Connection connection, ResultSet resultSet) Utility method to close the connection streams. closeConnection(connection); closeResultSet(resultSet); closeStatement(preparedStatement); |
void | closeConnections(Connection conn, Statement st, ResultSet res) close Connections if (res == null) throw new IllegalArgumentException("Trying to close a null result set."); res.close(); closeConnections(conn, st); |
List | closeCursor(Statement stmt, ResultSet rows) close Cursor List<String> exceptions = new ArrayList<String>(); try { if (rows != null) rows.close(); } catch (SQLException e) { exceptions.add(e.getMessage()); try { ... |
void | closeDatabaseResources(PreparedStatement prepStmt, ResultSet rs, Connection con) This method releases this PrepareStatement,ResultSet and Connection object's database and JDBC resources. if (prepStmt != null) { prepStmt.close(); if (rs != null) { rs.close(); if (con != null) { con.close(); ... |
void | closeDbObjects(Connection conn, Statement stmt, ResultSet res) close Db Objects try { if (res != null) { res.close(); catch (Exception ex) { try { ... |
void | closeEL(ResultSet rs) close EL if (rs != null) { try { rs.close(); } catch (Throwable t) { |
void | closeQuietly(Connection conn, Statement stmt, ResultSet rs) close Quietly if (rs != null) { try { rs.close(); } catch (SQLException e) { if (stmt != null) { try { ... |
void | closeQuietly(Connection conn, Statement stmt, ResultSet rs) Quietly closes JDBC objects (exceptions are swallowed). if (null != rs) { try { rs.close(); rs = null; } catch (Exception ex) { if (null != stmt) { ... |
void | closeQuietly(Connection conn, Statement stmt, ResultSet rs) Close a Connection , Statement and ResultSet .
closeQuietly(rs); closeQuietly(stmt); closeQuietly(conn); |
void | closeQuietly(final ResultSet resultSet) Closes the given result set quietly - no logging, no exceptions if (null != resultSet) { try { resultSet.close(); } catch (final SQLException se) { |