|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.schema.NameSet
|
+--kodo.jdbc.schema.SchemaGroup
|
+--kodo.jdbc.schema.DynamicSchemaFactory
Factory whose schema group dynamically fills itself with information
mappings validate themselves in their fromMappingInfo method.
Tables are added when SchemaGroup.findTable(kodo.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, int) is called.
| Constructor Summary | |
DynamicSchemaFactory()
|
|
| Method Summary | |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
Table |
findTable(String name)
Find the table with the given name in the group, using '.' as the catalog separator. |
protected Column |
newColumn(String name,
Table table)
Return a new column with the given name and owner table. |
protected ForeignKey |
newForeignKey(String name,
Table table)
Return a new foreign key with the given name and owner table. |
protected PrimaryKey |
newPrimaryKey(String name,
Table table)
Return a new primary key with the given name and owner table. |
protected Table |
newTable(String name,
Schema schema)
Return a new table with the given name and owner schema. |
SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
void |
storeSchema(SchemaGroup schema)
Record the schema group after changes may have been made. |
| Methods inherited from class kodo.jdbc.schema.SchemaGroup |
addSchema, addSchema, clone, findExportedForeignKeys, findTable, getSchema, getSchemas, importSchema, newIndex, newSchema, removeSchema, removeUnusedComponents |
| Methods inherited from class kodo.jdbc.schema.NameSet |
addName, isNameTaken, 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)
ConfigurablesetConfiguration in interface Configurablepublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
ConfigurableendConfiguration in interface Configurablepublic SchemaGroup readSchema()
SchemaFactoryreadSchema in interface SchemaFactorypublic void storeSchema(SchemaGroup schema)
SchemaFactorystoreSchema in interface SchemaFactorykodo.jdbc.schema.SchemaFactoryschema - the schema definition for the entire systempublic Table findTable(String name)
SchemaGroupfindTable in class SchemaGroup
protected Table newTable(String name,
Schema schema)
SchemaGroupnewTable in class SchemaGroup
protected Column newColumn(String name,
Table table)
SchemaGroupnewColumn in class SchemaGroup
protected ForeignKey newForeignKey(String name,
Table table)
SchemaGroupnewForeignKey in class SchemaGroup
protected PrimaryKey newPrimaryKey(String name,
Table table)
SchemaGroupnewPrimaryKey in class SchemaGroup
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||