public FirebirdDatabase() { // Firebird doesn't know schemata Schema schema = new Schema(); schema.setInputSchema(""); schema.setOutputSchema(""); List<Schema> schemata = new ArrayList<Schema>(); schemata.add(schema); setConfiguredSchemata(schemata); }
@Override @Deprecated public String getOutputSchema(String inputSchema) { for (Schema schema : configuredSchemata) if (inputSchema.equals(schema.getInputSchema())) return schema.getOutputSchema(); return inputSchema; }
public Schema withOutputSchemaToDefault(Boolean value) { setOutputSchemaToDefault(value); return this; }
Schema schema = new Schema(); schema.setInputSchema(trim(d.getInputSchema())); schema.setOutputSchema(trim(d.getOutputSchema())); schema.setOutputSchemaToDefault(d.isOutputSchemaToDefault()); 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.setInputSchema(trim(j.getSchema())); if ("".equals(schema.getOutputSchema())) log.warn("WARNING: Empty <outputSchema/> should not be used to model default outputSchemas. Use <outputSchemaToDefault>true</outputSchemaToDefault>, instead. See also: https://github.com/jOOQ/jOOQ/issues/3018"); if (TRUE.equals(schema.isOutputSchemaToDefault())) schema.setOutputSchema(""); else if (schema.getOutputSchema() == null) schema.setOutputSchema(trim(schema.getInputSchema()));
/** * Create an instance of {@link Schema } * */ public Schema createSchema() { return new Schema(); }
public Schema withInputSchema(String value) { setInputSchema(value); return this; }
public Schema withOutputSchema(String value) { setOutputSchema(value); return this; }
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();
public SQLiteDatabase() { // SQLite doesn't know schemata Schema schema = new Schema(); schema.setInputSchema(""); schema.setOutputSchema(""); List<Schema> schemata = new ArrayList<Schema>(); schemata.add(schema); setConfiguredSchemata(schemata); }
@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; }