|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.schema.DBSchemaFactory
Factory that uses an XML schema definition stored in the database to record the system schema.
Field Summary | |
static String |
ACTION_ADD
|
static String |
ACTION_DROP
|
Constructor Summary | |
DBSchemaFactory()
|
Method Summary | |
void |
dropTable()
Drops the sequence table in the DB. |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
JDBCConfiguration |
getConfiguration()
|
protected Connection |
getConnection()
Return a connection to use. |
Column |
getPKColumn()
|
Column |
getSchemaColumn()
|
String |
getTableName()
The name of the mapping information table. |
static void |
main(String[] args)
Usage: java kodo.jdbc.schema.DBSchemaFactory [option]* -action/-a <add | drop> |
SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
String |
readSchemaColumn()
Returns the schema as an XML string. |
void |
refreshTable()
Creates the schema table in the DB. |
static boolean |
run(JDBCConfiguration conf,
String action)
Run the tool. |
static boolean |
run(JDBCConfiguration conf,
String[] args,
serp.util.Options opts)
Run the tool. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
setTableName(String name)
The name of the mapping information table. |
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. |
void |
writeSchemaColumn(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 String ACTION_ADD
public static final String ACTION_DROP
Constructor Detail |
public DBSchemaFactory()
Method Detail |
public String getTableName()
JDO_SCHEMA
.public void setTableName(String name)
JDO_SCHEMA
.public JDBCConfiguration getConfiguration()
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
public Column getPKColumn()
public Column getSchemaColumn()
public SchemaGroup readSchema()
SchemaFactory
readSchema
in interface SchemaFactory
public void storeSchema(SchemaGroup schema)
SchemaFactory
storeSchema
in interface SchemaFactory
kodo.jdbc.schema.SchemaFactory
schema
- the schema definition for the entire systempublic void refreshTable() throws SQLException
public void dropTable() throws SQLException
public String readSchemaColumn() throws SQLException
public void writeSchemaColumn(String schema) throws SQLException
protected Connection getConnection() throws SQLException
public static void main(String[] args) throws IOException, SQLException
Usage: java kodo.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 adslfja83r3lkadf
The various actions are as follows.
public static boolean run(JDBCConfiguration conf, String[] args, serp.util.Options opts) throws IOException, SQLException
main(java.lang.String[])
public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |