schemacrawler.utility.Query.getName()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(7.8k)|赞(0)|评价(0)|浏览(236)

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

Query.getName介绍

[英]Gets the query name.
[中]获取查询名称。

代码示例

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void handleData(final Query query, final ResultSet rows)
  6. throws SchemaCrawlerException
  7. {
  8. String title;
  9. if (query != null)
  10. {
  11. title = query.getName();
  12. }
  13. else
  14. {
  15. title = "";
  16. }
  17. handleData(title, rows);
  18. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void handleData(final Query query, final ResultSet rows)
  6. throws SchemaCrawlerException
  7. {
  8. String title;
  9. if (query != null)
  10. {
  11. title = query.getName();
  12. }
  13. else
  14. {
  15. title = "";
  16. }
  17. handleData(title, rows);
  18. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. MetadataResultSet(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. this(executeAgainstSchema(query, statement, schemaInclusionRule));
  7. if (query.hasName())
  8. {
  9. description = query.getName();
  10. }
  11. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. MetadataResultSet(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. this(executeAgainstSchema(query, statement, schemaInclusionRule));
  7. if (query.hasName())
  8. {
  9. description = query.getName();
  10. }
  11. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection)
  3. throws SchemaCrawlerException
  4. {
  5. requireNonNull(query, "No query provided");
  6. final String sql = getQuery(query);
  7. LOGGER.log(Level.FINE,
  8. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  9. return executeSqlForScalar(connection, sql);
  10. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static ResultSet executeAgainstSchema(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. requireNonNull(query, "No query provided");
  7. final String sql = getQuery(query, schemaInclusionRule);
  8. LOGGER.log(Level.FINE,
  9. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  10. return executeSql(statement, sql);
  11. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static long executeForLong(final Query query,
  2. final Connection connection,
  3. final Table table,
  4. final Identifiers identifiers)
  5. throws SchemaCrawlerException
  6. {
  7. requireNonNull(query, "No query provided");
  8. final String sql = getQuery(query, table, true, identifiers);
  9. LOGGER.log(Level.FINE,
  10. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  11. return executeSqlForLong(connection, sql);
  12. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection,
  3. final Table table,
  4. final Identifiers identifiers)
  5. throws SchemaCrawlerException
  6. {
  7. requireNonNull(query, "No query provided");
  8. final String sql = getQuery(query, table, true, identifiers);
  9. LOGGER.log(Level.FINE,
  10. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  11. return executeSqlForScalar(connection, sql);
  12. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static ResultSet executeAgainstSchema(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. requireNonNull(query, "No query provided");
  7. final String sql = getQuery(query, schemaInclusionRule);
  8. LOGGER.log(Level.FINE,
  9. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  10. return executeSql(statement, sql);
  11. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static long executeForLong(final Query query,
  2. final Connection connection,
  3. final Table table,
  4. final Identifiers identifiers)
  5. throws SchemaCrawlerException
  6. {
  7. requireNonNull(query, "No query provided");
  8. final String sql = getQuery(query, table, true, identifiers);
  9. LOGGER.log(Level.FINE,
  10. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  11. return executeSqlForLong(connection, sql);
  12. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection,
  3. final Table table,
  4. final Identifiers identifiers)
  5. throws SchemaCrawlerException
  6. {
  7. requireNonNull(query, "No query provided");
  8. final String sql = getQuery(query, table, true, identifiers);
  9. LOGGER.log(Level.FINE,
  10. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  11. return executeSqlForScalar(connection, sql);
  12. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection)
  3. throws SchemaCrawlerException
  4. {
  5. requireNonNull(query, "No query provided");
  6. final String sql = getQuery(query);
  7. LOGGER.log(Level.FINE,
  8. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  9. return executeSqlForScalar(connection, sql);
  10. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static ResultSet executeAgainstTable(final Query query,
  2. final Statement statement,
  3. final Table table,
  4. final boolean isAlphabeticalSortForTableColumns,
  5. final Identifiers identifiers)
  6. throws SQLException
  7. {
  8. requireNonNull(query, "No query provided");
  9. requireNonNull(identifiers, "No identifiers provided");
  10. final String sql = getQuery(query,
  11. table,
  12. isAlphabeticalSortForTableColumns,
  13. identifiers);
  14. LOGGER.log(Level.FINE,
  15. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  16. return executeSql(statement, sql);
  17. }

代码示例来源:origin: schemacrawler/SchemaCrawler

  1. public static ResultSet executeAgainstTable(final Query query,
  2. final Statement statement,
  3. final Table table,
  4. final boolean isAlphabeticalSortForTableColumns,
  5. final Identifiers identifiers)
  6. throws SQLException
  7. {
  8. requireNonNull(query, "No query provided");
  9. requireNonNull(identifiers, "No identifiers provided");
  10. final String sql = getQuery(query,
  11. table,
  12. isAlphabeticalSortForTableColumns,
  13. identifiers);
  14. LOGGER.log(Level.FINE,
  15. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  16. return executeSql(statement, sql);
  17. }

代码示例来源:origin: us.fatehi/schemacrawler

  1. MetadataResultSet(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. this(executeAgainstSchema(query, statement, schemaInclusionRule));
  7. if (query.hasName())
  8. {
  9. description = query.getName();
  10. }
  11. }

代码示例来源:origin: us.fatehi/schemacrawler

  1. public static ResultSet executeAgainstSchema(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. requireNonNull(query, "No query provided");
  7. final String sql = getQuery(query, schemaInclusionRule);
  8. LOGGER.log(Level.FINE,
  9. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  10. return executeSql(statement, sql);
  11. }

代码示例来源:origin: us.fatehi/schemacrawler

  1. public static long executeForLong(final Query query,
  2. final Connection connection,
  3. final Table table,
  4. final Identifiers identifiers)
  5. throws SchemaCrawlerException
  6. {
  7. requireNonNull(query, "No query provided");
  8. final String sql = getQuery(query, table, true, identifiers);
  9. LOGGER.log(Level.FINE,
  10. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  11. return executeSqlForLong(connection, sql);
  12. }

代码示例来源:origin: us.fatehi/schemacrawler

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection)
  3. throws SchemaCrawlerException
  4. {
  5. requireNonNull(query, "No query provided");
  6. final String sql = getQuery(query);
  7. LOGGER.log(Level.FINE,
  8. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  9. return executeSqlForScalar(connection, sql);
  10. }

代码示例来源:origin: us.fatehi/schemacrawler-api

  1. public static ResultSet executeAgainstSchema(final Query query,
  2. final Statement statement,
  3. final InclusionRule schemaInclusionRule)
  4. throws SQLException
  5. {
  6. requireNonNull(query, "No query provided");
  7. final String sql = getQuery(query, schemaInclusionRule);
  8. LOGGER.log(Level.FINE,
  9. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  10. return executeSql(statement, sql);
  11. }

代码示例来源:origin: us.fatehi/schemacrawler-api

  1. public static Object executeForScalar(final Query query,
  2. final Connection connection)
  3. throws SchemaCrawlerException
  4. {
  5. requireNonNull(query, "No query provided");
  6. final String sql = getQuery(query);
  7. LOGGER.log(Level.FINE,
  8. new StringFormat("Executing %s: %n%s", query.getName(), sql));
  9. return executeSqlForScalar(connection, sql);
  10. }

相关文章