aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-05-24 12:32:00 -0500
committersonartech <sonartech@sonarsource.com>2023-06-01 20:02:59 +0000
commit7b73b663030d67ddf6cf01914379f1c5a671bdf6 (patch)
treeed7872e6207c808a1b3ee928ff386d19e715b24a /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent92c132a13f46f23a5ecc5dee5dfdfb619e6fa65f (diff)
downloadsonarqube-7b73b663030d67ddf6cf01914379f1c5a671bdf6.tar.gz
sonarqube-7b73b663030d67ddf6cf01914379f1c5a671bdf6.zip
SONAR-18856 Move Entity queries to dedicated DAO
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 4179b7dc7e1..80add385af8 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
@@ -39,6 +39,7 @@ import org.sonar.db.component.ComponentKeyUpdaterDao;
import org.sonar.db.component.ProjectLinkDao;
import org.sonar.db.component.SnapshotDao;
import org.sonar.db.duplication.DuplicationDao;
+import org.sonar.db.entity.EntityDao;
import org.sonar.db.es.EsQueueDao;
import org.sonar.db.event.EventComponentChangeDao;
import org.sonar.db.event.EventDao;
@@ -178,6 +179,7 @@ public class DbClient {
private final ScannerAnalysisCacheDao scannerAnalysisCacheDao;
private final ScimUserDao scimUserDao;
private final ScimGroupDao scimGroupDao;
+ private final EntityDao entityDao;
public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) {
this.database = database;
@@ -263,6 +265,7 @@ public class DbClient {
scannerAnalysisCacheDao = getDao(map, ScannerAnalysisCacheDao.class);
scimUserDao = getDao(map, ScimUserDao.class);
scimGroupDao = getDao(map, ScimGroupDao.class);
+ entityDao = getDao(map, EntityDao.class);
}
public DbSession openSession(boolean batch) {
@@ -582,5 +585,9 @@ public class DbClient {
public ScimGroupDao scimGroupDao() {
return scimGroupDao;
}
+
+ public EntityDao entityDao() {
+ return entityDao;
+ }
}