Method Summary |
|
public Schema | addSchema() Add a schema to the group. |
public Schema | addSchema(String name) Add a schema to the group. |
public Object | clone() |
protected void | copy(SchemaGroup group) Copy cloneable state from the given instance. |
public ForeignKey[] | findExportedForeignKeys(PrimaryKey pk) Find all foreign keys exported by a given primary key (all foreign keys
that link to the primary key). |
public Sequence | findSequence(Sequence seq) Find the equivalent of the given sequence in this schema group. |
public Sequence | findSequence(String name) Find the sequence with the given name in the group, using '.' as the
catalog separator. |
public Sequence | findSequence(Schema inSchema, String name) Find the sequence with the given name in the group, using '.' as the
catalog separator. |
public Table | findTable(Table table) Find the equivalent of the given table in this schema group. |
public Table | findTable(String name) Find the table with the given name in the group, using '.' as the
catalog separator. |
public Table | findTable(Schema inSchema, String name) Find the table with the given name in the group, using '.' as the catalog
separator. |
public Schema | getSchema(String name) Return the schema with the given name, or null if none. |
public Schema[] | getSchemas() Return all schemas. |
public Schema | importSchema(Schema schema) Import a schema from another group. |
public boolean | isKnownSequence(Sequence seq) Return true if the given sequence is known to exist. |
public boolean | isKnownSequence(String name) Return true if the given sequence is known to exist. |
public boolean | isKnownTable(Table table) Return true if the given table is known to exist. |
public boolean | isKnownTable(String name) Return true if the given table is known to exist. |
protected Column | newColumn(String name, Table table) Return a new column with the given name and owner table. |
protected ForeignKey | newForeignKey(String name, Table table) Return a new foreign key with the given name and owner table. |
protected Index | newIndex(String name, Table table) Return a new index with the given name and owner table. |
protected SchemaGroup | newInstance() Create a new instance of this class. |
protected PrimaryKey | newPrimaryKey(String name, Table table) Return a new primary key with the given name and owner table. |
protected Schema | newSchema(String name) Return a new schema with the given name. |
protected Sequence | newSequence(String name, Schema schema) Return a new sequence with the given name and owner schema. |
protected Table | newTable(String name, Schema schema) Return a new table with the given name and owner schema. |
protected Unique | newUnique(String name, Table table) Return a new unique constraint with the given name and owner table. |
public boolean | removeSchema(Schema schema) Remove the given schema from the group. |
public void | removeUnusedComponents() Remove unreferenced or emtpy components from the schema. |