| java.lang.Object org.apache.openjpa.jdbc.schema.Schema
Schema | public Schema()(Code) | | Default constructor.
|
Schema | public Schema(String name, SchemaGroup group)(Code) | | Constructor.
Parameters: name - the schema name, if any Parameters: group - the schema's owning group |
getName | public String getName()(Code) | | Return the name of the schema, or null if none.
|
getSequence | public Sequence getSequence(String name)(Code) | | Return the sequence with the given name, or null if none.
|
getSequences | public Sequence[] getSequences()(Code) | | Return the schema's sequences.
|
getTable | public Table getTable(String name)(Code) | | Return the table with the given name, or null if none.
|
getTables | public Table[] getTables()(Code) | | Return the schema's tables.
|
importTable | public Table importTable(Table table)(Code) | | Import a table from another schema. Note that this method does
not import foreign keys, indexes, or unique constraints.
|
remove | void remove()(Code) | | Called when the schema is removed from its group. Invalidates the
schema and removes all its member tables.
|
removeSequence | public boolean removeSequence(Sequence seq)(Code) | | Remove the given sequence from the schema.
true if the sequence was removed, false if not in the schema |
removeTable | public boolean removeTable(Table tab)(Code) | | Remove the given table from the schema.
true if the table was removed, false if not in the schema |
setName | public void setName(String name)(Code) | | Set the name of the schema. This method can only be used for schemas
not attached to a group.
|
|
|