public interface TaskCommentMapper
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String taskCommentId) |
TaskCommentImpl |
findById(String taskCommentId) |
List<TaskCommentImpl> |
findByTaskId(String taskId) |
void |
insert(TaskCommentImpl taskComment) |
void |
update(TaskCommentImpl taskCommentImpl) |
@Insert(value="INSERT INTO TASK_COMMENT (ID, TASK_ID, TEXT_FIELD, CREATOR, CREATED, MODIFIED) VALUES (#{taskComment.id}, #{taskComment.taskId}, #{taskComment.textField}, #{taskComment.creator}, #{taskComment.created}, #{taskComment.modified})")
void insert(@Param(value="taskComment")
TaskCommentImpl taskComment)
@Update(value="UPDATE TASK_COMMENT SET MODIFIED = #{modified}, TEXT_FIELD = #{textField} WHERE ID = #{id}")
void update(TaskCommentImpl taskCommentImpl)
@Delete(value="DELETE FROM TASK_COMMENT WHERE ID = #{taskCommentId}")
void delete(String taskCommentId)
@Select(value="<script> SELECT ID, TASK_ID, TEXT_FIELD, CREATOR, CREATED, MODIFIED FROM TASK_COMMENT WHERE TASK_ID = #{taskId} ORDER BY CREATED ASC <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="taskId",column="TASK_ID") @Result(property="textField",column="TEXT_FIELD") @Result(property="creator",column="CREATOR") @Result(property="created",column="CREATED") @Result(property="modified",column="MODIFIED")
List<TaskCommentImpl> findByTaskId(@Param(value="taskId")
String taskId)
@Select(value="<script> SELECT ID, TASK_ID, TEXT_FIELD, CREATOR, CREATED, MODIFIED FROM TASK_COMMENT WHERE ID = #{taskCommentId} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="taskId",column="TASK_ID") @Result(property="textField",column="TEXT_FIELD") @Result(property="creator",column="CREATOR") @Result(property="created",column="CREATED") @Result(property="modified",column="MODIFIED")
TaskCommentImpl findById(@Param(value="taskCommentId")
String taskCommentId)
Copyright © 2020. All rights reserved.