public abstract class BaseManagerImpl<T extends IModel> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<BaseMyBatisDao<T>,T> implements Manager<T>
描述:抽象实体业务管理类实现
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
BaseManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
create(T entity)
创建实体对象
|
T |
get(String entityId)
按实体ID获取实体
|
Dao<T> |
getDao() |
List<T> |
query(QueryFilter queryFilter)
查询实体对象
|
void |
remove(String entityId)
按实体ID删除对象
|
void |
removeByIds(String... ids)
按实体IDs删除记录
|
void |
setDao(Dao<T> dao) |
void |
update(T entity)
更新实体对象
|
closeSqlSession, count, currentModelClass, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, getById, getMap, getObj, getOne, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, updateBatchById, updateBatchById, updateById@Transactional(rollbackFor=cn.sexycode.springo.core.base.core.exceptions.ModelModifyException.class) public void create(T entity)
Manager@Transactional(rollbackFor=cn.sexycode.springo.core.base.core.exceptions.ModelModifyException.class) public void update(T entity)
Manager@Transactional(rollbackFor=cn.sexycode.springo.core.base.core.exceptions.ModelModifyException.class) public void remove(String entityId)
Manager@Transactional(rollbackFor=cn.sexycode.springo.core.base.core.exceptions.ModelModifyException.class) public void removeByIds(String... ids)
ManagerremoveByIds 在接口中 Manager<T extends IModel>Copyright © 2018. All rights reserved.