接口 SuperManager<T>

类型参数:
T - 实体
所有超级接口:
com.baomidou.mybatisplus.extension.repository.IRepository<T>, com.baomidou.mybatisplus.extension.service.IService<T>
所有已知子接口:
SuperCacheManager<T>
所有已知实现类:
SuperCacheManagerImpl, SuperManagerImpl

public interface SuperManager<T> extends com.baomidou.mybatisplus.extension.service.IService<T>
基于MP的 IService 新增了2个方法: saveBatchSomeColumn、updateAllById 其中: 1,updateAllById 执行后,会清除缓存 2,saveBatchSomeColumn 批量插入
作者:
zuihou
  • 字段概要

    从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    获取实体的类型
    default boolean
    saveBatchSomeColumn(List<T> entityList)
    批量保存数据
    boolean
    updateAllById(T entity)
    根据id修改 entity 的所有字段

    从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository

    count, count, exists, getBaseMapper, getById, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById

    从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService

    removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
  • 方法详细资料

    • getEntityClass

      Class<T> getEntityClass()
      获取实体的类型
      指定者:
      getEntityClass 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      返回:
    • saveBatchSomeColumn

      default boolean saveBatchSomeColumn(List<T> entityList)
      批量保存数据

      注意:该方法仅仅测试过mysql

      参数:
      entityList -
      返回:
    • updateAllById

      boolean updateAllById(T entity)
      根据id修改 entity 的所有字段
      参数:
      entity -
      返回: