diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2020-10-14 16:43:30 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-28 20:06:15 +0000 |
commit | 37587a03da2ea2289e2c2c6b0ca213e8274fe5c7 (patch) | |
tree | 3968c8afe017835b1f5853a1ba3b63882f056713 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | |
parent | e24f1b14536dc7268d03495f6ef281698ff09184 (diff) | |
download | sonarqube-37587a03da2ea2289e2c2c6b0ca213e8274fe5c7.tar.gz sonarqube-37587a03da2ea2289e2c2c6b0ca213e8274fe5c7.zip |
SONAR-14033 Refactor storage of applications
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.java | 7 |
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 78d717373ed..bd6c3c878d6 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 @@ -33,6 +33,7 @@ import org.sonar.db.ce.CeTaskCharacteristicDao; import org.sonar.db.ce.CeTaskInputDao; import org.sonar.db.ce.CeTaskMessageDao; import org.sonar.db.component.AnalysisPropertiesDao; +import org.sonar.db.component.ApplicationProjectsDao; import org.sonar.db.component.BranchDao; import org.sonar.db.component.ComponentDao; import org.sonar.db.component.ComponentKeyUpdaterDao; @@ -166,6 +167,7 @@ public class DbClient { private final SessionTokensDao sessionTokensDao; private final SamlMessageIdDao samlMessageIdDao; private final UserDismissedMessagesDao userDismissedMessagesDao; + private final ApplicationProjectsDao applicationProjectsDao; public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; @@ -245,6 +247,7 @@ public class DbClient { sessionTokensDao = getDao(map, SessionTokensDao.class); samlMessageIdDao = getDao(map, SamlMessageIdDao.class); userDismissedMessagesDao = getDao(map, UserDismissedMessagesDao.class); + applicationProjectsDao = getDao(map, ApplicationProjectsDao.class); } public DbSession openSession(boolean batch) { @@ -267,6 +270,10 @@ public class DbClient { return almPatDao; } + public ApplicationProjectsDao applicationProjectsDao() { + return applicationProjectsDao; + } + public ProjectAlmSettingDao projectAlmSettingDao() { return projectAlmSettingDao; } |