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

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

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

Query.empty介绍

暂无

代码示例

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @since 3.0.4
 */
public <T> Query<T, QueryParamEntity> toQuery() {
  return Query.empty(this);
}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @since 3.0.4
 */
public static <T> Query<T, QueryParamEntity> newQuery() {
  return Query.empty(new QueryParamEntity());
}

代码示例来源:origin: hs-web/hsweb-framework

public DefaultLinkedRelations(ServiceContext serviceContext, Supplier<List<String>> targetIdSupplier) {
  this.serviceContext = serviceContext;
  this.targetIdSupplier = targetIdSupplier;
  query = Query.<PersonEntity, QueryParamEntity>empty(new QueryParamEntity()).nest();
}

代码示例来源:origin: hs-web/hsweb-framework

@GetMapping("/{type}/form/{processDefineId}")
@ApiOperation("获取自己可查看的流程表单数据")
@Authorize(merge = false)
@SuppressWarnings("all")
public ResponseMessage<PagerResult<Object>> getFormData(@PathVariable Type type,
                            @PathVariable String processDefineId,
                            QueryParamEntity query,
                            Authentication authentication) {
  Query.empty(query)
      .nest()
      .when(type != null, q -> type.applyQueryTerm(q, authentication.getUser().getId()))
      .end();
  return ResponseMessage.ok(workFlowFormService.selectProcessForm(processDefineId, query));
}

代码示例来源: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: org.hswebframework.web/hsweb-system-workflow-local

@GetMapping("/{type}/form/{processDefineId}")
@ApiOperation("获取自己可查看的流程表单数据")
@Authorize(merge = false)
@SuppressWarnings("all")
public ResponseMessage<PagerResult<Object>> getFormData(@PathVariable Type type,
                            @PathVariable String processDefineId,
                            QueryParamEntity query,
                            Authentication authentication) {
  Query.empty(query)
      .nest()
      .when(type != null, q -> type.applyQueryTerm(q, authentication.getUser().getId()))
      .end();
  return ResponseMessage.ok(workFlowFormService.selectProcessForm(processDefineId, query));
}

代码示例来源: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;
}

相关文章