org.hswebframework.ezorm.core.dsl.Query.noPaging()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中org.hswebframework.ezorm.core.dsl.Query.noPaging方法的一些代码示例,展示了Query.noPaging的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.noPaging方法的具体详情如下:
包路径:org.hswebframework.ezorm.core.dsl.Query
类名称:Query
方法名:noPaging

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;

相关文章