Package net.guerlab.cloud.web.provider
Class BaseManageController<E extends net.guerlab.cloud.commons.entity.IBaseEntity,Q extends net.guerlab.cloud.searchparams.SearchParams,A extends net.guerlab.cloud.commons.api.ManageApi<E,Q>,V>
java.lang.Object
net.guerlab.cloud.web.provider.BaseQueryController<E,Q,A,V>
net.guerlab.cloud.web.provider.BaseManageController<E,Q,A,V>
- Type Parameters:
E- 实体类型Q- 搜索参数类型A- api接口类型V- 返回对象类型
public abstract class BaseManageController<E extends net.guerlab.cloud.commons.entity.IBaseEntity,Q extends net.guerlab.cloud.searchparams.SearchParams,A extends net.guerlab.cloud.commons.api.ManageApi<E,Q>,V>
extends BaseQueryController<E,Q,A,V>
基础管理控制器实现.
- Author:
- guer
-
Field Summary
Fields inherited from class net.guerlab.cloud.web.provider.BaseQueryController
api -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeDelete(Q searchParams) 删除前置处理.protected voidbeforeDeleteCheck(E entity) 删除前置检查.protected voidbeforeInsertCheck(E entity) 保存前置检查.protected voidbeforeUpdateCheck(E entity) 更新前置检查.voidvoiddeleteById(Long id) updateById(E entity) Methods inherited from class net.guerlab.cloud.web.provider.BaseQueryController
afterFind, beforeFind, convert, entityCheck, nullPointException, selectById, selectCount, selectList, selectOne, selectPage
-
Constructor Details
-
BaseManageController
根据api实例创建控制器.- Parameters:
api- api实例
-
-
Method Details
-
insert
-
beforeInsertCheck
保存前置检查.- Parameters:
entity- 实体
-
updateById
-
beforeUpdateCheck
更新前置检查.- Parameters:
entity- 实体
-
deleteById
-
beforeDeleteCheck
删除前置检查.- Parameters:
entity- 实体
-
delete
-
beforeDelete
删除前置处理.- Parameters:
searchParams- 查询对象
-