类 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>
- 类型参数:
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>
基础管理控制器实现.
- 作者:
- guer
-
字段概要
从类继承的字段 net.guerlab.cloud.web.provider.BaseQueryController
api -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidbeforeDelete(Q searchParams) 删除前置处理.protected voidbeforeDeleteCheck(E entity) 删除前置检查.protected voidbeforeInsertCheck(E entity) 保存前置检查.protected voidbeforeUpdateCheck(E entity) 更新前置检查.voidvoiddeleteById(Long id) updateById(E entity) 从类继承的方法 net.guerlab.cloud.web.provider.BaseQueryController
afterFind, beforeFind, convert, entityCheck, nullPointException, selectById, selectCount, selectList, selectOne, selectPage
-
构造器详细资料
-
BaseManageController
根据api实例创建控制器.- 参数:
api- api实例
-
-
方法详细资料
-
insert
-
beforeInsertCheck
保存前置检查.- 参数:
entity- 实体
-
updateById
-
beforeUpdateCheck
更新前置检查.- 参数:
entity- 实体
-
deleteById
-
beforeDeleteCheck
删除前置检查.- 参数:
entity- 实体
-
delete
-
beforeDelete
删除前置处理.- 参数:
searchParams- 查询对象
-