org.apache.metamodel.query.Query.getHavingClause()方法的使用及代码示例

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

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

Query.getHavingClause介绍

暂无

代码示例

代码示例来源:origin: apache/metamodel

@Override
protected SatisfiedHavingBuilder applyFilter(FilterItem filter) {
  if (_parentOrFilter == null) {
    _query.having(filter);
  } else {
    if (_parentOrFilter.getChildItemCount() == 1) {
      _query.getHavingClause().removeItem(_orFilters.get(0));
      _query.getHavingClause().addItem(_parentOrFilter);
    }
  }
  _orFilters.add(filter);
  return this;
}

代码示例来源:origin: org.apache.metamodel/MetaModel-core

@Override
protected SatisfiedHavingBuilder applyFilter(FilterItem filter) {
  if (_parentOrFilter == null) {
    _query.having(filter);
  } else {
    if (_parentOrFilter.getChildItemCount() == 1) {
      _query.getHavingClause().removeItem(_orFilters.get(0));
      _query.getHavingClause().addItem(_parentOrFilter);
    }
  }
  _orFilters.add(filter);
  return this;
}

代码示例来源:origin: apache/metamodel

public String rewriteQuery(Query query) {
  query = beforeRewrite(query);
  final StringBuilder sb = new StringBuilder();
  sb.append(rewriteSelectClause(query, query.getSelectClause()));
  sb.append(rewriteFromClause(query, query.getFromClause()));
  sb.append(rewriteWhereClause(query, query.getWhereClause()));
  sb.append(rewriteGroupByClause(query, query.getGroupByClause()));
  sb.append(rewriteHavingClause(query, query.getHavingClause()));
  sb.append(rewriteOrderByClause(query, query.getOrderByClause()));
  return sb.toString();
}

代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc

public String rewriteQuery(Query query) {
  query = beforeRewrite(query);
  final StringBuilder sb = new StringBuilder();
  sb.append(rewriteSelectClause(query, query.getSelectClause()));
  sb.append(rewriteFromClause(query, query.getFromClause()));
  sb.append(rewriteWhereClause(query, query.getWhereClause()));
  sb.append(rewriteGroupByClause(query, query.getGroupByClause()));
  sb.append(rewriteHavingClause(query, query.getHavingClause()));
  sb.append(rewriteOrderByClause(query, query.getOrderByClause()));
  return sb.toString();
}

代码示例来源:origin: org.apache.metamodel/MetaModel-salesforce

if (!query.getHavingClause().isEmpty()) {
  return super.executeQuery(query);

代码示例来源:origin: apache/metamodel

if (!query.getHavingClause().isEmpty()) {
  return super.executeQuery(query);

代码示例来源:origin: org.apache.metamodel/MetaModel-core

if (!getScalarFunctionSelectItems(query.getHavingClause().getEvaluatedSelectItems()).isEmpty()) {
  return true;

代码示例来源:origin: apache/metamodel

if (!getScalarFunctionSelectItems(query.getHavingClause().getEvaluatedSelectItems()).isEmpty()) {
  return true;

代码示例来源:origin: org.apache.metamodel/MetaModel-mongodb-mongo3

if (query.getGroupByClause().isEmpty() && query.getHavingClause().isEmpty()
    && query.getOrderByClause().isEmpty()) {

代码示例来源:origin: org.apache.metamodel/MetaModel-mongodb-mongo2

if (query.getGroupByClause().isEmpty() && query.getHavingClause().isEmpty()
    && query.getOrderByClause().isEmpty()) {

代码示例来源:origin: apache/metamodel

if (query.getGroupByClause().isEmpty() && query.getHavingClause().isEmpty()
    && query.getOrderByClause().isEmpty()) {

代码示例来源:origin: apache/metamodel

if (query.getGroupByClause().isEmpty() && query.getHavingClause().isEmpty()
    && query.getOrderByClause().isEmpty()) {

代码示例来源:origin: org.apache.metamodel/MetaModel-core

final List<GroupByItem> groupByItems = query.getGroupByClause().getItems();
final List<SelectItem> groupBySelectItems = query.getGroupByClause().getEvaluatedSelectItems();
final List<SelectItem> havingSelectItems = query.getHavingClause().getEvaluatedSelectItems();
final List<SelectItem> orderBySelectItems = query.getOrderByClause().getEvaluatedSelectItems();
final List<FilterItem> havingItems = query.getHavingClause().getItems();
final List<OrderByItem> orderByItems = query.getOrderByClause().getItems();

代码示例来源:origin: apache/metamodel

final List<GroupByItem> groupByItems = query.getGroupByClause().getItems();
final List<SelectItem> groupBySelectItems = query.getGroupByClause().getEvaluatedSelectItems();
final List<SelectItem> havingSelectItems = query.getHavingClause().getEvaluatedSelectItems();
final List<SelectItem> orderBySelectItems = query.getOrderByClause().getEvaluatedSelectItems();
final List<FilterItem> havingItems = query.getHavingClause().getItems();
final List<OrderByItem> orderByItems = query.getOrderByClause().getItems();

相关文章