类 BaseQueryController<E,SP extends net.guerlab.cloud.searchparams.SearchParams,A extends net.guerlab.cloud.commons.api.QueryApi<E,SP>,V>
java.lang.Object
net.guerlab.cloud.web.provider.BaseQueryController<E,SP,A,V>
- 类型参数:
E- 实体类型SP- 搜索参数类型A- api接口类型V- 返回对象类型
- 直接已知子类:
BaseManageController
public abstract class BaseQueryController<E,SP extends net.guerlab.cloud.searchparams.SearchParams,A extends net.guerlab.cloud.commons.api.QueryApi<E,SP>,V>
extends Object
基础查询控制器实现.
- 作者:
- guer
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidafterFind(Collection<V> list, SP searchParams) 查询后置焕然.protected voidbeforeFind(SP searchParams) 查询前置环绕.protected abstract V实体对象转换为输出对象.protected RuntimeException当对象为空的时候抛出的异常.selectById(Long id, SP searchParams) longselectCount(SP searchParams) selectList(SP searchParams) net.guerlab.cloud.core.result.Pageable<V>selectPage(SP searchParams, int pageId, int pageSize)
-
字段详细资料
-
api
api.
-
-
构造器详细资料
-
BaseQueryController
根据api实例创建控制器.- 参数:
api- api实例
-
-
方法详细资料
-
convert
实体对象转换为输出对象.- 参数:
entity- 实体对象- 返回:
- 输出对象
-
selectById
-
selectOne
-
nullPointException
当对象为空的时候抛出的异常.- 返回:
- 当对象为空的时候抛出的异常
-
selectList
-
selectPage
-
selectCount
-
beforeFind
查询前置环绕.- 参数:
searchParams- 搜索参数
-
afterFind
查询后置焕然.- 参数:
list- 结果列表searchParams- 搜索参数
-