aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorantoine.vinot <antoine.vinot@sonarsource.com>2024-09-02 11:10:31 +0200
committersonartech <sonartech@sonarsource.com>2024-09-12 20:02:54 +0000
commite56fc5a6aa170161d32e171cf3b499a691924bd2 (patch)
treefd3538b233db58a51aee3ba3036217520702a497 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent5abfd7e0c258569ddf65d6e27ae29e8b53748b6d (diff)
downloadsonarqube-e56fc5a6aa170161d32e171cf3b499a691924bd2.tar.gz
sonarqube-e56fc5a6aa170161d32e171cf3b499a691924bd2.zip
SONAR-22914 Add CVEs DB migration and DAOs
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.java24
1 files changed, 22 insertions, 2 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 598d3663e1c..d04aff1df52 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
@@ -38,6 +38,9 @@ import org.sonar.db.component.ComponentDao;
import org.sonar.db.component.ComponentKeyUpdaterDao;
import org.sonar.db.component.ProjectLinkDao;
import org.sonar.db.component.SnapshotDao;
+import org.sonar.db.dependency.CveCweDao;
+import org.sonar.db.dependency.CveDao;
+import org.sonar.db.dependency.IssuesDependencyDao;
import org.sonar.db.duplication.DuplicationDao;
import org.sonar.db.entity.EntityDao;
import org.sonar.db.es.EsQueueDao;
@@ -65,8 +68,8 @@ import org.sonar.db.project.ProjectExportDao;
import org.sonar.db.property.InternalComponentPropertiesDao;
import org.sonar.db.property.InternalPropertiesDao;
import org.sonar.db.property.PropertiesDao;
-import org.sonar.db.provisioning.GithubOrganizationGroupDao;
import org.sonar.db.provisioning.DevOpsPermissionsMappingDao;
+import org.sonar.db.provisioning.GithubOrganizationGroupDao;
import org.sonar.db.purge.PurgeDao;
import org.sonar.db.pushevent.PushEventDao;
import org.sonar.db.qualitygate.ProjectQgateAssociationDao;
@@ -188,7 +191,6 @@ public class DbClient {
private final ScimGroupDao scimGroupDao;
private final EntityDao entityDao;
private final AnticipatedTransitionDao anticipatedTransitionDao;
-
private final ReportScheduleDao reportScheduleDao;
private final ReportSubscriptionDao reportSubscriptionDao;
private final GithubOrganizationGroupDao githubOrganizationGroupDao;
@@ -197,6 +199,9 @@ public class DbClient {
private final ProjectExportDao projectExportDao;
private final IssueFixedDao issueFixedDao;
private final TelemetryMetricsSentDao telemetryMetricsSentDao;
+ private final CveDao cveDao;
+ private final CveCweDao cveCweDao;
+ private final IssuesDependencyDao issuesDependencyDao;
public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) {
this.database = database;
@@ -291,6 +296,9 @@ public class DbClient {
projectExportDao = getDao(map, ProjectExportDao.class);
issueFixedDao = getDao(map, IssueFixedDao.class);
telemetryMetricsSentDao = getDao(map, TelemetryMetricsSentDao.class);
+ cveDao = getDao(map, CveDao.class);
+ cveCweDao = getDao(map, CveCweDao.class);
+ issuesDependencyDao = getDao(map, IssuesDependencyDao.class);
}
public DbSession openSession(boolean batch) {
@@ -646,4 +654,16 @@ public class DbClient {
public ProjectExportDao projectExportDao() {
return projectExportDao;
}
+
+ public CveDao cveDao() {
+ return cveDao;
+ }
+
+ public CveCweDao cveCweDao() {
+ return cveCweDao;
+ }
+
+ public IssuesDependencyDao issuesDependencyDao() {
+ return issuesDependencyDao;
+ }
}