|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.schema.Schema
public class Schema
Represents a database schema.
Constructor Summary | |
---|---|
Schema()
Default constructor. |
|
Schema(String name,
SchemaGroup group)
Constructor. |
Method Summary | |
---|---|
Sequence |
addSequence(String name)
Add a sequence to the schema. |
Table |
addTable(String name)
Add a table to the schema. |
int |
compareTo(Object other)
|
String |
getName()
Return the name of the schema, or null if none. |
SchemaGroup |
getSchemaGroup()
Return the schema's group. |
Sequence |
getSequence(String name)
Return the sequence with the given name, or null if none. |
Sequence[] |
getSequences()
Return the schema's sequences. |
Table |
getTable(String name)
Return the table with the given name, or null if none. |
Table[] |
getTables()
Return the schema's tables. |
Sequence |
importSequence(Sequence seq)
Import a sequence from another schema. |
Table |
importTable(Table table)
Import a table from another schema. |
boolean |
removeSequence(Sequence seq)
Remove the given sequence from the schema. |
boolean |
removeTable(Table tab)
Remove the given table from the schema. |
void |
setName(String name)
Set the name of the schema. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Schema()
public Schema(String name, SchemaGroup group)
name
- the schema name, if anygroup
- the schema's owning groupMethod Detail |
---|
public SchemaGroup getSchemaGroup()
public String getName()
public void setName(String name)
public Table[] getTables()
public Table getTable(String name)
public Table addTable(String name)
public boolean removeTable(Table tab)
public Table importTable(Table table)
public Sequence[] getSequences()
public Sequence getSequence(String name)
public Sequence addSequence(String name)
public boolean removeSequence(Sequence seq)
public Sequence importSequence(Sequence seq)
public int compareTo(Object other)
compareTo
in interface Comparable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.