本文整理了Java中schemacrawler.utility.Query.getName
方法的一些代码示例,展示了Query.getName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getName
方法的具体详情如下:
包路径:schemacrawler.utility.Query
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!