本文整理了Java中dk.eobjects.metamodel.query.Query.getOrderByClause
方法的一些代码示例,展示了Query.getOrderByClause
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getOrderByClause
方法的具体详情如下:
包路径:dk.eobjects.metamodel.query.Query
类名称:Query
方法名:getOrderByClause
暂无
代码示例来源:origin: dk.eobjects.commons/MetaModel
public static boolean isSplittable(Query q) {
if (q.getOrderByClause().getItemCount() != 0) {
return false;
}
return true;
}
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-jdbc
public static boolean isSplittable(Query q) {
if (q.getOrderByClause().getItemCount() != 0) {
return false;
}
return true;
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof Query) {
Query that = (Query) obj;
EqualsBuilder eb = new EqualsBuilder();
eb.append(this.getMaxRows(), that.getMaxRows());
eb.append(this.getSelectClause(), that.getSelectClause());
eb.append(this.getFromClause(), that.getFromClause());
eb.append(this.getWhereClause(), that.getWhereClause());
eb.append(this.getGroupByClause(), that.getGroupByClause());
eb.append(this.getHavingClause(), that.getHavingClause());
eb.append(this.getOrderByClause(), that.getOrderByClause());
return eb.isEquals();
}
return false;
}
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-jdbc
public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
query = beforeRewrite(strategy, query);
StringBuilder sb = new StringBuilder();
sb
.append(rewriteSelectClause(strategy, query, query
.getSelectClause()));
sb.append(rewriteFromClause(strategy, query, query.getFromClause()));
sb.append(rewriteWhereClause(strategy, query, query.getWhereClause()));
sb.append(rewriteGroupByClause(strategy, query, query
.getGroupByClause()));
sb
.append(rewriteHavingClause(strategy, query, query
.getHavingClause()));
sb.append(rewriteOrderByClause(strategy, query, query
.getOrderByClause()));
return sb.toString();
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
query = beforeRewrite(strategy, query);
StringBuilder sb = new StringBuilder();
sb
.append(rewriteSelectClause(strategy, query, query
.getSelectClause()));
sb.append(rewriteFromClause(strategy, query, query.getFromClause()));
sb.append(rewriteWhereClause(strategy, query, query.getWhereClause()));
sb.append(rewriteGroupByClause(strategy, query, query
.getGroupByClause()));
sb
.append(rewriteHavingClause(strategy, query, query
.getHavingClause()));
sb.append(rewriteOrderByClause(strategy, query, query
.getOrderByClause()));
return sb.toString();
}
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-jdbc
/**
* Determines if a query is of a complex type which may be error-prone to
* execute on some databases and therefore should be tried to execute with a
* query postprocessing strategy
*/
private boolean isComplexQuery(Query q) {
if (q.getWhereClause().getItemCount() > 0) {
return true;
}
if (q.getGroupByClause().getItemCount() > 0) {
return true;
}
if (q.getHavingClause().getItemCount() > 0) {
return true;
}
if (q.getOrderByClause().getItemCount() > 0) {
return true;
}
return false;
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
/**
* Determines if a query is of a complex type which may be error-prone to
* execute on some databases and therefore should be tried to execute with a
* query postprocessing strategy
*/
private boolean isComplexQuery(Query q) {
if (q.getWhereClause().getItemCount() > 0) {
return true;
}
if (q.getGroupByClause().getItemCount() > 0) {
return true;
}
if (q.getHavingClause().getItemCount() > 0) {
return true;
}
if (q.getOrderByClause().getItemCount() > 0) {
return true;
}
return false;
}
代码示例来源:origin: dk.eobjects.commons/MetaModel
.getEvaluatedSelectItems();
List<FilterItem> havingItems = query.getHavingClause().getItems();
List<OrderByItem> orderByItems = query.getOrderByClause().getItems();
代码示例来源:origin: dk.eobjects.metamodel/MetaModel-querypostprocessor
.getEvaluatedSelectItems();
List<FilterItem> havingItems = query.getHavingClause().getItems();
List<OrderByItem> orderByItems = query.getOrderByClause().getItems();
内容来源于网络,如有侵权,请联系作者删除!