public interface DefaultQueryByEntityService<E> extends QueryByEntityService<E>
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
count(Entity param)
查询记录总数,用于分页等操作。
|
QueryByEntityDao<E> |
getDao() |
default List<E> |
select(Entity param)
根据查询参数进行查询,参数可使用
Query进行构建 |
default PagerResult<E> |
selectPager(Entity param)
分页进行查询数据,查询条件同
select(org.hswebframework.web.commons.entity.Entity) |
default E |
selectSingle(Entity param)
查询只返回单个结果,如果有多个结果,只返回第一个
|
QueryByEntityDao<E> getDao()
default PagerResult<E> selectPager(Entity param)
select(org.hswebframework.web.commons.entity.Entity)selectPager 在接口中 QueryByEntityService<E>param - 查询参数QueryParamEntity,
QueryParamEntity.newQuery()@Transactional(readOnly=true) default List<E> select(Entity param)
Query进行构建select 在接口中 QueryByEntityService<E>param - 查询参数QueryParamEntity,
QueryParamEntity.newQuery()@Transactional(readOnly=true) default int count(Entity param)
select(org.hswebframework.web.commons.entity.Entity)count 在接口中 QueryByEntityService<E>param - 查询参数QueryParamEntity,
QueryParamEntity.newQuery()@Transactional(readOnly=true) default E selectSingle(Entity param)
selectSingle 在接口中 QueryByEntityService<E>param - 查询条件QueryParamEntity,
QueryParamEntity.newQuery()Copyright © 2016–2019. All rights reserved.