@Override public SchemaCrawlerOptions getSchemaCrawlerOptions() { if (schemaCrawlerOptions == null) { return SchemaCrawlerOptionsBuilder.newSchemaCrawlerOptions(); } else { return schemaCrawlerOptions; } }
public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions == null) { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } else { this.schemaCrawlerOptions = schemaCrawlerOptions; } }
/** * {@inheritDoc} */ @Override public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions != null) { this.schemaCrawlerOptions = schemaCrawlerOptions; } else { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } }
protected BaseSchemaCrawlerCommand(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }
public SchemaCrawlerExecutable(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }
@Test public void columnLookup(final TestContext testContext, final Connection connection) throws Exception { final SchemaCrawlerOptions schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); final Catalog catalog = getCatalog(connection, schemaCrawlerOptions); assertThat(catalog, notNullValue()); final Schema schema = catalog.lookupSchema("PUBLIC.BOOKS").get(); assertThat(schema, notNullValue()); final Table table = catalog.lookupTable(schema, "AUTHORS").get(); assertThat(table, notNullValue()); assertThat(table.lookupColumn(null), is(emptyOptional())); assertThat(table.lookupColumn(""), is(emptyOptional())); assertThat(table.lookupColumn("NO_COLUMN"), is(emptyOptional())); assertThat(table.lookupColumn("ID"), is(not(emptyOptional()))); }
public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions == null) { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } else { this.schemaCrawlerOptions = schemaCrawlerOptions; } }
@Override public SchemaCrawlerOptions getSchemaCrawlerOptions() { if (schemaCrawlerOptions == null) { return SchemaCrawlerOptionsBuilder.newSchemaCrawlerOptions(); } else { return schemaCrawlerOptions; } }
@Override public SchemaCrawlerOptions getSchemaCrawlerOptions() { return SchemaCrawlerOptionsBuilder.newSchemaCrawlerOptions(); }
@Override public SchemaCrawlerOptions getSchemaCrawlerOptions() { if (schemaCrawlerOptions == null) { return SchemaCrawlerOptionsBuilder.newSchemaCrawlerOptions(); } else { return schemaCrawlerOptions; } }
public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions == null) { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } else { this.schemaCrawlerOptions = schemaCrawlerOptions; } }
/** * {@inheritDoc} */ @Override public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions != null) { this.schemaCrawlerOptions = schemaCrawlerOptions; } else { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } }
/** * {@inheritDoc} */ @Override public final void setSchemaCrawlerOptions(final SchemaCrawlerOptions schemaCrawlerOptions) { if (schemaCrawlerOptions != null) { this.schemaCrawlerOptions = schemaCrawlerOptions; } else { this.schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); } }
public SchemaCrawlerExecutable(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }
public SchemaCrawlerExecutable(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }
protected BaseSchemaCrawlerCommand(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }
protected BaseSchemaCrawlerCommand(final String command) { if (isBlank(command)) { throw new IllegalArgumentException("No command specified"); } this.command = command; schemaCrawlerOptions = SchemaCrawlerOptionsBuilder .newSchemaCrawlerOptions(); outputOptions = OutputOptionsBuilder.newOutputOptions(); additionalConfiguration = new Config(); }