Interface ObjectReferenceMapper


  • public interface ObjectReferenceMapper
    This class is the mybatis mapping of ObjectReference.
    • Method Detail

      • findById

        @Select("<script>SELECT ID, COMPANY, SYSTEM, SYSTEM_INSTANCE, TYPE, VALUE FROM OBJECT_REFERENCE WHERE ID = #{id}<if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
        @Result(property="id",column="ID") @Result(property="company",column="COMPANY") @Result(property="system",column="SYSTEM") @Result(property="systemInstance",column="SYSTEM_INSTANCE") @Result(property="type",column="TYPE") @Result(property="value",column="VALUE")
        ObjectReferenceImpl findById​(@Param("id")
                                     String id)
      • findObjectReferencesByTaskId

        @Select("<script>SELECT ID, TASK_ID, COMPANY, SYSTEM, SYSTEM_INSTANCE, TYPE, VALUE FROM OBJECT_REFERENCE WHERE TASK_ID = #{taskId}<if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
        @Result(property="id",column="ID") @Result(property="taskId",column="TASK_ID") @Result(property="company",column="COMPANY") @Result(property="system",column="SYSTEM") @Result(property="systemInstance",column="SYSTEM_INSTANCE") @Result(property="type",column="TYPE") @Result(property="value",column="VALUE")
        List<ObjectReferenceImpl> findObjectReferencesByTaskId​(@Param("taskId")
                                                               String taskId)
      • findObjectReferencesByTaskIds

        @Select("<script>SELECT ID, TASK_ID, COMPANY, SYSTEM, SYSTEM_INSTANCE, TYPE, VALUE FROM OBJECT_REFERENCE <where><choose><when  test=\'taskIds == null\'> 1 = 2 </when><otherwise>TASK_ID IN (<foreach collection=\'taskIds\' item=\'item\' separator=\',\' >#{item}</foreach>) </otherwise></choose></where><if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
        @Result(property="id",column="ID") @Result(property="taskId",column="TASK_ID") @Result(property="company",column="COMPANY") @Result(property="system",column="SYSTEM") @Result(property="systemInstance",column="SYSTEM_INSTANCE") @Result(property="type",column="TYPE") @Result(property="value",column="VALUE")
        List<ObjectReferenceImpl> findObjectReferencesByTaskIds​(@Param("taskIds")
                                                                Collection<String> taskIds)
      • findByObjectReference

        @Select("<script>SELECT ID, COMPANY, SYSTEM, SYSTEM_INSTANCE, TYPE, VALUE FROM OBJECT_REFERENCE WHERE COMPANY = #{objectReference.company} AND SYSTEM = #{objectReference.system} AND SYSTEM_INSTANCE = #{objectReference.systemInstance} AND TYPE = #{objectReference.type} AND VALUE = #{objectReference.value} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
        @Result(property="id",column="ID") @Result(property="company",column="COMPANY") @Result(property="system",column="SYSTEM") @Result(property="systemInstance",column="SYSTEM_INSTANCE") @Result(property="type",column="TYPE") @Result(property="value",column="VALUE")
        ObjectReferenceImpl findByObjectReference​(@Param("objectReference")
                                                  ObjectReferenceImpl objectReference)
      • queryObjectReferences

        @SelectProvider(type=ObjectReferenceQuerySqlProvider.class,
                        method="queryObjectReferences")
        @Result(property="id",column="ID") @Result(property="company",column="COMPANY") @Result(property="system",column="SYSTEM") @Result(property="systemInstance",column="SYSTEM_INSTANCE") @Result(property="type",column="TYPE") @Result(property="value",column="VALUE")
        List<ObjectReferenceImpl> queryObjectReferences​(ObjectReferenceQueryImpl objectReference)
      • insert

        @Insert("INSERT INTO OBJECT_REFERENCE (ID, TASK_ID, COMPANY, SYSTEM, SYSTEM_INSTANCE, TYPE, VALUE) VALUES (#{ref.id}, #{ref.taskId}, #{ref.company}, #{ref.system}, #{ref.systemInstance}, #{ref.type}, #{ref.value})")
        void insert​(@Param("ref")
                    ObjectReferenceImpl ref)
      • update

        @Update("UPDATE OBJECT_REFERENCE SET COMPANY = #{ref.company}, SYSTEM = #{ref.system}, SYSTEM_INSTANCE = #{ref.systemInstance}, TYPE = #{ref.type}, VALUE = #{ref.value} WHERE ID = #{ref.id}")
        void update​(@Param("ref")
                    ObjectReferenceImpl ref)
      • delete

        @Delete("DELETE FROM OBJECT_REFERENCE WHERE ID = #{id}")
        void delete​(String id)
      • deleteMultipleByTaskIds

        @Delete("<script>DELETE FROM OBJECT_REFERENCE WHERE TASK_ID IN(<foreach item=\'item\' collection=\'taskIds\' separator=\',\' >#{item}</foreach>)</script>")
        void deleteMultipleByTaskIds​(@Param("taskIds")
                                     List<String> taskIds)