Examples of rowPluralName()


Examples of org.sonar.server.db.migrations.MassUpdate.rowPluralName()

      "or name='sqale_effort_to_grade_d' or name='blocker_remediation_cost' or name='critical_remediation_cost' " +
      "or name='major_remediation_cost' or name='minor_remediation_cost' or name='info_remediation_cost'").list(Select.LONG_READER);

    if (!metricIds.isEmpty()) {
      MassUpdate massUpdate = context.prepareMassUpdate();
      massUpdate.rowPluralName("measures");

      SqlStatement select = massUpdate.select("SELECT pm.id, pm.value " +
        ", pm.variation_value_1 , pm.variation_value_2, pm.variation_value_3 " +
        ", pm.variation_value_4 , pm.variation_value_5 " +
        " FROM project_measures pm " +
View Full Code Here

Examples of org.sonar.server.db.migrations.MassUpdate.rowPluralName()

  private void updateKeys(Context context) throws SQLException {
    MassUpdate massUpdate = context.prepareMassUpdate();
    massUpdate.select("SELECT id,language,name FROM rules_profiles");
    massUpdate.update("UPDATE rules_profiles SET kee=? WHERE id=?");
    massUpdate.rowPluralName("profiles");
    massUpdate.execute(new MassUpdate.Handler() {
      @Override
      public boolean handle(Select.Row row, SqlStatement update) throws SQLException {
        Long id = row.getLong(1);
        String lang = row.getString(2);
View Full Code Here

Examples of org.sonar.server.db.migrations.MassUpdate.rowPluralName()

  }

  @Override
  public void execute(Context context) throws SQLException {
    MassUpdate massUpdate = context.prepareMassUpdate();
    massUpdate.rowPluralName("measures");
    massUpdate.select("select md.id, md.measure_id FROM measure_data md " +
      "inner join project_measures m on m.id=md.measure_id and m.measure_data is null");
    massUpdate.update("update project_measures SET measure_data = (SELECT md.data FROM measure_data md WHERE md.id = ?) WHERE id=?");
    massUpdate.execute(new MassUpdate.Handler() {
      @Override
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.