code: public static void closeQuietly(final ResultSet rs, final Statement stmt, final Connection conn) {
          if (rs != null) {
              try {
                  rs.close();
              } catch (Exception e) {
                  logger.error("Failed to close ResultSet", e);
              }
          }
  
          if (stmt != null) {
              if (stmt instanceof PreparedStatement) {
                  try {
                      ((PreparedStatement) stmt).clearParameters();
                  } catch (Exception e) {
                      logger.error("Failed to clear parameters", e);
                  }
              }
  
              try {
                  stmt.close();
              } catch (Exception e) {
                  logger.error("Failed to close Statement", e);
              }
          }
  
          if (conn != null) {
              try {
                  conn.close();
              } catch (Exception e) {
                  logger.error("Failed to close Connection", e);
              }
          }
      }
docs: Unconditionally close the <code>ResultSet, Statement, Connection</code>.
  <p>
  Equivalent to {@link ResultSet#close()}, {@link Statement#close()}, {@link Connection#close()}, except any exceptions will be ignored.
  This is typically used in finally blocks.
  
  @param rs
  @param stmt
  @param conn