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

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

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

Query.getWhereClause介绍

暂无

代码示例

代码示例来源: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

public DataSet executeQuery(Query query) {
  List<SelectItem> selectItems = query.getSelectClause().getItems();
  List<FromItem> fromItems = query.getFromClause().getItems();
  List<FilterItem> whereItems = query.getWhereClause().getItems();
  List<SelectItem> whereSelectItems = query.getWhereClause()
      .getEvaluatedSelectItems();
  List<GroupByItem> groupByItems = query.getGroupByClause().getItems();

代码示例来源:origin: dk.eobjects.metamodel/MetaModel-querypostprocessor

if (query != null) {
  List<SelectItem> selectItems = collectSelectItems(query
      .getSelectClause().getItems(), query.getWhereClause()
      .getEvaluatedSelectItems(), query.getHavingClause()
      .getEvaluatedSelectItems());

代码示例来源:origin: dk.eobjects.metamodel/MetaModel-querypostprocessor

public DataSet executeQuery(Query query) {
  List<SelectItem> selectItems = query.getSelectClause().getItems();
  List<FromItem> fromItems = query.getFromClause().getItems();
  List<FilterItem> whereItems = query.getWhereClause().getItems();
  List<SelectItem> whereSelectItems = query.getWhereClause()
      .getEvaluatedSelectItems();
  List<GroupByItem> groupByItems = query.getGroupByClause().getItems();

代码示例来源:origin: dk.eobjects.commons/MetaModel

if (query != null) {
  List<SelectItem> selectItems = collectSelectItems(query
      .getSelectClause().getItems(), query.getWhereClause()
      .getEvaluatedSelectItems(), query.getHavingClause()
      .getEvaluatedSelectItems());

相关文章