aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/resources/org/sonar
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-08 14:46:07 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-09 16:47:34 +0100
commit003b0805e5869fa9430ba95a3ac408d30b6a13d8 (patch)
tree34434baa98849175e9bd9da19a3064e51611674b /sonar-db/src/main/resources/org/sonar
parent72fa937e63b9ec047ef5b0cb5df6d192e6909cfb (diff)
downloadsonarqube-003b0805e5869fa9430ba95a3ac408d30b6a13d8.tar.gz
sonarqube-003b0805e5869fa9430ba95a3ac408d30b6a13d8.zip
SONAR-8355 Remove measure filters Dao
Diffstat (limited to 'sonar-db/src/main/resources/org/sonar')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterFavouriteMapper.xml24
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterMapper.xml35
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/user/UserMapper.xml8
3 files changed, 0 insertions, 67 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterFavouriteMapper.xml b/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterFavouriteMapper.xml
deleted file mode 100644
index 8e9a4a5f86f..00000000000
--- a/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterFavouriteMapper.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.sonar.db.measure.MeasureFilterFavouriteMapper">
-
- <sql id="measureFilterFavouriteColumns">
- mff.id,
- mff.user_id as "userId",
- mff.measure_filter_id as "measureFilterId",
- mff.created_at as "createdAt"
- </sql>
-
- <select id="selectById" parameterType="long" resultType="MeasureFilterFavourite">
- SELECT <include refid="measureFilterFavouriteColumns"/>
- FROM measure_filter_favourites mff
- WHERE mff.id=#{id}
- </select>
-
- <insert id="insert" parameterType="MeasureFilterFavourite" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
- INSERT INTO measure_filter_favourites (user_id, measure_filter_id, created_at)
- VALUES (#{userId,jdbcType=BIGINT}, #{measureFilterId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP})
- </insert>
-
-</mapper>
diff --git a/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterMapper.xml b/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterMapper.xml
deleted file mode 100644
index 63c9be3a27a..00000000000
--- a/sonar-db/src/main/resources/org/sonar/db/measure/MeasureFilterMapper.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<mapper namespace="org.sonar.db.measure.MeasureFilterMapper">
-
- <sql id="measureFilterColumns">
- mf.id,
- mf.name,
- mf.user_id as "userId",
- mf.shared,
- mf.description,
- mf.data,
- mf.created_at as "createdAt",
- mf.updated_at as "updatedAt"
- </sql>
-
- <select id="findSystemFilterByName" parameterType="string" resultType="MeasureFilter">
- SELECT <include refid="measureFilterColumns"/>
- FROM measure_filters mf
- WHERE mf.user_id is null and mf.name=#{id}
- </select>
-
- <select id="selectById" parameterType="long" resultType="MeasureFilter">
- SELECT <include refid="measureFilterColumns"/>
- FROM measure_filters mf
- WHERE mf.id=#{id}
- </select>
-
- <insert id="insert" parameterType="MeasureFilter" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
- INSERT INTO measure_filters (name, user_id, shared, description, data, created_at, updated_at)
- VALUES (#{name,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{shared,jdbcType=BOOLEAN}, #{description,jdbcType=VARCHAR}, #{data,jdbcType=VARCHAR},
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP})
- </insert>
-
-</mapper>
diff --git a/sonar-db/src/main/resources/org/sonar/db/user/UserMapper.xml b/sonar-db/src/main/resources/org/sonar/db/user/UserMapper.xml
index 7087a0a4b2f..4a940a2ebe0 100644
--- a/sonar-db/src/main/resources/org/sonar/db/user/UserMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/user/UserMapper.xml
@@ -127,14 +127,6 @@
DELETE FROM properties WHERE user_id=#{id}
</delete>
- <delete id="deleteUnsharedUserMeasureFilters" parameterType="long">
- DELETE FROM measure_filters WHERE user_id=#{id} and shared &lt;&gt; ${_true}
- </delete>
-
- <delete id="deleteUserMeasureFilterFavourites" parameterType="long">
- DELETE FROM measure_filter_favourites WHERE user_id=#{id}
- </delete>
-
<delete id="deleteUnsharedUserIssueFilters" parameterType="String">
DELETE FROM issue_filters WHERE user_login=#{id} and shared &lt;&gt; ${_true}
</delete>