From 2be53fd8bc0bff878bd4c7daebbca61720aee9c2 Mon Sep 17 00:00:00 2001 From: Jacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com> Date: Tue, 17 Sep 2019 09:19:44 +0200 Subject: SONAR-5366 - restore custom rules (#2060) - restore custom rules - reduce SQL query executions - code readability improvements --- server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java') diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java index eb220ed54c0..27f1832a2bb 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java @@ -69,6 +69,7 @@ import org.sonar.db.qualityprofile.QProfileChangeDao; import org.sonar.db.qualityprofile.QProfileEditGroupsDao; import org.sonar.db.qualityprofile.QProfileEditUsersDao; import org.sonar.db.qualityprofile.QualityProfileDao; +import org.sonar.db.qualityprofile.QualityProfileExportDao; import org.sonar.db.rule.RuleDao; import org.sonar.db.rule.RuleRepositoryDao; import org.sonar.db.schemamigration.SchemaMigrationDao; @@ -94,6 +95,7 @@ public class DbClient { private final OrganizationDao organizationDao; private final OrganizationMemberDao organizationMemberDao; private final QualityProfileDao qualityProfileDao; + private final QualityProfileExportDao qualityProfileExportDao; private final PropertiesDao propertiesDao; private final AlmAppInstallDao almAppInstallDao; private final ProjectAlmBindingDao projectAlmBindingDao; @@ -167,6 +169,7 @@ public class DbClient { organizationDao = getDao(map, OrganizationDao.class); organizationMemberDao = getDao(map, OrganizationMemberDao.class); qualityProfileDao = getDao(map, QualityProfileDao.class); + qualityProfileExportDao = getDao(map, QualityProfileExportDao.class); propertiesDao = getDao(map, PropertiesDao.class); internalPropertiesDao = getDao(map, InternalPropertiesDao.class); snapshotDao = getDao(map, SnapshotDao.class); @@ -267,6 +270,10 @@ public class DbClient { return qualityProfileDao; } + public QualityProfileExportDao qualityProfileExportDao() { + return qualityProfileExportDao; + } + public PropertiesDao propertiesDao() { return propertiesDao; } -- cgit v1.2.3