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

com.gitee.sunchenbin.mybatis.actable.dao.common.BaseMysqlCRUDMapper Maven / Gradle / Ivy

Go to download

A.CTable is a Maven project based on Spring and Mybatis, which enhances the function of Mybatis

There is a newer version: 1.5.0.RELEASE
Show newest version
package com.gitee.sunchenbin.mybatis.actable.dao.common;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import com.gitee.sunchenbin.mybatis.actable.command.SaveOrUpdateDataCommand;


/**
 * 已经废弃请勿使用有bug
 * @author sunchenbin
 *
 */
@Transactional
@Deprecated
public interface BaseMysqlCRUDMapper {

	/**
	 * 保存
	 * @param saveOrUpdateDataCommand id+表结构的map
	 */
	public void save(SaveOrUpdateDataCommand saveOrUpdateDataCommand);
	
	/**
	 * 更新
	 * @param saveOrUpdateDataCommand id+表结构的map
	 */
	public void update(SaveOrUpdateDataCommand saveOrUpdateDataCommand);
	
	/**
	 * 删除
	 * @param tableMap 表结构的map
	 */
	public void delete(@Param("tableMap") Map> tableMap);
	
	/**
	 * 查询
	 * @param tableMap 表结构的map
	 */
	public List> search(@Param("tableMap") Map tableMap);

	/**
	 * 查询的count
	 * @param tableMap 表结构的map
	 */
	public int searchCount(@Param("tableMap") Map tableMap);
	
	/**
	 * 查询
	 * @param value 动态sql
	 */
	public List> query(String value);

    /**
     * 更新,可以更新null
     * @param saveOrUpdateDataCommand
     */
    public void updateWithNull(SaveOrUpdateDataCommand saveOrUpdateDataCommand);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy