|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.schema.NameSet org.apache.openjpa.jdbc.schema.SchemaGroup
public class SchemaGroup
Represents a grouping of schemas used in a database.
Constructor Summary | |
---|---|
SchemaGroup()
|
Method Summary | |
---|---|
Schema |
addSchema()
Add a schema to the group. |
Schema |
addSchema(DBIdentifier name)
Add a schema to the group. |
Schema |
addSchema(String name)
Deprecated. |
Object |
clone()
|
protected void |
copy(SchemaGroup group)
Copy cloneable state from the given instance. |
ForeignKey[] |
findExportedForeignKeys(PrimaryKey pk)
Find all foreign keys exported by a given primary key (all foreign keys that link to the primary key). |
Sequence |
findSequence(DBIdentifier name)
|
Sequence |
findSequence(QualifiedDBIdentifier path)
|
Sequence |
findSequence(Schema inSchema,
QualifiedDBIdentifier path)
|
Sequence |
findSequence(Schema inSchema,
String name)
Deprecated. |
Sequence |
findSequence(Sequence seq)
Find the equivalent of the given sequence in this schema group. |
Sequence |
findSequence(String name)
Deprecated. |
Table |
findTable(QualifiedDBIdentifier path)
|
Table |
findTable(Schema inSchema,
DBIdentifier name)
|
Table |
findTable(Schema inSchema,
DBIdentifier name,
DBIdentifier defaultSchemaName)
|
Table |
findTable(Schema inSchema,
QualifiedDBIdentifier path,
DBIdentifier defaultSchemaName)
|
Table |
findTable(Schema inSchema,
String name)
Deprecated. |
Table |
findTable(String name)
Deprecated. |
Table |
findTable(Table table)
Find the equivalent of the given table in this schema group. |
Schema |
getSchema(DBIdentifier name)
|
Schema |
getSchema(String name)
Deprecated. |
Schema[] |
getSchemas()
Return all schemas. |
Schema |
importSchema(Schema schema)
Import a schema from another group. |
boolean |
isKnownSequence(DBIdentifier name)
|
boolean |
isKnownSequence(QualifiedDBIdentifier path)
|
boolean |
isKnownSequence(Sequence seq)
Return true if the given sequence is known to exist. |
boolean |
isKnownSequence(String name)
Deprecated. |
boolean |
isKnownTable(QualifiedDBIdentifier path)
|
boolean |
isKnownTable(String name)
Deprecated. |
boolean |
isKnownTable(Table table)
Return true if the given table is known to exist. |
protected Column |
newColumn(DBIdentifier name,
Table table)
|
protected Column |
newColumn(String name,
Table table)
Deprecated. |
protected ForeignKey |
newForeignKey(DBIdentifier name,
Table table)
|
protected ForeignKey |
newForeignKey(String name,
Table table)
Deprecated. |
protected Index |
newIndex(DBIdentifier name,
Table table)
|
protected Index |
newIndex(String name,
Table table)
Deprecated. |
protected SchemaGroup |
newInstance()
Create a new instance of this class. |
protected PrimaryKey |
newPrimaryKey(DBIdentifier name,
Table table)
|
protected PrimaryKey |
newPrimaryKey(String name,
Table table)
Deprecated. |
protected Schema |
newSchema(DBIdentifier name)
|
protected Schema |
newSchema(String name)
Deprecated. |
protected Sequence |
newSequence(DBIdentifier name,
Schema schema)
|
protected Sequence |
newSequence(String name,
Schema schema)
Deprecated. |
protected Table |
newTable(DBIdentifier name,
Schema schema)
|
protected Table |
newTable(String name,
Schema schema)
Deprecated. |
protected Unique |
newUnique(DBIdentifier name,
Table table)
|
protected Unique |
newUnique(String name,
Table table)
Deprecated. |
boolean |
removeSchema(Schema schema)
Remove the given schema from the group. |
void |
removeUnusedComponents()
Remove unreferenced or emtpy components from the schema. |
Methods inherited from class org.apache.openjpa.jdbc.schema.NameSet |
---|
addName, addName, isNameTaken, isNameTaken, removeName, removeName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaGroup()
Method Detail |
---|
public Schema[] getSchemas()
public Schema getSchema(String name)
public Schema getSchema(DBIdentifier name)
public Schema addSchema()
public Schema addSchema(DBIdentifier name)
public Schema addSchema(String name)
name
-
public boolean removeSchema(Schema schema)
public Schema importSchema(Schema schema)
public boolean isKnownTable(Table table)
findTable(org.apache.openjpa.jdbc.schema.Table)
may exhibit dynamic behavior in some schema group
implementations, this method only returns true if the table has been
added to this group or is known to exist in the database.
public boolean isKnownTable(String name)
findTable(org.apache.openjpa.jdbc.schema.Table)
may exhibit dynamic behavior in some schema group
implementations, this method only returns true if the table has been
added to this group or is known to exist in the database.
public boolean isKnownTable(QualifiedDBIdentifier path)
public Table findTable(Table table)
public Table findTable(String name)
public Table findTable(QualifiedDBIdentifier path)
public Table findTable(Schema inSchema, String name)
public Table findTable(Schema inSchema, DBIdentifier name)
public Table findTable(Schema inSchema, DBIdentifier name, DBIdentifier defaultSchemaName)
public Table findTable(Schema inSchema, QualifiedDBIdentifier path, DBIdentifier defaultSchemaName)
public boolean isKnownSequence(Sequence seq)
findSequence(org.apache.openjpa.jdbc.schema.Sequence)
may exhibit dynamic behavior in some schema group
implementations, this method only returns true if the sequence has been
added to this group or is known to exist in the database.
public boolean isKnownSequence(String name)
findSequence(org.apache.openjpa.jdbc.schema.Sequence)
may exhibit dynamic behavior in some schema group
implementations, this method only returns true if the sequence has been
added to this group or is known to exist in the database.
public boolean isKnownSequence(DBIdentifier name)
public boolean isKnownSequence(QualifiedDBIdentifier path)
public Sequence findSequence(Sequence seq)
public Sequence findSequence(String name)
public Sequence findSequence(DBIdentifier name)
public Sequence findSequence(QualifiedDBIdentifier path)
public Sequence findSequence(Schema inSchema, String name)
public Sequence findSequence(Schema inSchema, QualifiedDBIdentifier path)
public ForeignKey[] findExportedForeignKeys(PrimaryKey pk)
public void removeUnusedComponents()
public Object clone()
clone
in class Object
protected SchemaGroup newInstance()
protected void copy(SchemaGroup group)
protected Schema newSchema(String name)
protected Schema newSchema(DBIdentifier name)
protected Sequence newSequence(String name, Schema schema)
protected Sequence newSequence(DBIdentifier name, Schema schema)
protected Table newTable(String name, Schema schema)
protected Table newTable(DBIdentifier name, Schema schema)
protected Column newColumn(String name, Table table)
protected Column newColumn(DBIdentifier name, Table table)
protected PrimaryKey newPrimaryKey(String name, Table table)
protected PrimaryKey newPrimaryKey(DBIdentifier name, Table table)
protected Index newIndex(String name, Table table)
protected Index newIndex(DBIdentifier name, Table table)
protected Unique newUnique(String name, Table table)
protected Unique newUnique(DBIdentifier name, Table table)
protected ForeignKey newForeignKey(String name, Table table)
protected ForeignKey newForeignKey(DBIdentifier name, Table table)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |