org.apache.metamodel.query.Query.toSql()方法的使用及代码示例

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

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

Query.toSql介绍

暂无

代码示例

代码示例来源:origin: org.apache.metamodel/MetaModel-core

@Override
public String toString() {
  return toSql();
}

代码示例来源:origin: apache/metamodel

@Override
public String toString() {
  return toSql();
}

代码示例来源:origin: apache/metamodel

@Override
public String toString() {
  return _query.toSql();
}

代码示例来源:origin: org.apache.metamodel/MetaModel-core

@Override
public String toString() {
  return _query.toSql();
}

代码示例来源:origin: org.apache.metamodel/MetaModel-core

@Override
public String toSql() {
  return _query.toSql();
}

代码示例来源:origin: apache/metamodel

@Override
public String toSql() {
  return _query.toSql();
}

代码示例来源:origin: apache/metamodel

public String toSql() {
  return toSql(false);
}

代码示例来源:origin: org.apache.metamodel/MetaModel-core

public String toSql() {
  return toSql(false);
}

代码示例来源:origin: org.eobjects.datacleaner/DataCleaner-monitor-services

@Override
public void rowProcessingBegin(AnalysisJob job, RowProcessingMetrics metrics) {
  final Table table = metrics.getTable();
  _progressCounters.put(table, new ProgressCounter());
  final StringBuilder sb = new StringBuilder();
  sb.append("Starting processing of " + table.getName());
  final Query query = metrics.getQuery();
  if (query != null) {
    sb.append('\n');
    sb.append(" - Query: ");
    sb.append(query.toSql());
  }
  final String enableRowCount = System.getProperty(SystemProperties.MONITOR_LOG_ROWCOUNT);
  if (enableRowCount == null || !enableRowCount.equalsIgnoreCase("false")) {
    final int expectedRows = metrics.getExpectedRows();
    if (expectedRows != -1) {
      sb.append('\n');
      sb.append(" - Expected row count: ");
      sb.append(expectedRows);
    }
  }
  _executionLogger.log(sb.toString());
  _executionLogger.flushLog();
}

代码示例来源:origin: apache/metamodel

} else if (_subQuery != null) {
  sb.append('(');
  sb.append(_subQuery.toSql(includeSchemaInColumnPaths));
  sb.append(')');
} else if (_join != null) {

代码示例来源:origin: org.apache.metamodel/MetaModel-core

} else if (_subQuery != null) {
  sb.append('(');
  sb.append(_subQuery.toSql(includeSchemaInColumnPaths));
  sb.append(')');
} else if (_join != null) {

代码示例来源:origin: datacleaner/DataCleaner

public DataSetWindow(final Query query, final DataContext dataContext, final int pageSize,
    final WindowContext windowContext) {
  super(windowContext);
  _table = new DCTable();
  _query = query;
  _pageSize = pageSize;
  _title = "DataSet: " + _query.toSql();
  _tableModelCallable = () -> {
    final DataSet dataSet = dataContext.executeQuery(_query);
    return new DataSetTableModel(dataSet);
  };
  _previousPageButton = WidgetFactory.createDefaultButton("Previous page", IconUtils.ACTION_BACK);
  _previousPageButton.setEnabled(false);
  _nextPageButton = WidgetFactory.createDefaultButton("Next page", IconUtils.ACTION_FORWARD);
  _nextPageButton.setHorizontalTextPosition(SwingConstants.LEFT);
  _nextPageButton.setEnabled(false);
}

代码示例来源:origin: datacleaner/DataCleaner

queryString = jdbcDataContext.getQueryRewriter().rewriteQuery(finalQuery);
} else {
  queryString = finalQuery.toSql();

代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-core

queryString = jdbcDataContext.getQueryRewriter().rewriteQuery(finalQuery);
} else {
  queryString = finalQuery.toSql();

相关文章