aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-07-08 15:46:23 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-11 18:32:47 +0200
commit289dff0fdd23e32a3d326ca69a5337368254878d (patch)
treef7d60c3f0fc0e95392b5c38e809c2c023ee17976 /sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
parent3731d21239bc7fb9faa9fd7e3652a64cdadc24ab (diff)
downloadsonarqube-289dff0fdd23e32a3d326ca69a5337368254878d.tar.gz
sonarqube-289dff0fdd23e32a3d326ca69a5337368254878d.zip
SONAR-7700 use "B columns" strategy for update of PROJECTS
B columns are used to keep changes in a "functional" transaction but not a DB transaction
Diffstat (limited to 'sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java b/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
index 6742bec2cc0..af24457c602 100644
--- a/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
@@ -345,8 +345,16 @@ public class ComponentDao implements Dao {
insert(session, Lists.asList(item, others));
}
- public void update(DbSession session, ComponentDto item) {
- mapper(session).update(item);
+ public void update(DbSession session, ComponentUpdateDto component) {
+ mapper(session).update(component);
+ }
+
+ public void applyBChangesForRootComponentUuid(DbSession session, String projectUuid) {
+ mapper(session).applyBChangesForRootComponentUuid(projectUuid);
+ }
+
+ public void resetBChangedForRootComponentUuid(DbSession session, String projectUuid) {
+ mapper(session).resetBChangedForRootComponentUuid(projectUuid);
}
public void delete(DbSession session, long componentId) {