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

sqlmap.llsfw.generator.standard.system.TtOnlineSessionHisMapper.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="com.llsfw.generator.mapper.standard.system.TtOnlineSessionHisMapper">
  <resultMap id="BaseResultMap" type="com.llsfw.generator.model.standard.system.TtOnlineSessionHis">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    <id column="SESSION_ID" jdbcType="VARCHAR" property="sessionId" />
    <result column="SESSION_CREATE_DATE" jdbcType="DECIMAL" property="sessionCreateDate" />
    <result column="SESSION_LAST_ACCESSED_TIME" jdbcType="DECIMAL" property="sessionLastAccessedTime" />
    <result column="SESSION_MAX_INACTIVE_INTERVAL" jdbcType="DECIMAL" property="sessionMaxInactiveInterval" />
    <result column="SESSION_DESTORYED_TIME" jdbcType="TIMESTAMP" property="sessionDestoryedTime" />
    <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <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 close=")" collection="criterion.value" item="listItem" open="(" 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 Fri Jan 15 16:04:44 CST 2016.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <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 close=")" collection="criterion.value" item="listItem" open="(" 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 Fri Jan 15 16:04:44 CST 2016.
    -->
    SESSION_ID, SESSION_CREATE_DATE, SESSION_LAST_ACCESSED_TIME, SESSION_MAX_INACTIVE_INTERVAL, 
    SESSION_DESTORYED_TIME, CREATE_DATE
  </sql>
  <select id="selectByExample" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHisCriteria" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from TT_ONLINE_SESSION_HIS
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    select 
    <include refid="Base_Column_List" />
    from TT_ONLINE_SESSION_HIS
    where SESSION_ID = #{sessionId,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 Fri Jan 15 16:04:44 CST 2016.
    -->
    delete from TT_ONLINE_SESSION_HIS
    where SESSION_ID = #{sessionId,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHisCriteria">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    delete from TT_ONLINE_SESSION_HIS
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHis">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    insert into TT_ONLINE_SESSION_HIS (SESSION_ID, SESSION_CREATE_DATE, SESSION_LAST_ACCESSED_TIME, 
      SESSION_MAX_INACTIVE_INTERVAL, SESSION_DESTORYED_TIME, 
      CREATE_DATE)
    values (#{sessionId,jdbcType=VARCHAR}, #{sessionCreateDate,jdbcType=DECIMAL}, #{sessionLastAccessedTime,jdbcType=DECIMAL}, 
      #{sessionMaxInactiveInterval,jdbcType=DECIMAL}, #{sessionDestoryedTime,jdbcType=TIMESTAMP}, 
      #{createDate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHis">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    insert into TT_ONLINE_SESSION_HIS
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="sessionId != null">
        SESSION_ID,
      </if>
      <if test="sessionCreateDate != null">
        SESSION_CREATE_DATE,
      </if>
      <if test="sessionLastAccessedTime != null">
        SESSION_LAST_ACCESSED_TIME,
      </if>
      <if test="sessionMaxInactiveInterval != null">
        SESSION_MAX_INACTIVE_INTERVAL,
      </if>
      <if test="sessionDestoryedTime != null">
        SESSION_DESTORYED_TIME,
      </if>
      <if test="createDate != null">
        CREATE_DATE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="sessionId != null">
        #{sessionId,jdbcType=VARCHAR},
      </if>
      <if test="sessionCreateDate != null">
        #{sessionCreateDate,jdbcType=DECIMAL},
      </if>
      <if test="sessionLastAccessedTime != null">
        #{sessionLastAccessedTime,jdbcType=DECIMAL},
      </if>
      <if test="sessionMaxInactiveInterval != null">
        #{sessionMaxInactiveInterval,jdbcType=DECIMAL},
      </if>
      <if test="sessionDestoryedTime != null">
        #{sessionDestoryedTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        #{createDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHisCriteria" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    select count(*) from TT_ONLINE_SESSION_HIS
    <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 Fri Jan 15 16:04:44 CST 2016.
    -->
    update TT_ONLINE_SESSION_HIS
    <set>
      <if test="record.sessionId != null">
        SESSION_ID = #{record.sessionId,jdbcType=VARCHAR},
      </if>
      <if test="record.sessionCreateDate != null">
        SESSION_CREATE_DATE = #{record.sessionCreateDate,jdbcType=DECIMAL},
      </if>
      <if test="record.sessionLastAccessedTime != null">
        SESSION_LAST_ACCESSED_TIME = #{record.sessionLastAccessedTime,jdbcType=DECIMAL},
      </if>
      <if test="record.sessionMaxInactiveInterval != null">
        SESSION_MAX_INACTIVE_INTERVAL = #{record.sessionMaxInactiveInterval,jdbcType=DECIMAL},
      </if>
      <if test="record.sessionDestoryedTime != null">
        SESSION_DESTORYED_TIME = #{record.sessionDestoryedTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createDate != null">
        CREATE_DATE = #{record.createDate,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 Fri Jan 15 16:04:44 CST 2016.
    -->
    update TT_ONLINE_SESSION_HIS
    set SESSION_ID = #{record.sessionId,jdbcType=VARCHAR},
      SESSION_CREATE_DATE = #{record.sessionCreateDate,jdbcType=DECIMAL},
      SESSION_LAST_ACCESSED_TIME = #{record.sessionLastAccessedTime,jdbcType=DECIMAL},
      SESSION_MAX_INACTIVE_INTERVAL = #{record.sessionMaxInactiveInterval,jdbcType=DECIMAL},
      SESSION_DESTORYED_TIME = #{record.sessionDestoryedTime,jdbcType=TIMESTAMP},
      CREATE_DATE = #{record.createDate,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.TtOnlineSessionHis">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    update TT_ONLINE_SESSION_HIS
    <set>
      <if test="sessionCreateDate != null">
        SESSION_CREATE_DATE = #{sessionCreateDate,jdbcType=DECIMAL},
      </if>
      <if test="sessionLastAccessedTime != null">
        SESSION_LAST_ACCESSED_TIME = #{sessionLastAccessedTime,jdbcType=DECIMAL},
      </if>
      <if test="sessionMaxInactiveInterval != null">
        SESSION_MAX_INACTIVE_INTERVAL = #{sessionMaxInactiveInterval,jdbcType=DECIMAL},
      </if>
      <if test="sessionDestoryedTime != null">
        SESSION_DESTORYED_TIME = #{sessionDestoryedTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where SESSION_ID = #{sessionId,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.llsfw.generator.model.standard.system.TtOnlineSessionHis">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Fri Jan 15 16:04:44 CST 2016.
    -->
    update TT_ONLINE_SESSION_HIS
    set SESSION_CREATE_DATE = #{sessionCreateDate,jdbcType=DECIMAL},
      SESSION_LAST_ACCESSED_TIME = #{sessionLastAccessedTime,jdbcType=DECIMAL},
      SESSION_MAX_INACTIVE_INTERVAL = #{sessionMaxInactiveInterval,jdbcType=DECIMAL},
      SESSION_DESTORYED_TIME = #{sessionDestoryedTime,jdbcType=TIMESTAMP},
      CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}
    where SESSION_ID = #{sessionId,jdbcType=VARCHAR}
  </update>
</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy