Examples of SQLUpdate()


Examples of database.MySQLConnection.SQLUpdate()

    int numPackages = this.jncssParser.getNumPackages();
    int numClasses = this.jncssParser.getNumClasses();
    int numFunctions = this.jncssParser.getNumFunctions();
    int numCodeDuplications = this.pmdParser.getNumCodeDuplications();

    conn.SQLUpdate("insert into general_stats (version , nloc , nfunc , ncl , npkg , ncom , ndupl , nfile) values ("
        + idVersion
        + ","
        + (numLinesOfCode == -1 ? "NULL" : numLinesOfCode)
        + ","
        + (numFunctions == -1 ? "NULL" : numFunctions)
View Full Code Here

Examples of database.MySQLConnection.SQLUpdate()

      while (rs2.next()) {
        lastVersion = Math.max(lastVersion, rs2.getInt("last_version"));
      }

      int idVersion = 1;
      conn.SQLUpdate("insert into versions (project , version , creation_date) values ("
          + idProject + "," + lastVersion + " , sysdate())");

      ResultSet rs3 = conn
          .SQLSelect("select id from versions where version = "
              + lastVersion + " and project = " + idProject);
View Full Code Here

Examples of database.MySQLConnection.SQLUpdate()

  public void saveResults(int idVersion) throws Exception {

    MySQLConnection conn = new MySQLConnection();
    conn.connect();

    conn.SQLUpdate("insert into test_stats (version , ncovl) values ("
        + idVersion + " , " + (numLines.equals("") ? "NULL" : numLines)
        + ")");

    conn.disconnect();
  }
View Full Code Here

Examples of database.MySQLConnection.SQLUpdate()

      // Mandatory info on the error has been successfully retrieved
      if (!e.abbrev.isEmpty() && !e.category.isEmpty()
          && !e.type.isEmpty()) {

        conn.SQLUpdate("insert into findbugs_stats (version , category , abbrev , type , file , line) values ("
            + idVersion
            + ",'"
            + e.category
            + "',"
            + "'"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.