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">

<!--
  ~ Copyright 2018 Alfresco, Inc. and/or its affiliates.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~       http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<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