List of utility methods to do SQL ResultSet Close
void | closeQuietly(ResultSet res) close Quietly try { if (res != null) res.close(); } catch (SQLException se) { |
void | closeQuietly(ResultSet resultSet) close Quietly try { closeResultSet(resultSet); } catch (SQLException e) { |
void | closeQuietly(ResultSet resultSet) close Quietly if (resultSet == null) return; try { resultSet.close(); } catch (Exception exception) { |
void | closeQuietly(ResultSet rs) Close a ResultSet and ignore any errors during closing. if (rs != null) { try { rs.close(); } catch (SQLException ignore) { |
void | closeResource(Connection conn, Statement stmt, ResultSet rs) Closes the resource if they are available. if (rs != null) { try { rs.close(); } catch (SQLException e) { if (stmt != null) { try { ... |
void | closeResources(Connection conn, Statement pstmt, ResultSet rs) close Resources if (null != rs) { try { rs.close(); } catch (SQLException e) { e.printStackTrace(); throw new RuntimeException(e); } finally { if (null != pstmt) { ... |
void | closeResources(Connection conn, Statement stmt, ResultSet rs) close Resources if (rs != null) { try { rs.close(); } catch (SQLException e) { System.err.println("Error closing ResultSet: " + e.getMessage()); if (stmt != null) { ... |
void | closeResources(Connection conn2, Statement statement, ResultSet rs) close Resources if (null != rs) { try { rs.close(); } catch (SQLException e) { e.printStackTrace(); throw new RuntimeException(e); } finally { if (null != statement) { ... |
void | closeResultAndStatement(Statement statement, ResultSet resultSet) Helper method to close the JDBC interface(result set, statement). try { if (resultSet != null) { resultSet.close(); } finally { closeStatement(statement); |
void | closeResultSet(final ResultSet resultSet) Close the given JDBC ResultSet and ignore any thrown exception. if (resultSet != null) { try { resultSet.close(); } catch (final SQLException ex) { |