public abstract class SuperCacheServiceImpl<M extends SuperMapper<T>,T> extends SuperServiceImpl<M,T> implements SuperCacheService<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected GeneralCacheService |
generalCacheService |
| 构造器和说明 |
|---|
SuperCacheServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
getByIdCache(Serializable id)
查询缓存
|
protected abstract String |
getRegion()
缓存key模板
|
boolean |
removeById(Serializable id) |
boolean |
removeByIds(Collection<? extends Serializable> idList) |
boolean |
save(T model) |
void |
setGeneralCacheService(GeneralCacheService generalCacheService) |
boolean |
updateById(T model) |
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsaveBatchSomeColumncount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeByMap, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchByIdprotected GeneralCacheService generalCacheService
@Autowired public void setGeneralCacheService(GeneralCacheService generalCacheService)
protected abstract String getRegion()
public T getByIdCache(Serializable id)
SuperCacheServicegetByIdCache 在接口中 SuperCacheService<T>id - id@Transactional(rollbackFor=java.lang.Exception.class) public boolean removeById(Serializable id)
removeById 在接口中 com.baomidou.mybatisplus.extension.service.IService<T>@Transactional(rollbackFor=java.lang.Exception.class) public boolean removeByIds(Collection<? extends Serializable> idList)
removeByIds 在接口中 com.baomidou.mybatisplus.extension.service.IService<T>@Transactional(rollbackFor=java.lang.Exception.class) public boolean save(T model)
save 在接口中 com.baomidou.mybatisplus.extension.service.IService<T>save 在类中 SuperServiceImpl<M extends SuperMapper<T>,T>@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateById(T model)
updateById 在接口中 com.baomidou.mybatisplus.extension.service.IService<T>updateById 在类中 SuperServiceImpl<M extends SuperMapper<T>,T>Copyright © 2022. All rights reserved.