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

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

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

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);)

相关文章