Class GenerateSchemaFromJdbc

java.lang.Object
com.northconcepts.datapipeline.foundations.tools.GenerateSchemaFromJdbc

public class GenerateSchemaFromJdbc extends Object
Builds a SchemaDef from JDBC metadata: an entity per table, relationships from foreign keys, and the indexes other than primary keys.
  • Constructor Details

    • GenerateSchemaFromJdbc

      public GenerateSchemaFromJdbc(JdbcConnection jdbcConnection)
  • Method Details

    • generate

      public SchemaDef generate(String catalog, String schemaPattern, String tableNamePattern, String... types)
      Adds the tables matching the given DatabaseMetaData.getTables arguments, with their relationships and indexes, to this generator's schema and returns it.
    • generate

      public SchemaDef generate(String catalog, String schemaPattern, List<String> tableNames, String... types)