public interface WorkbasketMapper
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id) |
List<WorkbasketSummaryImpl> |
findAll() |
WorkbasketImpl |
findById(String id) |
WorkbasketImpl |
findByKeyAndDomain(String key,
String domain) |
List<WorkbasketSummaryImpl> |
findDistributionSources(String id) |
List<WorkbasketSummaryImpl> |
findDistributionTargets(String id) |
List<WorkbasketSummaryImpl> |
findSummaryById(String id) |
void |
insert(WorkbasketImpl workbasket) |
void |
update(WorkbasketImpl workbasket) |
@Select(value="<script>SELECT ID, KEY, CREATED, MODIFIED, NAME, DOMAIN, TYPE, DESCRIPTION, OWNER, CUSTOM_1 ,CUSTOM_2 ,CUSTOM_3 ,CUSTOM_4 ,ORG_LEVEL_1 ,ORG_LEVEL_2 ,ORG_LEVEL_3 ,ORG_LEVEL_4 FROM TASKANA.WORKBASKET WHERE ID = #{id} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="created",column="CREATED") @Result(property="modified",column="MODIFIED") @Result(property="name",column="NAME") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4")
WorkbasketImpl findById(@Param(value="id")
String id)
@Select(value="<script>SELECT ID, KEY, CREATED, MODIFIED, NAME, DOMAIN, TYPE, DESCRIPTION, OWNER, CUSTOM_1 ,CUSTOM_2 ,CUSTOM_3 ,CUSTOM_4 ,ORG_LEVEL_1 ,ORG_LEVEL_2 ,ORG_LEVEL_3 ,ORG_LEVEL_4 FROM TASKANA.WORKBASKET WHERE UPPER(KEY) = UPPER(#{key}) and UPPER(DOMAIN) = UPPER(#{domain}) <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="created",column="CREATED") @Result(property="modified",column="MODIFIED") @Result(property="name",column="NAME") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4")
WorkbasketImpl findByKeyAndDomain(@Param(value="key")
String key,
@Param(value="domain")
String domain)
@Select(value="<script>SELECT ID, KEY, NAME, DESCRIPTION, OWNER, DOMAIN, TYPE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4 FROM TASKANA.WORKBASKET WHERE ID IN (SELECT TARGET_ID FROM TASKANA.DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{id}) <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="name",column="NAME") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4")
List<WorkbasketSummaryImpl> findDistributionTargets(@Param(value="id")
String id)
@Select(value="<script>SELECT ID, KEY, NAME, DESCRIPTION, OWNER, DOMAIN, TYPE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4 FROM TASKANA.WORKBASKET WHERE ID IN (SELECT SOURCE_ID FROM TASKANA.DISTRIBUTION_TARGETS WHERE TARGET_ID = #{id}) <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="name",column="NAME") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4")
List<WorkbasketSummaryImpl> findDistributionSources(@Param(value="id")
String id)
@Select(value="<script>SELECT ID, KEY, NAME, DESCRIPTION, OWNER, DOMAIN, TYPE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4 FROM TASKANA.WORKBASKET WHERE ID = #{id} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="name",column="NAME") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4")
List<WorkbasketSummaryImpl> findSummaryById(@Param(value="key")
String id)
@Select(value="<script>SELECT * FROM TASKANA.WORKBASKET ORDER BY id <if test=\"_databaseId == \'db2\'\">with UR </if> </script>") @Result(property="id",column="ID") @Result(property="key",column="KEY") @Result(property="name",column="NAME") @Result(property="description",column="DESCRIPTION") @Result(property="owner",column="OWNER") @Result(property="domain",column="DOMAIN") @Result(property="type",column="TYPE") @Result(property="custom1",column="CUSTOM_1") @Result(property="custom2",column="CUSTOM_2") @Result(property="custom3",column="CUSTOM_3") @Result(property="custom4",column="CUSTOM_4") @Result(property="orgLevel1",column="ORG_LEVEL_1") @Result(property="orgLevel2",column="ORG_LEVEL_2") @Result(property="orgLevel3",column="ORG_LEVEL_3") @Result(property="orgLevel4",column="ORG_LEVEL_4") List<WorkbasketSummaryImpl> findAll()
@Insert(value="<script>INSERT INTO TASKANA.WORKBASKET (ID, KEY, CREATED, MODIFIED, NAME, DOMAIN, TYPE, DESCRIPTION, OWNER, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4) VALUES (#{workbasket.id}, #{workbasket.key}, #{workbasket.created}, #{workbasket.modified}, #{workbasket.name}, #{workbasket.domain}, #{workbasket.type}, #{workbasket.description}, #{workbasket.owner}, #{workbasket.custom1}, #{workbasket.custom2}, #{workbasket.custom3}, #{workbasket.custom4}, #{workbasket.orgLevel1}, #{workbasket.orgLevel2}, #{workbasket.orgLevel3}, #{workbasket.orgLevel4}) </script>")
@Options(keyProperty="id",
keyColumn="ID")
void insert(@Param(value="workbasket")
WorkbasketImpl workbasket)
@Update(value="UPDATE TASKANA.WORKBASKET SET MODIFIED = #{workbasket.modified}, KEY = #{workbasket.key}, NAME = #{workbasket.name}, DOMAIN = #{workbasket.domain}, TYPE = #{workbasket.type}, DESCRIPTION = #{workbasket.description}, OWNER = #{workbasket.owner}, CUSTOM_1 = #{workbasket.custom1}, CUSTOM_2 = #{workbasket.custom2}, CUSTOM_3 = #{workbasket.custom3}, CUSTOM_4 = #{workbasket.custom4}, ORG_LEVEL_1 = #{workbasket.orgLevel1}, ORG_LEVEL_2 = #{workbasket.orgLevel2}, ORG_LEVEL_3 = #{workbasket.orgLevel3}, ORG_LEVEL_4 = #{workbasket.orgLevel4} WHERE id = #{workbasket.id}")
void update(@Param(value="workbasket")
WorkbasketImpl workbasket)
@Delete(value="DELETE FROM TASKANA.WORKBASKET where id = #{id}")
void delete(@Param(value="id")
String id)
Copyright © 2018. All rights reserved.