|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.NameSet
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup
|
+--com.solarmetric.rd.kodo.impl.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(java.lang.String) is called. Columns
are added to tables when Table.getColumn(java.lang.String) is called. And the
column types are set when Column#isComptible is called.
| Constructor Summary | |
DynamicSchemaFactory()
|
|
| Method Summary | |
com.solarmetric.rd.kodo.impl.jdbc.schema.Table |
findTable(java.lang.String name)
Find the table with the given name in the group. |
protected com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
newColumn(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Return a new column with the given name and owner table. |
protected com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey |
newForeignKey(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Return a new foreign key with the given name and owner table. |
protected com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey |
newPrimaryKey(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Return a new primary key with the given name and owner table. |
protected com.solarmetric.rd.kodo.impl.jdbc.schema.Table |
newTable(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Schema schema)
Return a new table with the given name and owner schema. |
com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
void |
setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
Set the configuration for the factory. |
void |
storeSchema(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup schema)
Record the schema group after changes may have been made. |
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup |
addSchema, addSchema, clone, findExportedForeignKeys, getSchema, getSchemas, importSchema, newIndex, newSchema, removeSchema, removeUnusedComponents |
| Methods inherited from class com.solarmetric.rd.kodo.impl.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(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
SchemaFactory
setConfiguration in interface SchemaFactorypublic com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup readSchema()
SchemaFactory
readSchema in interface SchemaFactorypublic void storeSchema(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup schema)
SchemaFactory
storeSchema in interface SchemaFactoryschema - the schema definition for the entire systempublic com.solarmetric.rd.kodo.impl.jdbc.schema.Table findTable(java.lang.String name)
SchemaGroup
findTable in class SchemaGroup
protected com.solarmetric.rd.kodo.impl.jdbc.schema.Table newTable(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Schema schema)
SchemaGroup
newTable in class SchemaGroup
protected com.solarmetric.rd.kodo.impl.jdbc.schema.Column newColumn(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
SchemaGroup
newColumn in class SchemaGroup
protected com.solarmetric.rd.kodo.impl.jdbc.schema.PrimaryKey newPrimaryKey(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
SchemaGroup
newPrimaryKey in class SchemaGroup
protected com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey newForeignKey(java.lang.String name,
com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
SchemaGroup
newForeignKey in class SchemaGroup
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||