All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.db.mapping.entity.IntegrationContext.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.activiti.engine.impl.persistence.entity.integration.IntegrationContextEntityImpl">

  <!-- RESULT MAP -->

  <resultMap id="integrationContextResultMap" type="org.activiti.engine.impl.persistence.entity.integration.IntegrationContextEntityImpl">
    <id property="id" column="ID_" jdbcType="VARCHAR" />
    <result property="executionId" column="EXECUTION_ID_" jdbcType="VARCHAR" />
    <result property="processInstanceId" column="PROCESS_INSTANCE_ID_" jdbcType="VARCHAR" />
    <result property="processDefinitionId" column="PROC_DEF_ID_" jdbcType="VARCHAR" />
    <result property="flowNodeId" column="FLOW_NODE_ID_" jdbcType="VARCHAR" />
    <result property="createdDate" column="CREATED_DATE_" jdbcType="TIMESTAMP" />
  </resultMap>

  <!-- INSERT -->

  <insert id="insertIntegrationContext"
          parameterType="org.activiti.engine.impl.persistence.entity.integration.IntegrationContextEntityImpl">
    insert into ${prefix}ACT_RU_INTEGRATION (
    ID_,
    EXECUTION_ID_,
    PROCESS_INSTANCE_ID_,
    PROC_DEF_ID_,
    FLOW_NODE_ID_,
    CREATED_DATE_
    )
    values (
    #{id, jdbcType=VARCHAR},
    #{executionId, jdbcType=VARCHAR},
    #{processInstanceId, jdbcType=VARCHAR},
    #{processDefinitionId, jdbcType=VARCHAR},
    #{flowNodeId, jdbcType=VARCHAR},
    #{createdDate, jdbcType=TIMESTAMP}
    )
  </insert>

  <!-- DELETE -->

  <delete id="deleteIntegrationContext" parameterType="org.activiti.engine.impl.persistence.entity.integration.IntegrationContextEntityImpl">
    delete from ${prefix}ACT_RU_INTEGRATION where ID_ = #{id}
  </delete>

  <!-- Selects -->

  <select id="selectIntegrationContext" parameterType="string" resultMap="integrationContextResultMap">
    select * from ${prefix}ACT_RU_INTEGRATION where ID_ = #{id, jdbcType=VARCHAR}
  </select>

</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy