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

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

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

Query.getMaxRows介绍

暂无

代码示例

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

/**
   * If the maxrows property of the query is set, then we will use MySQLs
   * LIMIT function.
   */
  @Override
  public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
    String queryString = super.rewriteQuery(strategy, query);
    Integer maxRows = query.getMaxRows();
    if (maxRows != null && maxRows > 0) {
      queryString = queryString + " LIMIT " + maxRows;
    }
    return queryString;
  }
}

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

/**
   * If the maxrows property of the query is set, then we will use MySQLs
   * LIMIT function.
   */
  @Override
  public String rewriteQuery(JdbcDataContextStrategy strategy, Query query) {
    String queryString = super.rewriteQuery(strategy, query);
    Integer maxRows = query.getMaxRows();
    if (maxRows != null && maxRows > 0) {
      queryString = queryString + " LIMIT " + maxRows;
    }
    return queryString;
  }
}

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

Integer maxRows = query.getMaxRows();
if (maxRows != null) {
  try {

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

Integer maxRows = query.getMaxRows();
if (maxRows != null) {
  try {

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

previewTable: if (query.getMaxRows() != null && whereItems.isEmpty()
    && groupByItems.isEmpty() && havingItems.isEmpty()
    && orderByItems.isEmpty() && fromItems.size() == 1) {
        .getMaxRows());
    dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
    return dataSet;
dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
if (query.getMaxRows() != null) {
  dataSet = new DataSet(new MaxRowsDataSetStrategyWrapper(dataSet,
      query.getMaxRows()));

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

previewTable: if (query.getMaxRows() != null && whereItems.isEmpty()
    && groupByItems.isEmpty() && havingItems.isEmpty()
    && orderByItems.isEmpty() && fromItems.size() == 1) {
        .getMaxRows());
    dataSet = MetaModelHelper.getSelection(selectItems, dataSet);
    return dataSet;
if (query.getMaxRows() != null) {
  dataSet = new DataSet(new MaxRowsDataSetStrategyWrapper(dataSet,
      query.getMaxRows()));

相关文章