From ace9a50d55d831ec71b7db421aa04d1198392c6c Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 23 Oct 2019 15:33:39 -0500 Subject: SONAR-12689 Separate storage of projects/apps from their components and branches --- 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 c7a3bea3ce1..9707a025944 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 @@ -59,6 +59,7 @@ import org.sonar.db.permission.UserPermissionDao; import org.sonar.db.permission.template.PermissionTemplateCharacteristicDao; import org.sonar.db.permission.template.PermissionTemplateDao; import org.sonar.db.plugin.PluginDao; +import org.sonar.db.project.ProjectDao; import org.sonar.db.property.InternalComponentPropertiesDao; import org.sonar.db.property.InternalPropertiesDao; import org.sonar.db.property.PropertiesDao; @@ -158,6 +159,7 @@ public class DbClient { private final ProjectMappingsDao projectMappingsDao; private final OrganizationAlmBindingDao organizationAlmBindingDao; private final NewCodePeriodDao newCodePeriodDao; + private final ProjectDao projectDao; public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; @@ -233,6 +235,7 @@ public class DbClient { organizationAlmBindingDao = getDao(map, OrganizationAlmBindingDao.class); internalComponentPropertiesDao = getDao(map, InternalComponentPropertiesDao.class); newCodePeriodDao = getDao(map, NewCodePeriodDao.class); + projectDao = getDao(map, ProjectDao.class); } public DbSession openSession(boolean batch) { @@ -311,6 +314,10 @@ public class DbClient { return componentDao; } + public ProjectDao projectDao() { + return projectDao; + } + public ComponentKeyUpdaterDao componentKeyUpdaterDao() { return componentKeyUpdaterDao; } -- cgit v1.2.3