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

net.wicp.tams.cas.dao.SysGlobalMapper Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package net.wicp.tams.cas.dao;

import java.util.List;
import net.wicp.tams.cas.bean.models.SysGlobal;
import net.wicp.tams.cas.bean.models.SysGlobalExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface SysGlobalMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	long countByExample(SysGlobalExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	int deleteByExample(SysGlobalExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	@Delete({ "delete from sys_global", "where id = #{id,jdbcType=BIGINT}" })
	int deleteByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	@Insert({ "insert into sys_global (id, config_globle, ", "last_username, last_updatetime)",
			"values (#{id,jdbcType=BIGINT}, #{configGloble,jdbcType=VARCHAR}, ",
			"#{lastUsername,jdbcType=VARCHAR}, #{lastUpdatetime,jdbcType=TIMESTAMP})" })
	int insert(SysGlobal record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	int insertSelective(SysGlobal record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	List selectByExample(SysGlobalExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	@Select({ "select", "id, config_globle, last_username, last_updatetime", "from sys_global",
			"where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysGlobalMapper.BaseResultMap")
	SysGlobal selectByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	int updateByExampleSelective(@Param("record") SysGlobal record, @Param("example") SysGlobalExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	int updateByExample(@Param("record") SysGlobal record, @Param("example") SysGlobalExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	int updateByPrimaryKeySelective(SysGlobal record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_global
	 * 
	 */
	@Update({ "update sys_global", "set config_globle = #{configGloble,jdbcType=VARCHAR},",
			"last_username = #{lastUsername,jdbcType=VARCHAR},",
			"last_updatetime = #{lastUpdatetime,jdbcType=TIMESTAMP}", "where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysGlobal record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy