本文整理了Java中org.hswebframework.ezorm.core.dsl.Query.noPaging
方法的一些代码示例,展示了Query.noPaging
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.noPaging
方法的具体详情如下:
包路径:org.hswebframework.ezorm.core.dsl.Query
类名称:Query
方法名:noPaging
暂无
代码示例来源:origin: hs-web/hsweb-framework
@Override
public List<RoleEntity> getUserRole(String userId) {
Assert.hasLength(userId, "参数不能为空");
List<UserRoleEntity> roleEntities = userRoleDao.selectByUserId(userId);
if (roleEntities.isEmpty()) {
return new ArrayList<>();
}
List<String> roleIdList = roleEntities.stream().map(UserRoleEntity::getRoleId).collect(Collectors.toList());
return DefaultDSLQueryService
.createQuery(roleDao).where()
.in(GenericEntity.id, roleIdList)
.noPaging()
.list();
}
代码示例来源:origin: hs-web/hsweb-framework
@Override
default List<E> select() {
return createQuery().noPaging().list();
}
代码示例来源:origin: hs-web/hsweb-framework
/**
* 创建本服务的dsl查询操作对象
* 可通过返回的Query对象进行dsl方式操作如:<br>
* <code>
* createQuery().where("id",1).single();
* </code>
*
* @return {@link Query}
* @see Query
* @see org.hswebframework.ezorm.core.Conditional
* @since 3.0
*/
default Query<E, QueryParamEntity> createQuery() {
Query<E, QueryParamEntity> query = Query.empty(new QueryParamEntity());
query.setListExecutor(this::select);
query.setTotalExecutor(this::count);
query.setSingleExecutor(this::selectSingle);
query.noPaging();
return query;
}
代码示例来源:origin: hs-web/hsweb-framework
query.noPaging();
return query;
代码示例来源:origin: hs-web/hsweb-easy-orm
public QueryFromBean<T, Q, B> noPaging() {
proxy.noPaging();
return this;
}
代码示例来源:origin: hs-web/hsweb-easy-orm
public List<T> listNoPaging() {
return noPaging().list();
}
代码示例来源:origin: hs-web/hsweb-easy-orm
public <R> List<R> list(Query.ListExecutor<R, Q> executor) {
return proxy.noPaging().list(executor);
}
代码示例来源:origin: hs-web/hsweb-easy-orm
public List<T> listNoPaging() {
return proxy.noPaging().list();
}
代码示例来源:origin: org.hswebframework.web/hsweb-commons-service-simple
@Override
default List<E> select() {
return createQuery().noPaging().list();
}
代码示例来源:origin: org.hswebframework.web/hsweb-commons-service-simple
/**
* 创建本服务的dsl查询操作对象
* 可通过返回的Query对象进行dsl方式操作如:<br>
* <code>
* createQuery().where("id",1).single();
* </code>
*
* @return {@link Query}
* @see Query
* @see org.hswebframework.ezorm.core.Conditional
* @since 3.0
*/
default Query<E, QueryParamEntity> createQuery() {
Query<E, QueryParamEntity> query = Query.empty(new QueryParamEntity());
query.setListExecutor(this::select);
query.setTotalExecutor(this::count);
query.setSingleExecutor(this::selectSingle);
query.noPaging();
return query;
}
代码示例来源:origin: org.hswebframework.web/hsweb-commons-service-simple
query.noPaging();
return query;
内容来源于网络,如有侵权,请联系作者删除!