aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-08-28 18:51:07 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-04 15:14:35 +0200
commit280a33c2c1e5b816e27688245b000e9dd502a94c (patch)
treeb127af058ad038b06bf1489d8b6dea9474a76363 /sonar-db
parent2f92fe93b2d7bb37ca31357fbcccbffeda02d039 (diff)
downloadsonarqube-280a33c2c1e5b816e27688245b000e9dd502a94c.tar.gz
sonarqube-280a33c2c1e5b816e27688245b000e9dd502a94c.zip
SONAR-6813 Drop ES index sourceLines
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
index 6aeb7d0742b..f1448a545bf 100644
--- a/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/source/FileSourceDao.java
@@ -56,6 +56,11 @@ public class FileSourceDao implements Dao {
}
@CheckForNull
+ public FileSourceDto selectSourceByFileUuid(DbSession session, String fileUuid) {
+ return mapper(session).select(fileUuid, Type.SOURCE);
+ }
+
+ @CheckForNull
public FileSourceDto selectTest(String fileUuid) {
DbSession session = mybatis.openSession(false);
try {