public SchemaCrawlerOptionsBuilder withSchemaInfoLevel(final SchemaInfoLevel schemaInfoLevel) { if (schemaInfoLevel != null) { schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .fromOptions(schemaInfoLevel); } return this; }
public SchemaCrawlerOptionsBuilder withSchemaInfoLevel(final SchemaInfoLevel schemaInfoLevel) { if (schemaInfoLevel != null) { schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .fromOptions(schemaInfoLevel); } return this; }
public SchemaCrawlerOptionsBuilder withSchemaInfoLevel(final SchemaInfoLevelBuilder schemaInfoLevelBuilder) { if (schemaInfoLevelBuilder == null) { this.schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.standard); } else { this.schemaInfoLevelBuilder = schemaInfoLevelBuilder; } return this; }
public SchemaCrawlerOptionsBuilder withSchemaInfoLevel(final SchemaInfoLevelBuilder schemaInfoLevelBuilder) { if (schemaInfoLevelBuilder == null) { this.schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.standard); } else { this.schemaInfoLevelBuilder = schemaInfoLevelBuilder; } return this; }
/** * Creates a new SchemaInfoLevel with settings for maximum schema * information. * * @return SchemaInfoLevel maximum */ public static SchemaInfoLevel maximum() { return builder().withTag("maximum").withInfoLevel(InfoLevel.maximum) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for standard schema * information. * * @return SchemaInfoLevel standard */ public static SchemaInfoLevel standard() { return builder().withTag("standard").withInfoLevel(InfoLevel.standard) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for maximum schema * information. * * @return SchemaInfoLevel maximum */ public static SchemaInfoLevel maximum() { return builder().withTag("maximum").withInfoLevel(InfoLevel.maximum) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for detailed schema * information. * * @return SchemaInfoLevel detailed */ public static SchemaInfoLevel detailed() { return builder().withTag("detailed").withInfoLevel(InfoLevel.detailed) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for detailed schema * information. * * @return SchemaInfoLevel detailed */ public static SchemaInfoLevel detailed() { return builder().withTag("detailed").withInfoLevel(InfoLevel.detailed) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for minimum schema * information. * * @return SchemaInfoLevel minimum */ public static SchemaInfoLevel minimum() { return builder().withTag("minimum").withInfoLevel(InfoLevel.minimum) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for standard schema * information. * * @return SchemaInfoLevel standard */ public static SchemaInfoLevel standard() { return builder().withTag("standard").withInfoLevel(InfoLevel.standard) .toOptions(); }
/** * Creates a new SchemaInfoLevel with settings for minimum schema * information. * * @return SchemaInfoLevel minimum */ public static SchemaInfoLevel minimum() { return builder().withTag("minimum").withInfoLevel(InfoLevel.minimum) .toOptions(); }
/** * Default options. */ private SchemaCrawlerOptionsBuilder() { schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.standard); title = ""; // All schemas are included by default schemaInclusionRule = new IncludeAll(); synonymInclusionRule = new ExcludeAll(); sequenceInclusionRule = new ExcludeAll(); // Note: Of the database objects, only tables are included by // default tableTypes = Optional.of(defaultTableTypes()); tableInclusionRule = new IncludeAll(); columnInclusionRule = new IncludeAll(); routineTypes = Optional.of(allRoutineTypes()); routineInclusionRule = new ExcludeAll(); routineColumnInclusionRule = new ExcludeAll(); grepColumnInclusionRule = Optional.empty(); grepRoutineColumnInclusionRule = Optional.empty(); grepDefinitionInclusionRule = Optional.empty(); }
/** * Default options. */ private SchemaCrawlerOptionsBuilder() { schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.standard); title = ""; // All schemas are included by default schemaInclusionRule = new IncludeAll(); synonymInclusionRule = new ExcludeAll(); sequenceInclusionRule = new ExcludeAll(); // Note: Of the database objects, only tables are included by // default tableTypes = Optional.of(defaultTableTypes()); tableInclusionRule = new IncludeAll(); columnInclusionRule = new IncludeAll(); routineTypes = Optional.of(allRoutineTypes()); routineInclusionRule = new ExcludeAll(); routineColumnInclusionRule = new ExcludeAll(); grepColumnInclusionRule = Optional.empty(); grepRoutineColumnInclusionRule = Optional.empty(); grepDefinitionInclusionRule = Optional.empty(); }
@Test public void testFromOptions() { final SchemaInfoLevel options1 = SchemaInfoLevelBuilder.standard(); final SchemaInfoLevel options2 = SchemaInfoLevelBuilder.builder() .fromOptions(options1).toOptions(); assertThat(options1, equalTo(options2)); }
schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .fromOptions(options.getSchemaInfoLevel());
schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .fromOptions(options.getSchemaInfoLevel());
.newSchemaRetrievalOptions(config); final SchemaInfoLevel schemaInfoLevel = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.minimum).setRetrieveSynonymInformation(true) .toOptions();
schemaInfoLevelBuilder = SchemaInfoLevelBuilder.builder() .fromConfig(config);
.newSchemaRetrievalOptions(config); final SchemaInfoLevel schemaInfoLevel = SchemaInfoLevelBuilder.builder() .withInfoLevel(InfoLevel.minimum).setRetrieveSequenceInformation(true) .toOptions();