Package org.sonar.core.qualityprofile.db

Examples of org.sonar.core.qualityprofile.db.QualityProfileMapper


  public void execute() {
    DbSession session = db.openSession(false);
    try {
      Date now = new Date(system.now());
      int i = 0;
      QualityProfileMapper profileMapper = session.getMapper(QualityProfileMapper.class);
      Migration44Mapper migrationMapper = session.getMapper(Migration44Mapper.class);
      for (QualityProfileDto profile : profileMapper.selectAll()) {
        Date createdAt = (Date) ObjectUtils.defaultIfNull(migrationMapper.selectProfileCreatedAt(profile.getId()), now);
        Date updatedAt = (Date) ObjectUtils.defaultIfNull(migrationMapper.selectProfileUpdatedAt(profile.getId()), now);

        migrationMapper.updateProfileDates(profile.getId(), createdAt, updatedAt, UtcDateUtils.formatDateTime(updatedAt));
        if (i % 100 == 0) {
View Full Code Here

TOP

Related Classes of org.sonar.core.qualityprofile.db.QualityProfileMapper

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.