1 package hu.user.mediacube.indexer.db;
\r
3 import java.util.List;
\r
5 import org.apache.ibatis.annotations.Delete;
\r
6 import org.apache.ibatis.annotations.DeleteProvider;
\r
7 import org.apache.ibatis.annotations.Insert;
\r
8 import org.apache.ibatis.annotations.InsertProvider;
\r
9 import org.apache.ibatis.annotations.Mapper;
\r
10 import org.apache.ibatis.annotations.Param;
\r
11 import org.apache.ibatis.annotations.Result;
\r
12 import org.apache.ibatis.annotations.Results;
\r
13 import org.apache.ibatis.annotations.Select;
\r
14 import org.apache.ibatis.annotations.SelectProvider;
\r
15 import org.apache.ibatis.annotations.Update;
\r
16 import org.apache.ibatis.annotations.UpdateProvider;
\r
17 import org.apache.ibatis.type.JdbcType;
\r
20 public interface MediadescriptionMapper {
\r
22 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
24 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
26 @SelectProvider(type = MediadescriptionSqlProvider.class, method = "countByExample")
\r
27 long countByExample(MediadescriptionExample example);
\r
30 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
32 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
34 @DeleteProvider(type = MediadescriptionSqlProvider.class, method = "deleteByExample")
\r
35 int deleteByExample(MediadescriptionExample example);
\r
38 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
40 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
42 @Delete({ "delete from DB2ADMIN.MEDIADESCRIPTION", "where ID = #{id,jdbcType=BIGINT}" })
\r
43 int deleteByPrimaryKey(Long id);
\r
46 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
48 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
50 @Insert({ "insert into DB2ADMIN.MEDIADESCRIPTION (ID, ITEMID, ", "MEDIAID, MEDIAFILEID, ", "DESCRIPTION)",
\r
51 "values (#{id,jdbcType=BIGINT}, #{itemid,jdbcType=BIGINT}, ", "#{mediaid,jdbcType=BIGINT}, #{mediafileid,jdbcType=BIGINT}, ",
\r
52 "#{description,jdbcType=CLOB})" })
\r
53 int insert(Mediadescription record);
\r
56 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
58 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
60 @InsertProvider(type = MediadescriptionSqlProvider.class, method = "insertSelective")
\r
61 int insertSelective(Mediadescription record);
\r
64 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
66 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
68 @SelectProvider(type = MediadescriptionSqlProvider.class, method = "selectByExample")
\r
69 @Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
\r
70 @Result(column = "ITEMID", property = "itemid", jdbcType = JdbcType.BIGINT),
\r
71 @Result(column = "MEDIAID", property = "mediaid", jdbcType = JdbcType.BIGINT),
\r
72 @Result(column = "MEDIAFILEID", property = "mediafileid", jdbcType = JdbcType.BIGINT) })
\r
73 List<Mediadescription> selectByExample(MediadescriptionExample example);
\r
76 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
78 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
80 @SelectProvider(type = MediadescriptionSqlProvider.class, method = "selectByExampleWithBLOBs")
\r
81 @Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
\r
82 @Result(column = "ITEMID", property = "itemid", jdbcType = JdbcType.BIGINT),
\r
83 @Result(column = "MEDIAID", property = "mediaid", jdbcType = JdbcType.BIGINT),
\r
84 @Result(column = "MEDIAFILEID", property = "mediafileid", jdbcType = JdbcType.BIGINT),
\r
85 @Result(column = "DESCRIPTION", property = "description", jdbcType = JdbcType.CLOB) })
\r
86 List<Mediadescription> selectByExampleWithBLOBs(MediadescriptionExample example);
\r
89 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
91 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
93 @Select({ "select", "ID, ITEMID, MEDIAID, MEDIAFILEID, DESCRIPTION", "from DB2ADMIN.MEDIADESCRIPTION", "where ID = #{id,jdbcType=BIGINT}" })
\r
94 @Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
\r
95 @Result(column = "ITEMID", property = "itemid", jdbcType = JdbcType.BIGINT),
\r
96 @Result(column = "MEDIAID", property = "mediaid", jdbcType = JdbcType.BIGINT),
\r
97 @Result(column = "MEDIAFILEID", property = "mediafileid", jdbcType = JdbcType.BIGINT),
\r
98 @Result(column = "DESCRIPTION", property = "description", jdbcType = JdbcType.CLOB) })
\r
99 Mediadescription selectByPrimaryKey(Long id);
\r
102 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
104 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
106 @UpdateProvider(type = MediadescriptionSqlProvider.class, method = "updateByExample")
\r
107 int updateByExample(@Param("record") Mediadescription record, @Param("example") MediadescriptionExample example);
\r
110 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
112 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
114 @UpdateProvider(type = MediadescriptionSqlProvider.class, method = "updateByExampleSelective")
\r
115 int updateByExampleSelective(@Param("record") Mediadescription record, @Param("example") MediadescriptionExample example);
\r
118 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
120 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
122 @UpdateProvider(type = MediadescriptionSqlProvider.class, method = "updateByExampleWithBLOBs")
\r
123 int updateByExampleWithBLOBs(@Param("record") Mediadescription record, @Param("example") MediadescriptionExample example);
\r
126 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
128 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
130 @Update({ "update DB2ADMIN.MEDIADESCRIPTION", "set ITEMID = #{itemid,jdbcType=BIGINT},", "MEDIAID = #{mediaid,jdbcType=BIGINT},",
\r
131 "MEDIAFILEID = #{mediafileid,jdbcType=BIGINT}", "where ID = #{id,jdbcType=BIGINT}" })
\r
132 int updateByPrimaryKey(Mediadescription record);
\r
135 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
137 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
139 @UpdateProvider(type = MediadescriptionSqlProvider.class, method = "updateByPrimaryKeySelective")
\r
140 int updateByPrimaryKeySelective(Mediadescription record);
\r
143 * This method was generated by MyBatis Generator. This method corresponds to the database table DB2ADMIN.MEDIADESCRIPTION
\r
145 * @mbg.generated Fri Sep 13 15:49:42 CEST 2019
\r
147 @Update({ "update DB2ADMIN.MEDIADESCRIPTION", "set ITEMID = #{itemid,jdbcType=BIGINT},", "MEDIAID = #{mediaid,jdbcType=BIGINT},",
\r
148 "MEDIAFILEID = #{mediafileid,jdbcType=BIGINT},", "DESCRIPTION = #{description,jdbcType=CLOB}", "where ID = #{id,jdbcType=BIGINT}" })
\r
149 int updateByPrimaryKeyWithBLOBs(Mediadescription record);
\r