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

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

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

Query.select介绍

暂无

代码示例

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

@Override
@Caching(evict = {
    @CacheEvict(value = "dyn-form-deploy", allEntries = true),
    @CacheEvict(value = "dyn-form", allEntries = true),
})
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public void deployAllFromLog() {
  List<String> tags = new ArrayList<>(Arrays.asList(this.tags));
  if (loadOnlyTags != null) {
    tags.addAll(Arrays.asList(loadOnlyTags));
  }
  List<DynamicFormEntity> entities = createQuery()
      .select(DynamicFormEntity.id)
      .where(DynamicFormEntity.deployed, true)
      .and()
      .in(DynamicFormEntity.tags, tags)
      .listNoPaging();
  if (logger.isDebugEnabled()) {
    logger.debug("do deploy all form , size:{}", entities.size());
  }
  for (DynamicFormEntity form : entities) {
    DynamicFormDeployLogEntity logEntity = dynamicFormDeployLogService.selectLastDeployed(form.getId());
    if (null != logEntity) {
      deployFromLog(logEntity);
    }
  }
}

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

@Override
@Caching(evict = {
    @CacheEvict(value = "dyn-form-deploy", allEntries = true),
    @CacheEvict(value = "dyn-form", allEntries = true),
})
public void deployAll() {
  createQuery()
      .select(DynamicFormEntity.id)
      .listNoPaging()
      .forEach(form -> this.deploy(form.getId()));
}

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

public QueryFromBean<T, Q, B> select(String... columns) {
  proxy.select(columns);
  return this;
}

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

@SafeVarargs
public final <B> Query<T, Q> select(StaticMethodReferenceColumn<B>... columns) {
  return select(Arrays.stream(columns).map(StaticMethodReferenceColumn::getColumn).toArray(String[]::new));
}

代码示例来源:origin: org.hswebframework.web/hsweb-system-dynamic-form-local

@Override
@Caching(evict = {
    @CacheEvict(value = "dyn-form-deploy", allEntries = true),
    @CacheEvict(value = "dyn-form", allEntries = true),
})
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public void deployAllFromLog() {
  List<String> tags = new ArrayList<>(Arrays.asList(this.tags));
  if (loadOnlyTags != null) {
    tags.addAll(Arrays.asList(loadOnlyTags));
  }
  List<DynamicFormEntity> entities = createQuery()
      .select(DynamicFormEntity.id)
      .where(DynamicFormEntity.deployed, true)
      .and()
      .in(DynamicFormEntity.tags, tags)
      .listNoPaging();
  if (logger.isDebugEnabled()) {
    logger.debug("do deploy all form , size:{}", entities.size());
  }
  for (DynamicFormEntity form : entities) {
    DynamicFormDeployLogEntity logEntity = dynamicFormDeployLogService.selectLastDeployed(form.getId());
    if (null != logEntity) {
      deployFromLog(logEntity);
    }
  }
}

代码示例来源:origin: org.hswebframework.web/hsweb-system-dynamic-form-local

@Override
@Caching(evict = {
    @CacheEvict(value = "dyn-form-deploy", allEntries = true),
    @CacheEvict(value = "dyn-form", allEntries = true),
})
public void deployAll() {
  createQuery()
      .select(DynamicFormEntity.id)
      .listNoPaging()
      .forEach(form -> this.deploy(form.getId()));
}

相关文章