接口 IService<T>
- 所有超级接口:
com.baomidou.mybatisplus.extension.repository.IRepository<T>
- 所有已知实现类:
ServiceImpl
public interface IService<T>
extends com.baomidou.mybatisplus.extension.repository.IRepository<T>
顶级 Service
- 从以下版本开始:
- 2018-06-23
- 作者:
- hubin
-
字段概要
从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
方法概要
修饰符和类型方法说明default booleanremoveBatchByIds(Collection<?> list) 批量删除(jdbc批量提交)default booleansaveBatch(Collection<T> entityList) 插入(批量)default booleansaveOrUpdateBatch(Collection<T> entityList) 批量修改插入default booleanupdateBatchById(Collection<T> entityList) 根据ID 批量更新从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, 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
-
方法详细资料
-
saveBatch
@Transactional(rollbackFor=java.lang.Exception.class) default boolean saveBatch(Collection<T> entityList) 插入(批量)- 参数:
entityList- 实体对象集合
-
saveOrUpdateBatch
@Transactional(rollbackFor=java.lang.Exception.class) default boolean saveOrUpdateBatch(Collection<T> entityList) 批量修改插入- 参数:
entityList- 实体对象集合
-
removeBatchByIds
@Transactional(rollbackFor=java.lang.Exception.class) default boolean removeBatchByIds(Collection<?> list) 批量删除(jdbc批量提交)- 参数:
list- 主键ID或实体列表(主键ID类型必须与实体类型字段保持一致)- 返回:
- 删除结果
- 从以下版本开始:
- 3.5.0
-
updateBatchById
@Transactional(rollbackFor=java.lang.Exception.class) default boolean updateBatchById(Collection<T> entityList) 根据ID 批量更新- 参数:
entityList- 实体对象集合
-