本文整理了Java中org.apache.metamodel.query.Query.getHavingClause
方法的一些代码示例,展示了Query.getHavingClause
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getHavingClause
方法的具体详情如下:
包路径:org.apache.metamodel.query.Query
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!