/** * {@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); }
/** * {@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); }
MetadataResultSet(final Query query, final Statement statement, final InclusionRule schemaInclusionRule) throws SQLException { this(executeAgainstSchema(query, statement, schemaInclusionRule)); if (query.hasName()) { description = query.getName(); } }
MetadataResultSet(final Query query, final Statement statement, final InclusionRule schemaInclusionRule) throws SQLException { this(executeAgainstSchema(query, statement, schemaInclusionRule)); if (query.hasName()) { description = query.getName(); } }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
MetadataResultSet(final Query query, final Statement statement, final InclusionRule schemaInclusionRule) throws SQLException { this(executeAgainstSchema(query, statement, schemaInclusionRule)); if (query.hasName()) { description = query.getName(); } }
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); }
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); }
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); }
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); }
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); }