|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.schema.Schema
public class Schema
Represents a database schema.
Constructor Summary | |
---|---|
Schema()
Default constructor. |
|
Schema(DBIdentifier name,
SchemaGroup group)
|
|
Schema(String name,
SchemaGroup group)
Deprecated. |
Method Summary | |
---|---|
Sequence |
addSequence(DBIdentifier name)
|
Sequence |
addSequence(String name)
Deprecated. |
Table |
addTable(DBIdentifier name)
|
Table |
addTable(DBIdentifier name,
DBIdentifier validName)
|
Table |
addTable(String name)
Deprecated. |
Table |
addTable(String name,
String validName)
Deprecated. |
int |
compareTo(Schema other)
|
DBIdentifier |
getIdentifier()
|
String |
getName()
Deprecated. |
SchemaGroup |
getSchemaGroup()
Return the schema's group. |
Sequence |
getSequence(DBIdentifier name)
|
Sequence |
getSequence(String name)
Deprecated. |
Sequence[] |
getSequences()
Return the schema's sequences. |
Table |
getTable(DBIdentifier name)
|
Table |
getTable(String name)
Deprecated. |
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 |
setIdentifier(DBIdentifier name)
|
void |
setName(String name)
Deprecated. |
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 grouppublic Schema(DBIdentifier name, SchemaGroup group)
Method Detail |
---|
public SchemaGroup getSchemaGroup()
public String getName()
public DBIdentifier getIdentifier()
public void setName(String name)
public void setIdentifier(DBIdentifier name)
public Table[] getTables()
public Table getTable(String name)
public Table getTable(DBIdentifier name)
public Table addTable(String name)
public Table addTable(DBIdentifier name)
public Table addTable(String name, String validName)
public Table addTable(DBIdentifier name, DBIdentifier validName)
public boolean removeTable(Table tab)
public Table importTable(Table table)
public Sequence[] getSequences()
public Sequence getSequence(String name)
public Sequence getSequence(DBIdentifier name)
public Sequence addSequence(String name)
public Sequence addSequence(DBIdentifier name)
public boolean removeSequence(Sequence seq)
public Sequence importSequence(Sequence seq)
public int compareTo(Schema other)
compareTo
in interface Comparable<Schema>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |