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

mboog.support.mapper.WriteMapper Maven / Gradle / Ivy

package mboog.support.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @param  PrimaryKey
 * @param       Model
 * @param     Example
 * @author LiYi
 */
public interface WriteMapper
        extends BaseMapper {

    int deleteByExample(Example example);

    int deleteByPrimaryKey(PrimaryKey id);

    int insert(Model record);

    int insertSelective(Model record);

    int updateByExampleSelective(@Param("record") Model record, @Param("example") Example example);

    int updateByExample(@Param("record") Model record, @Param("example") Example example);

    int updateByPrimaryKeySelective(Model record);

    int updateByPrimaryKey(Model record);

    int batchInsert(List records);

    int batchInsertSelective(List records);

    int updateByPrimaryKeyWithOptimisticLock(Model record);

    int updateByPrimaryKeySelectiveWithOptimisticLock(Model record);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy