Java BaseMapper示例

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类BaseMapper的描述: 基础的mapper类
 *
 * @author gaojian.penggj 2018/3/15 下午2:31
 */
public interface BaseMapper {

    int countByExample(DOExample example);

    int deleteByExample(DOExample example);

    int deleteByPrimaryKey(Long id);

    int insert(DO record);

    int insertSelective(DO record);

    List selectByExampleWithBLOBs(DOExample example);

    List selectByExample(DOExample example);

    DO selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") DO record, @Param("example") DOExample example);

    int updateByExampleWithBLOBs(@Param("record") DO record, @Param("example") DOExample example);

    int updateByExample(@Param("record") DO record, @Param("example") DOExample example);

    int updateByPrimaryKeySelective(DO record);

    int updateByPrimaryKeyWithBLOBs(DO record);

    int updateByPrimaryKey(DO record);
}

 

你可能感兴趣的:(Java,后端,代码示例,Java,Example,代码示例,工具)