Package org.sonar.server.db.migrations

Examples of org.sonar.server.db.migrations.Upsert.execute()


          .setString(3, ruleParameter.defaultValue)
          .setString(4, ruleParameter.name)
          .addBatch();
      }
      if (!activeRules.isEmpty()) {
        upsert.execute().commit().close();
      }

      // update date for ES indexation
      upsert = context.prepareUpsert("update active_rules set updated_at=? where id=?");
      Date now = new Date(system.now());
View Full Code Here


          .setDate(1, now)
          .setLong(2, activeRule.id)
          .addBatch();
      }
      if (!activeRules.isEmpty()) {
        upsert.execute().commit().close();
      }
    }
  }

  private static class RuleParam {
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.