dk.eobjects.metamodel.query.Query.getOrderByClause()方法的使用及代码示例

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

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

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();

相关文章