aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorBenjamin Campomenosi <benjamin.campomenosi@sonarsource.com>2023-10-19 23:03:56 +0200
committersonartech <sonartech@sonarsource.com>2023-10-23 20:02:43 +0000
commit9ff5b8d083d36c4b413632da7ad5b76c08a9f622 (patch)
treecc3758d156f420dc51a19fb6fbeba7ef59c18a47 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent564d295d94911eeea1e5ef192bd675c3ff1c406e (diff)
downloadsonarqube-9ff5b8d083d36c4b413632da7ad5b76c08a9f622.tar.gz
sonarqube-9ff5b8d083d36c4b413632da7ad5b76c08a9f622.zip
SONAR-20664 - Add ProjectExportDao for all Export steps
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 f4f30d4e406..f9a93c4e0ba 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
@@ -60,6 +60,7 @@ import org.sonar.db.plugin.PluginDao;
import org.sonar.db.portfolio.PortfolioDao;
import org.sonar.db.project.ProjectBadgeTokenDao;
import org.sonar.db.project.ProjectDao;
+import org.sonar.db.project.ProjectExportDao;
import org.sonar.db.property.InternalComponentPropertiesDao;
import org.sonar.db.property.InternalPropertiesDao;
import org.sonar.db.property.PropertiesDao;
@@ -191,6 +192,7 @@ public class DbClient {
private final GithubOrganizationGroupDao githubOrganizationGroupDao;
private final GithubPermissionsMappingDao githubPermissionsMappingDao;
private final RuleChangeDao ruleChangeDao;
+ private final ProjectExportDao projectExportDao;
public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) {
this.database = database;
@@ -282,6 +284,7 @@ public class DbClient {
reportSubscriptionDao = getDao(map, ReportSubscriptionDao.class);
anticipatedTransitionDao = getDao(map, AnticipatedTransitionDao.class);
ruleChangeDao = getDao(map, RuleChangeDao.class);
+ projectExportDao = getDao(map, ProjectExportDao.class);
}
public DbSession openSession(boolean batch) {
@@ -625,5 +628,9 @@ public class DbClient {
public RuleChangeDao ruleChangeDao() {
return ruleChangeDao;
}
+
+ public ProjectExportDao projectExportDao() {
+ return projectExportDao;
+ }
}