接口 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 booleansaveBatchSomeColumn(List<T> entityList) 批量保存数据booleanupdateAllById(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
获取实体的类型- 指定者:
getEntityClass在接口中com.baomidou.mybatisplus.extension.repository.IRepository<T>- 返回:
-
saveBatchSomeColumn
批量保存数据注意:该方法仅仅测试过mysql
- 参数:
entityList-- 返回:
-
updateAllById
根据id修改 entity 的所有字段- 参数:
entity-- 返回:
-