@Override public BUILDER withSchema(String schemaName) { requireNonNull(schemaName); with(Schema.class, s -> { // This makes sure that old json files with no id // first sets it id before the name is changed // Todo: Remove in next major API bumnp s.mutator().setId(s.getId()); s.mutator().setName(schemaName); }); return self(); }
@Override public BUILDER withSchema(String oldSchemaName, String schemaName) { requireNonNulls(oldSchemaName, schemaName); with(Schema.class, oldSchemaName, s -> { // This makes sure that old json files with no id // first sets it id before the name is changed // Todo: Remove in next major API bumnp s.mutator().setId(s.getId()); s.mutator().setName(schemaName); }); return self(); }
private CompletableFuture<Project> readSchemaMetadata( Project project, Dbms dbms, ProgressMeasure progress) { //final DbmsType dbmsType = dbmsTypeOf(dbmsHandlerComponent, dbms); progress.setCurrentAction(describe(dbms)); LOGGER.info(describe(dbms)); final CompletableFuture<Map<String, Class<?>>> typeMappingTask = typeMappingHelper.loadFor(dbms); final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId("schema"); schema.mutator().setName("schema"); return readTableMetadata(schema, typeMappingTask, progress) .thenApplyAsync($ -> project); }
if (filterCriteria.test(name)) { final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId(name); schema.mutator().setName(name); schemaWasUsed = true; if (!naming.getSchemaExcludeSet().contains(schemaName)) { final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId(schemaName); schema.mutator().setName(schemaName); schemaWasUsed = true;
final Table table = schema.mutator().addNewTable(); final String tableName = rsTable.getString("TABLE_NAME"); final String tableType = rsTable.getString("TABLE_TYPE");
final Table table = schema.mutator().addNewTable(); final String tableName = rsTable.getString("TABLE_NAME"); final String tableType = rsTable.getString("TABLE_TYPE");
@Override public BUILDER withSchema(String schemaName) { requireNonNull(schemaName); with(Schema.class, s -> { // This makes sure that old json files with no id // first sets it id before the name is changed // Todo: Remove in next major API bumnp s.mutator().setId(s.getId()); s.mutator().setName(schemaName); }); return self(); }
@Override public BUILDER withSchema(String oldSchemaName, String schemaName) { requireNonNulls(oldSchemaName, schemaName); with(Schema.class, oldSchemaName, s -> { // This makes sure that old json files with no id // first sets it id before the name is changed // Todo: Remove in next major API bumnp s.mutator().setId(s.getId()); s.mutator().setName(schemaName); }); return self(); }
private CompletableFuture<Project> readSchemaMetadata( Project project, Dbms dbms, ProgressMeasure progress) { //final DbmsType dbmsType = dbmsTypeOf(dbmsHandlerComponent, dbms); progress.setCurrentAction(describe(dbms)); LOGGER.info(describe(dbms)); final CompletableFuture<Map<String, Class<?>>> typeMappingTask = typeMappingHelper.loadFor(dbms); final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId("schema"); schema.mutator().setName("schema"); return readTableMetadata(schema, typeMappingTask, progress) .thenApplyAsync($ -> project); }
if (filterCriteria.test(name)) { final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId(name); schema.mutator().setName(name); schemaWasUsed = true; if (!naming.getSchemaExcludeSet().contains(schemaName)) { final Schema schema = dbms.mutator().addNewSchema(); schema.mutator().setId(schemaName); schema.mutator().setName(schemaName); schemaWasUsed = true;
final Table table = schema.mutator().addNewTable(); final String tableName = rsTable.getString("TABLE_NAME"); final String tableType = rsTable.getString("TABLE_TYPE");
final Table table = schema.mutator().addNewTable(); final String tableName = rsTable.getString("TABLE_NAME"); final String tableType = rsTable.getString("TABLE_TYPE");