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

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

本文整理了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

/**
 * {@inheritDoc}
 */
@Override
public void handleData(final Query query, final ResultSet rows)
 throws SchemaCrawlerException
{
 String title;
 if (query != null)
 {
  title = query.getName();
 }
 else
 {
  title = "";
 }
 handleData(title, rows);
}

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

/**
 * {@inheritDoc}
 */
@Override
public void handleData(final Query query, final ResultSet rows)
 throws SchemaCrawlerException
{
 String title;
 if (query != null)
 {
  title = query.getName();
 }
 else
 {
  title = "";
 }
 handleData(title, rows);
}

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

MetadataResultSet(final Query query,
         final Statement statement,
         final InclusionRule schemaInclusionRule)
 throws SQLException
{
 this(executeAgainstSchema(query, statement, schemaInclusionRule));
 if (query.hasName())
 {
  description = query.getName();
 }
}

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

MetadataResultSet(final Query query,
         final Statement statement,
         final InclusionRule schemaInclusionRule)
 throws SQLException
{
 this(executeAgainstSchema(query, statement, schemaInclusionRule));
 if (query.hasName())
 {
  description = query.getName();
 }
}

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

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

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

public static ResultSet executeAgainstSchema(final Query query,
                       final Statement statement,
                       final InclusionRule schemaInclusionRule)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, schemaInclusionRule);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

public static long executeForLong(final Query query,
                 final Connection connection,
                 final Table table,
                 final Identifiers identifiers)
 throws SchemaCrawlerException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, table, true, identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSqlForLong(connection, sql);
}

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

public static Object executeForScalar(final Query query,
                   final Connection connection,
                   final Table table,
                   final Identifiers identifiers)
 throws SchemaCrawlerException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, table, true, identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSqlForScalar(connection, sql);
}

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

public static ResultSet executeAgainstSchema(final Query query,
                       final Statement statement,
                       final InclusionRule schemaInclusionRule)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, schemaInclusionRule);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

public static long executeForLong(final Query query,
                 final Connection connection,
                 final Table table,
                 final Identifiers identifiers)
 throws SchemaCrawlerException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, table, true, identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSqlForLong(connection, sql);
}

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

public static Object executeForScalar(final Query query,
                   final Connection connection,
                   final Table table,
                   final Identifiers identifiers)
 throws SchemaCrawlerException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, table, true, identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSqlForScalar(connection, sql);
}

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

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

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

public static ResultSet executeAgainstTable(final Query query,
                      final Statement statement,
                      final Table table,
                      final boolean isAlphabeticalSortForTableColumns,
                      final Identifiers identifiers)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 requireNonNull(identifiers, "No identifiers provided");
 final String sql = getQuery(query,
               table,
               isAlphabeticalSortForTableColumns,
               identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

public static ResultSet executeAgainstTable(final Query query,
                      final Statement statement,
                      final Table table,
                      final boolean isAlphabeticalSortForTableColumns,
                      final Identifiers identifiers)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 requireNonNull(identifiers, "No identifiers provided");
 final String sql = getQuery(query,
               table,
               isAlphabeticalSortForTableColumns,
               identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

MetadataResultSet(final Query query,
         final Statement statement,
         final InclusionRule schemaInclusionRule)
 throws SQLException
{
 this(executeAgainstSchema(query, statement, schemaInclusionRule));
 if (query.hasName())
 {
  description = query.getName();
 }
}

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

public static ResultSet executeAgainstSchema(final Query query,
                       final Statement statement,
                       final InclusionRule schemaInclusionRule)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, schemaInclusionRule);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

public static long executeForLong(final Query query,
                 final Connection connection,
                 final Table table,
                 final Identifiers identifiers)
 throws SchemaCrawlerException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, table, true, identifiers);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSqlForLong(connection, sql);
}

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

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

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

public static ResultSet executeAgainstSchema(final Query query,
                       final Statement statement,
                       final InclusionRule schemaInclusionRule)
 throws SQLException
{
 requireNonNull(query, "No query provided");
 final String sql = getQuery(query, schemaInclusionRule);
 LOGGER.log(Level.FINE,
       new StringFormat("Executing %s: %n%s", query.getName(), sql));
 return executeSql(statement, sql);
}

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

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

相关文章