Package pro.taskana.task.internal
Interface TaskCommentMapper
-
public interface TaskCommentMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(String taskCommentId)TaskCommentImplfindById(String taskCommentId)List<TaskCommentImpl>findByTaskId(String taskId)voidinsert(TaskCommentImpl taskComment)voidupdate(TaskCommentImpl taskCommentImpl)
-
-
-
Method Detail
-
insert
@Insert("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("taskComment") TaskCommentImpl taskComment)
-
update
@Update("UPDATE TASK_COMMENT SET MODIFIED = #{modified}, TEXT_FIELD = #{textField} WHERE ID = #{id}") void update(TaskCommentImpl taskCommentImpl)
-
delete
@Delete("DELETE FROM TASK_COMMENT WHERE ID = #{taskCommentId}") void delete(String taskCommentId)
-
findByTaskId
@Select("<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("taskId") String taskId)
-
findById
@Select("<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("taskCommentId") String taskCommentId)
-
-