Examples of DBCatalog


Examples of org.databene.jdbacl.model.DBCatalog

  protected DBSchema schema;

  @Before
  public void prepareDB() {
    this.db = new Database(null, null, false);
    this.catalog = new DBCatalog("catalog", this.db);
    this.schema = new DBSchema("schema", this.catalog);
  }
View Full Code Here

Examples of org.databene.jdbacl.model.DBCatalog

  @Test
  public void testUnchanged() {
    // given two identical table versions
    Database db1 = new Database("db1", "hsql", "1.5.8", null);
    DBCatalog cat1 = new DBCatalog("cat1", db1);
    DBSchema schema1 = new DBSchema("public", cat1);
    DBTable table1 = createTableWithColumns("tbl", 3);
    schema1.addTable(table1);

    Database db2 = new Database("db1", "hsql", "1.5.8", null);
    DBCatalog cat2 = new DBCatalog("cat2", db2);
    DBSchema schema2 = new DBSchema("public", cat2);
    DBTable table2 = createTableWithColumns("tbl", 3);
    schema2.addTable(table2);
   
    // when comparing the tables
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.