|
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.DBSchemaFactory
Factory that uses an XML schema definition stored in the database to record the system schema.
| Field Summary | |
static java.lang.String |
ACTION_ADD
|
static java.lang.String |
ACTION_DROP
|
| Constructor Summary | |
DBSchemaFactory()
|
|
| Method Summary | |
void |
dropTable()
Drops the sequence table in the DB. |
com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration |
getConfiguration()
|
protected java.sql.Connection |
getConnection()
Return a connection to use. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
getPKColumn()
|
com.solarmetric.rd.kodo.impl.jdbc.schema.Column |
getSchemaColumn()
|
static void |
main(java.lang.String[] args)
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSchemaFactory [option]* -action/-a <add | drop> |
com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
java.lang.String |
readSchemaColumn()
Returns the schema as an XML string. |
void |
refreshTable()
Creates the schema table in the DB. |
static boolean |
run(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf,
java.lang.String action)
|
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. |
void |
writeSchemaColumn(java.lang.String schema)
Writes the schema as a string to the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ACTION_ADD
public static final java.lang.String ACTION_DROP
| Constructor Detail |
public DBSchemaFactory()
| Method Detail |
public com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration getConfiguration()
public void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
SchemaFactory
setConfiguration in interface SchemaFactorypublic com.solarmetric.rd.kodo.impl.jdbc.schema.Column getPKColumn()
public com.solarmetric.rd.kodo.impl.jdbc.schema.Column getSchemaColumn()
public 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 system
public void refreshTable()
throws java.sql.SQLException
java.sql.SQLException
public void dropTable()
throws java.sql.SQLException
java.sql.SQLException
public java.lang.String readSchemaColumn()
throws java.sql.SQLException
java.sql.SQLException
public void writeSchemaColumn(java.lang.String schema)
throws java.sql.SQLException
java.sql.SQLException
protected java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.sql.SQLException
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSchemaFactory [option]* -action/-a <add | drop>
Where the following options are recognized.
JDBCConfiguration. Optional.JDBCConfiguration can be set by
using their names and supplying a value. For example:
-licenseKey adslfja83r3lkadfThe various actions are as follows.
java.io.IOException
java.sql.SQLException
public static boolean run(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf,
java.lang.String action)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
|
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 | |||||||||