本文整理了Java中schemacrawler.utility.Query.getQuery
方法的一些代码示例,展示了Query.getQuery
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getQuery
方法的具体详情如下:
包路径:schemacrawler.utility.Query
类名称:Query
方法名:getQuery
[英]Gets the query SQL.
[中]获取查询SQL。
代码示例来源:origin: schemacrawler/SchemaCrawler
private static String getQuery(final Query query)
{
return expandTemplate(query.getQuery());
}
代码示例来源:origin: schemacrawler/SchemaCrawler
private static String getQuery(final Query query)
{
return expandTemplate(query.getQuery());
}
代码示例来源:origin: schemacrawler/SchemaCrawler
/**
* Gets the query with parameters substituted.
*
* @param schemaInclusionRule
* Schema inclusion rule
* @return Ready-to-execute query
*/
private static String getQuery(final Query query,
final InclusionRule schemaInclusionRule)
{
final Map<String, String> properties = new HashMap<>();
properties.put("schemas", ".*");
if (schemaInclusionRule != null
&& schemaInclusionRule instanceof InclusionRuleWithRegularExpression)
{
final String schemaInclusionPattern = ((InclusionRuleWithRegularExpression) schemaInclusionRule)
.getInclusionPattern().pattern();
if (!isBlank(schemaInclusionPattern))
{
properties.put("schemas", schemaInclusionPattern);
}
}
String sql = query.getQuery();
sql = expandTemplate(sql, properties);
sql = expandTemplate(sql);
return sql;
}
代码示例来源:origin: schemacrawler/SchemaCrawler
/**
* Gets the query with parameters substituted.
*
* @param schemaInclusionRule
* Schema inclusion rule
* @return Ready-to-execute query
*/
private static String getQuery(final Query query,
final InclusionRule schemaInclusionRule)
{
final Map<String, String> properties = new HashMap<>();
properties.put("schemas", ".*");
if (schemaInclusionRule != null
&& schemaInclusionRule instanceof InclusionRuleWithRegularExpression)
{
final String schemaInclusionPattern = ((InclusionRuleWithRegularExpression) schemaInclusionRule)
.getInclusionPattern().pattern();
if (!isBlank(schemaInclusionPattern))
{
properties.put("schemas", schemaInclusionPattern);
}
}
String sql = query.getQuery();
sql = expandTemplate(sql, properties);
sql = expandTemplate(sql);
return sql;
}
代码示例来源:origin: schemacrawler/SchemaCrawler
String sql = query.getQuery();
sql = expandTemplate(sql, tableProperties);
sql = expandTemplate(sql);
代码示例来源:origin: schemacrawler/SchemaCrawler
String sql = query.getQuery();
sql = expandTemplate(sql, tableProperties);
sql = expandTemplate(sql);
代码示例来源:origin: us.fatehi/schemacrawler
private static String getQuery(final Query query)
{
return expandTemplate(query.getQuery());
}
代码示例来源:origin: us.fatehi/schemacrawler-api
private static String getQuery(final Query query)
{
return expandTemplate(query.getQuery());
}
代码示例来源:origin: schemacrawler/SchemaCrawler
final String sql = query.getQuery();
try (final ResultSet results = executeSql(statement, sql, true);)
代码示例来源:origin: us.fatehi/schemacrawler
/**
* Gets the query with parameters substituted.
*
* @param schemaInclusionRule
* Schema inclusion rule
* @return Ready-to-execute query
*/
private static String getQuery(final Query query,
final InclusionRule schemaInclusionRule)
{
final Map<String, String> properties = new HashMap<>();
properties.put("schemas", ".*");
if (schemaInclusionRule != null
&& schemaInclusionRule instanceof InclusionRuleWithRegularExpression)
{
final String schemaInclusionPattern = ((InclusionRuleWithRegularExpression) schemaInclusionRule)
.getInclusionPattern().pattern();
if (!isBlank(schemaInclusionPattern))
{
properties.put("schemas", schemaInclusionPattern);
}
}
String sql = query.getQuery();
sql = expandTemplate(sql, properties);
sql = expandTemplate(sql);
return sql;
}
代码示例来源:origin: us.fatehi/schemacrawler-api
/**
* Gets the query with parameters substituted.
*
* @param schemaInclusionRule
* Schema inclusion rule
* @return Ready-to-execute query
*/
private static String getQuery(final Query query,
final InclusionRule schemaInclusionRule)
{
final Map<String, String> properties = new HashMap<>();
properties.put("schemas", ".*");
if (schemaInclusionRule != null
&& schemaInclusionRule instanceof InclusionRuleWithRegularExpression)
{
final String schemaInclusionPattern = ((InclusionRuleWithRegularExpression) schemaInclusionRule)
.getInclusionPattern().pattern();
if (!isBlank(schemaInclusionPattern))
{
properties.put("schemas", schemaInclusionPattern);
}
}
String sql = query.getQuery();
sql = expandTemplate(sql, properties);
sql = expandTemplate(sql);
return sql;
}
代码示例来源:origin: us.fatehi/schemacrawler
String sql = query.getQuery();
sql = expandTemplate(sql, tableProperties);
sql = expandTemplate(sql);
代码示例来源:origin: us.fatehi/schemacrawler-api
String sql = query.getQuery();
sql = expandTemplate(sql, tableProperties);
sql = expandTemplate(sql);
代码示例来源:origin: us.fatehi/schemacrawler-tools
final String sql = query.getQuery();
try (final ResultSet results = executeSql(statement, sql, true);)
代码示例来源:origin: us.fatehi/schemacrawler
final String sql = query.getQuery();
try (final ResultSet results = executeSql(statement, sql, true);)
内容来源于网络,如有侵权,请联系作者删除!