Package com.oltpbenchmark.benchmarks.wikipedia.util

Examples of com.oltpbenchmark.benchmarks.wikipedia.util.Article


        rs = st.executeQuery();
        if (!rs.next()) {
            String msg = "No such text: " + textId + " for page_id:" + pageId + " page_namespace: " + pageNamespace + " page_title:" + pageTitle;
            throw new UserAbortException(msg);
        }
        Article a = null;
        if (!forSelect)
      a = new Article(userIp, pageId, rs.getString("old_text"), textId, revisionId);
        assert !rs.next();
        rs.close();
        return a;
    }
View Full Code Here


        rs = st.executeQuery();
        if (!rs.next()) {
            rs.close();
            throw new UserAbortException("no such text: " + textId + " for page_id:" + pageId + " page_namespace: " + nameSpace + " page_title:" + pageTitle);
        }
        Article a = null;
        if (!forSelect)
            a = new Article(userText, pageId, rs.getString("old_text"), textId, revisionId);
        assert !rs.next();
        rs.close();

        return a;
    }
View Full Code Here

        assert (proc != null);
        proc.run(conn, userId, nameSpace, pageTitle);
  }

  public void updatePage(String userIp, int userId, int nameSpace, String pageTitle) throws SQLException {
    Article a = getPageAnonymous(false, userIp, nameSpace, pageTitle);
    conn.commit();
   
    // TODO: If the Article is null, then we want to insert a new page.
    //       But we don't support that right now.
    if (a == null) return;
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.benchmarks.wikipedia.util.Article

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.