@Test public void testCreatingCatalog() { Catalog catalog = new Catalog("test-db"); assertEquals("test-db", catalog.getName()); assertTrue(catalog.getTables().isEmpty()); }
public ImmutableSet<Table> getTables() { return ImmutableSet.copyOf(tables); }
Catalog implements Copyable<Catalog> { public ImmutableSet<Table> getTables() { return ImmutableSet.copyOf(tables); } }
Catalog implements Copyable<Catalog> { public ImmutableSet<Table> getTables() { return ImmutableSet.copyOf(tables); } Catalog(String name); }
Catalog implements Copyable<Catalog> { public ImmutableSet<Table> getTables() { return ImmutableSet.copyOf(tables); } Catalog(String name); Catalog addTable(Table table); boolean containsTable(String tableName); Table getTable(String tableName); Table removeTable(String tableName); Catalog addView(View view); boolean containsView(String viewName); View getView(String viewName); View removeView(String viewName); Catalog addSequence(Sequence sequence); Sequence removeSequence(String sequenceName); ImmutableSet<Table> getTables(); ImmutableSet<View> getViews(); ImmutableSet<ForeignKey> getForeignKeys(); ImmutableSet<Index> getIndexes(); @Override Catalog copy(); @Override String toString(); Set<String> getTablesReferencingTable(String tableName); }
Catalog implements Copyable<Catalog> { public ImmutableSet<Table> getTables() { return ImmutableSet.copyOf(tables); } Catalog(String name); Catalog addTable(Table table); boolean containsTable(String tableName); Table getTable(String tableName); Table removeTable(String tableName); Catalog addView(View view); boolean containsView(String viewName); View getView(String viewName); View removeView(String viewName); Catalog addSequence(Sequence sequence); Sequence removeSequence(String sequenceName); ImmutableSet<Table> getTables(); ImmutableSet<View> getViews(); ImmutableSet<ForeignKey> getForeignKeys(); ImmutableSet<Index> getIndexes(); @Override Catalog copy(); @Override String toString(); Set<String> getTablesReferencingTable(String tableName);  }