@Override @Deprecated public String getOutputSchema(String inputSchema) { for (Schema schema : configuredSchemata) if (inputSchema.equals(schema.getInputSchema())) return schema.getOutputSchema(); return inputSchema; }
@Override public String getOutputSchema(String inputCatalog, String inputSchema) { for (Catalog catalog : configuredCatalogs) if (inputCatalog.equals(catalog.getInputCatalog())) for (Schema schema : catalog.getSchemata()) if (inputSchema.equals(schema.getInputSchema())) return schema.getOutputSchema(); return inputSchema; }
if (configuredSchemata.size() == 1 && StringUtils.isBlank(configuredSchemata.get(0).getInputSchema())) { initAllSchemata(); && configuredCatalogs.get(0).getSchemata().size() == 1 && StringUtils.isBlank(configuredCatalogs.get(0).getSchemata().get(0).getInputSchema())) { initAllSchemata(); inputSchemata.add(schema.getInputSchema()); inputSchema = schema.getInputSchema();
catalog.getSchemata().add(schema); if (!StringUtils.isBlank(schema.getInputSchema())) schemataEmpty = false; if (catalogsEmpty && schemataEmpty && StringUtils.isBlank(schema.getInputSchema())) { if (!StringUtils.isBlank(j.getSchema())) log.warn("WARNING: The configuration property jdbc.Schema is deprecated and will be removed in the future. Use /configuration/generator/database/inputSchema instead"); schema.setOutputSchema(""); else if (schema.getOutputSchema() == null) schema.setOutputSchema(trim(schema.getInputSchema()));