|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.tools.JDBC.THD_ReinitConverter
public class THD_ReinitConverter
A destructive implementation of the Converter interface that drops
any bad tables and recreates them, DELETING ALL EXISTING DATA to
avoid referential integrity problems. Reloading the data from an
export file is attempted, but if the import fails, or if the data
is not up to date, then data can be lost. Use this converter with
extreme caution for anything outside of a development build.
AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: declared in build
generator: org.sandev.generator.SQLReinitConverterGenerator
time: Jul 31, 2008 4:34:17 PM
| Field Summary | |
|---|---|
protected org.sandev.basics.DataManager.DataManagerNode |
dm
Our local back reference, set during init |
| Constructor Summary | |
|---|---|
THD_ReinitConverter()
|
|
| Method Summary | |
|---|---|
protected void |
clearData(THD_SchemaVerifier sv)
Delete all the data from each table. |
void |
fixStructure(java.lang.String tableName,
java.lang.Object schemaVerifier)
Clear all the data, then drop and recreate all the tables. |
protected void |
fixTable(java.lang.String tableName,
THD_SchemaVerifier sv)
Drop and recreate the specified table. |
void |
init(org.sandev.basics.DataManager.DataManagerNode dm)
Initialize our DataManager back reference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.sandev.basics.DataManager.DataManagerNode dm
| Constructor Detail |
|---|
public THD_ReinitConverter()
| Method Detail |
|---|
public void init(org.sandev.basics.DataManager.DataManagerNode dm)
init in interface org.sandev.basics.DataManager.Converter
public void fixStructure(java.lang.String tableName,
java.lang.Object schemaVerifier)
fixStructure in interface org.sandev.basics.DataManager.Converterprotected void clearData(THD_SchemaVerifier sv)
protected void fixTable(java.lang.String tableName,
THD_SchemaVerifier sv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||