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

sqlmap.llsfw.generator.standard.system.TtDynamicDataSourceMapper.xml Maven / Gradle / Ivy

<?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="com.llsfw.generator.mapper.standard.system.TtDynamicDataSourceMapper" >
  <resultMap id="BaseResultMap" type="com.llsfw.generator.model.standard.system.TtDynamicDataSource" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    <id column="DBS_NAME" property="dbsName" jdbcType="VARCHAR" />
    <result column="DBS_DRIVER_CLASS" property="dbsDriverClass" jdbcType="VARCHAR" />
    <result column="DBS_URL" property="dbsUrl" jdbcType="VARCHAR" />
    <result column="DBS_USER_NAME" property="dbsUserName" jdbcType="VARCHAR" />
    <result column="DBS_PASSWORD" property="dbsPassword" jdbcType="VARCHAR" />
    <result column="DBS_STATUS" property="dbsStatus" jdbcType="VARCHAR" />
    <result column="CREATE_BY" property="createBy" jdbcType="VARCHAR" />
    <result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" />
    <result column="UPDATE_BY" property="updateBy" jdbcType="VARCHAR" />
    <result column="UPDATE_DATE" property="updateDate" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    <where >
      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    DBS_NAME, DBS_DRIVER_CLASS, DBS_URL, DBS_USER_NAME, DBS_PASSWORD, DBS_STATUS, CREATE_BY, 
    CREATE_DATE, UPDATE_BY, UPDATE_DATE
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSourceCriteria" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from TT_DYNAMIC_DATA_SOURCE
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    select 
    <include refid="Base_Column_List" />
    from TT_DYNAMIC_DATA_SOURCE
    where DBS_NAME = #{dbsName,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    delete from TT_DYNAMIC_DATA_SOURCE
    where DBS_NAME = #{dbsName,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSourceCriteria" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    delete from TT_DYNAMIC_DATA_SOURCE
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSource" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    insert into TT_DYNAMIC_DATA_SOURCE (DBS_NAME, DBS_DRIVER_CLASS, DBS_URL, 
      DBS_USER_NAME, DBS_PASSWORD, DBS_STATUS, 
      CREATE_BY, CREATE_DATE, UPDATE_BY, 
      UPDATE_DATE)
    values (#{dbsName,jdbcType=VARCHAR}, #{dbsDriverClass,jdbcType=VARCHAR}, #{dbsUrl,jdbcType=VARCHAR}, 
      #{dbsUserName,jdbcType=VARCHAR}, #{dbsPassword,jdbcType=VARCHAR}, #{dbsStatus,jdbcType=VARCHAR}, 
      #{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{updateDate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSource" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    insert into TT_DYNAMIC_DATA_SOURCE
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="dbsName != null" >
        DBS_NAME,
      </if>
      <if test="dbsDriverClass != null" >
        DBS_DRIVER_CLASS,
      </if>
      <if test="dbsUrl != null" >
        DBS_URL,
      </if>
      <if test="dbsUserName != null" >
        DBS_USER_NAME,
      </if>
      <if test="dbsPassword != null" >
        DBS_PASSWORD,
      </if>
      <if test="dbsStatus != null" >
        DBS_STATUS,
      </if>
      <if test="createBy != null" >
        CREATE_BY,
      </if>
      <if test="createDate != null" >
        CREATE_DATE,
      </if>
      <if test="updateBy != null" >
        UPDATE_BY,
      </if>
      <if test="updateDate != null" >
        UPDATE_DATE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="dbsName != null" >
        #{dbsName,jdbcType=VARCHAR},
      </if>
      <if test="dbsDriverClass != null" >
        #{dbsDriverClass,jdbcType=VARCHAR},
      </if>
      <if test="dbsUrl != null" >
        #{dbsUrl,jdbcType=VARCHAR},
      </if>
      <if test="dbsUserName != null" >
        #{dbsUserName,jdbcType=VARCHAR},
      </if>
      <if test="dbsPassword != null" >
        #{dbsPassword,jdbcType=VARCHAR},
      </if>
      <if test="dbsStatus != null" >
        #{dbsStatus,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null" >
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null" >
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null" >
        #{updateDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSourceCriteria" resultType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    select count(*) from TT_DYNAMIC_DATA_SOURCE
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    update TT_DYNAMIC_DATA_SOURCE
    <set >
      <if test="record.dbsName != null" >
        DBS_NAME = #{record.dbsName,jdbcType=VARCHAR},
      </if>
      <if test="record.dbsDriverClass != null" >
        DBS_DRIVER_CLASS = #{record.dbsDriverClass,jdbcType=VARCHAR},
      </if>
      <if test="record.dbsUrl != null" >
        DBS_URL = #{record.dbsUrl,jdbcType=VARCHAR},
      </if>
      <if test="record.dbsUserName != null" >
        DBS_USER_NAME = #{record.dbsUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.dbsPassword != null" >
        DBS_PASSWORD = #{record.dbsPassword,jdbcType=VARCHAR},
      </if>
      <if test="record.dbsStatus != null" >
        DBS_STATUS = #{record.dbsStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.createBy != null" >
        CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.createDate != null" >
        CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateBy != null" >
        UPDATE_BY = #{record.updateBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateDate != null" >
        UPDATE_DATE = #{record.updateDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    update TT_DYNAMIC_DATA_SOURCE
    set DBS_NAME = #{record.dbsName,jdbcType=VARCHAR},
      DBS_DRIVER_CLASS = #{record.dbsDriverClass,jdbcType=VARCHAR},
      DBS_URL = #{record.dbsUrl,jdbcType=VARCHAR},
      DBS_USER_NAME = #{record.dbsUserName,jdbcType=VARCHAR},
      DBS_PASSWORD = #{record.dbsPassword,jdbcType=VARCHAR},
      DBS_STATUS = #{record.dbsStatus,jdbcType=VARCHAR},
      CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
      CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP},
      UPDATE_BY = #{record.updateBy,jdbcType=VARCHAR},
      UPDATE_DATE = #{record.updateDate,jdbcType=TIMESTAMP}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSource" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    update TT_DYNAMIC_DATA_SOURCE
    <set >
      <if test="dbsDriverClass != null" >
        DBS_DRIVER_CLASS = #{dbsDriverClass,jdbcType=VARCHAR},
      </if>
      <if test="dbsUrl != null" >
        DBS_URL = #{dbsUrl,jdbcType=VARCHAR},
      </if>
      <if test="dbsUserName != null" >
        DBS_USER_NAME = #{dbsUserName,jdbcType=VARCHAR},
      </if>
      <if test="dbsPassword != null" >
        DBS_PASSWORD = #{dbsPassword,jdbcType=VARCHAR},
      </if>
      <if test="dbsStatus != null" >
        DBS_STATUS = #{dbsStatus,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null" >
        CREATE_BY = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null" >
        UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null" >
        UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where DBS_NAME = #{dbsName,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.llsfw.generator.model.standard.system.TtDynamicDataSource" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Mon Dec 07 22:45:14 CST 2015.
    -->
    update TT_DYNAMIC_DATA_SOURCE
    set DBS_DRIVER_CLASS = #{dbsDriverClass,jdbcType=VARCHAR},
      DBS_URL = #{dbsUrl,jdbcType=VARCHAR},
      DBS_USER_NAME = #{dbsUserName,jdbcType=VARCHAR},
      DBS_PASSWORD = #{dbsPassword,jdbcType=VARCHAR},
      DBS_STATUS = #{dbsStatus,jdbcType=VARCHAR},
      CREATE_BY = #{createBy,jdbcType=VARCHAR},
      CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
      UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}
    where DBS_NAME = #{dbsName,jdbcType=VARCHAR}
  </update>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy