aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorJacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com>2019-09-17 09:19:44 +0200
committerSonarTech <sonartech@sonarsource.com>2019-09-18 09:51:47 +0200
commit2be53fd8bc0bff878bd4c7daebbca61720aee9c2 (patch)
treee5b898474c48ae80a08cf821e14ed12784120852 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent81f6a5ff6a1b372fa401d31e98de2e50600a7cbe (diff)
downloadsonarqube-2be53fd8bc0bff878bd4c7daebbca61720aee9c2.tar.gz
sonarqube-2be53fd8bc0bff878bd4c7daebbca61720aee9c2.zip
SONAR-5366 - restore custom rules (#2060)
- restore custom rules - reduce SQL query executions - code readability improvements
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java7
1 files changed, 7 insertions, 0 deletions
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;
}