|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.schema.NameSet
org.apache.openjpa.jdbc.schema.SchemaGroup
org.apache.openjpa.jdbc.schema.DynamicSchemaFactory
public class DynamicSchemaFactory
Factory whose schema group dynamically fills itself with information
as mappings validate themselves in their map method.
Tables are added when SchemaGroup.findTable(org.apache.openjpa.jdbc.schema.Table) is called. Columns
are added to tables when Table.getColumn(java.lang.String) is called. And the
column types are set when Column.isCompatible(int, java.lang.String, int, int) is called.
| Constructor Summary | |
|---|---|
DynamicSchemaFactory()
|
|
| Method Summary | |
|---|---|
void |
endConfiguration()
|
Table |
findTable(DBIdentifier name)
|
Table |
findTable(QualifiedDBIdentifier path)
|
Table |
findTable(String name)
Find the table with the given name in the group, using '.' as the catalog separator. |
boolean |
isKnownTable(QualifiedDBIdentifier path)
|
boolean |
isKnownTable(String name)
Return true if the given table is known to exist. |
boolean |
isKnownTable(Table table)
Return true if the given table is known to exist. |
protected Column |
newColumn(DBIdentifier name,
Table table)
|
protected Table |
newTable(DBIdentifier name,
Schema schema)
|
SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
void |
setConfiguration(Configuration conf)
|
void |
startConfiguration()
|
void |
storeSchema(SchemaGroup schema)
Record the schema group after changes may have been made. |
| Methods inherited from class org.apache.openjpa.jdbc.schema.SchemaGroup |
|---|
addSchema, addSchema, addSchema, clone, copy, findExportedForeignKeys, findSequence, findSequence, findSequence, findSequence, findSequence, findSequence, findTable, findTable, findTable, findTable, findTable, getSchema, getSchema, getSchemas, importSchema, isKnownSequence, isKnownSequence, isKnownSequence, isKnownSequence, newColumn, newForeignKey, newForeignKey, newIndex, newIndex, newInstance, newPrimaryKey, newPrimaryKey, newSchema, newSchema, newSequence, newSequence, newTable, newUnique, newUnique, removeSchema, removeUnusedComponents |
| 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 DynamicSchemaFactory()
| Method Detail |
|---|
public void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface Configurablepublic SchemaGroup readSchema()
SchemaFactory
readSchema in interface SchemaFactorypublic void storeSchema(SchemaGroup schema)
SchemaFactory
storeSchema in interface SchemaFactoryschema - the schema definition for the entire systempublic boolean isKnownTable(Table table)
SchemaGroupSchemaGroup.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.
isKnownTable in class SchemaGrouppublic boolean isKnownTable(String name)
SchemaGroupSchemaGroup.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.
isKnownTable in class SchemaGrouppublic boolean isKnownTable(QualifiedDBIdentifier path)
isKnownTable in class SchemaGrouppublic Table findTable(String name)
SchemaGroup
findTable in class SchemaGrouppublic Table findTable(DBIdentifier name)
public Table findTable(QualifiedDBIdentifier path)
findTable in class SchemaGroup
protected Table newTable(DBIdentifier name,
Schema schema)
newTable in class SchemaGroup
protected Column newColumn(DBIdentifier name,
Table table)
newColumn in class SchemaGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||