本文整理了Java中org.apache.metamodel.query.Query.getOrderByClause
方法的一些代码示例,展示了Query.getOrderByClause
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getOrderByClause
方法的具体详情如下:
包路径:org.apache.metamodel.query.Query
类名称:Query
方法名:getOrderByClause
暂无
代码示例来源:origin: apache/metamodel
public static boolean isSplittable(Query q) {
if (q.getOrderByClause().getItemCount() != 0) {
return false;
}
return true;
}
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
public static boolean isSplittable(Query q) {
if (q.getOrderByClause().getItemCount() != 0) {
return false;
}
return true;
}
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
@Override
public boolean isFirstRowSupported(final Query query) {
return isSupportedVersion(_databaseProductName, _databaseSupportedVersion) && !query.getOrderByClause()
.isEmpty();
}
代码示例来源:origin: apache/metamodel
@Override
public boolean isFirstRowSupported(final Query query) {
return isSupportedVersion(_databaseProductName, _databaseSupportedVersion) && !query.getOrderByClause()
.isEmpty();
}
代码示例来源: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
final List<OrderByItem> items = query.getOrderByClause().getItems();
for (OrderByItem orderByItem : items) {
if (i == 0) {
代码示例来源:origin: apache/metamodel
final List<OrderByItem> items = query.getOrderByClause().getItems();
for (OrderByItem orderByItem : items) {
if (i == 0) {
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
final boolean hasOrderBy = !query.getOrderByClause().isEmpty();
String queryString = super.rewriteQuery(query);
代码示例来源:origin: apache/metamodel
final boolean hasOrderBy = !query.getOrderByClause().isEmpty();
String queryString = super.rewriteQuery(query);
代码示例来源:origin: org.apache.metamodel/MetaModel-core
if (!getScalarFunctionSelectItems(query.getOrderByClause().getEvaluatedSelectItems()).isEmpty()) {
return true;
代码示例来源:origin: apache/metamodel
if (!getScalarFunctionSelectItems(query.getOrderByClause().getEvaluatedSelectItems()).isEmpty()) {
return true;
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
final String rewrittenOrderByClause = rewriteOrderByClause(innerQuery, innerQuery.getOrderByClause());
final String rowOver = "ROW_NUMBER() " + "OVER(" + rewrittenOrderByClause + ")";
innerQuery.select(new SelectItem(rowOver, "metamodel_row_number"));
innerQuery.getOrderByClause().removeItems();
代码示例来源:origin: apache/metamodel
final String rewrittenOrderByClause = rewriteOrderByClause(innerQuery, innerQuery.getOrderByClause());
final String rowOver = "ROW_NUMBER() " + "OVER(" + rewrittenOrderByClause + ")";
innerQuery.select(new SelectItem(rowOver, "metamodel_row_number"));
innerQuery.getOrderByClause().removeItems();
代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-core
countQuery.setFirstRow(null);
countQuery.getSelectClause().removeItems();
countQuery.getOrderByClause().removeItems();
countQuery.selectCount();
countQuery.getSelectClause().getItem(0).setFunctionApproximationAllowed(true);
代码示例来源:origin: org.apache.metamodel/MetaModel-mongodb-mongo3
&& query.getOrderByClause().isEmpty()) {
代码示例来源:origin: org.apache.metamodel/MetaModel-mongodb-mongo2
&& query.getOrderByClause().isEmpty()) {
代码示例来源:origin: apache/metamodel
&& query.getOrderByClause().isEmpty()) {
代码示例来源:origin: apache/metamodel
&& query.getOrderByClause().isEmpty()) {
代码示例来源:origin: datacleaner/DataCleaner
countQuery.setFirstRow(null);
countQuery.getSelectClause().removeItems();
countQuery.getOrderByClause().removeItems();
countQuery.selectCount();
countQuery.getSelectClause().getItem(0).setFunctionApproximationAllowed(true);
内容来源于网络,如有侵权,请联系作者删除!