code: public void close() throws Exception {
          try {
              if (resultSet != null) {
                  resultSet.close();
              }
          } finally {
              if (conn != null) {
                  conn.close();
              }
          }
      }
docs: closes the resultset and the jdbc connection.
  
  @throws java.lang.Exception