aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2024-08-29 14:37:24 +0200
committersonartech <sonartech@sonarsource.com>2024-10-09 20:02:46 +0000
commit264769a69d03fd61c87491be3da5f101469bb60c (patch)
treeac39fd8068d8155ddb93e306fa542651bcb5facd /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parenta4da413ce8b4eab78aadc9e492d437f45d9b7e6f (diff)
downloadsonarqube-264769a69d03fd61c87491be3da5f101469bb60c.tar.gz
sonarqube-264769a69d03fd61c87491be3da5f101469bb60c.zip
SONAR-22872 CE step to persist measures in JSON format
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 d04aff1df52..200f3547cb4 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
@@ -51,6 +51,7 @@ import org.sonar.db.issue.IssueChangeDao;
import org.sonar.db.issue.IssueDao;
import org.sonar.db.issue.IssueFixedDao;
import org.sonar.db.measure.LiveMeasureDao;
+import org.sonar.db.measure.MeasureDao;
import org.sonar.db.measure.ProjectMeasureDao;
import org.sonar.db.metric.MetricDao;
import org.sonar.db.newcodeperiod.NewCodePeriodDao;
@@ -129,6 +130,7 @@ public class DbClient {
private final SnapshotDao snapshotDao;
private final ComponentDao componentDao;
private final ComponentKeyUpdaterDao componentKeyUpdaterDao;
+ private final MeasureDao measureDao;
private final ProjectMeasureDao projectMeasureDao;
private final UserDao userDao;
private final UserGroupDao userGroupDao;
@@ -225,6 +227,7 @@ public class DbClient {
snapshotDao = getDao(map, SnapshotDao.class);
componentDao = getDao(map, ComponentDao.class);
componentKeyUpdaterDao = getDao(map, ComponentKeyUpdaterDao.class);
+ measureDao = getDao(map, MeasureDao.class);
projectMeasureDao = getDao(map, ProjectMeasureDao.class);
userDao = getDao(map, UserDao.class);
userGroupDao = getDao(map, UserGroupDao.class);
@@ -397,6 +400,10 @@ public class DbClient {
return componentKeyUpdaterDao;
}
+ public MeasureDao measureDao() {
+ return measureDao;
+ }
+
public ProjectMeasureDao projectMeasureDao() {
return projectMeasureDao;
}