|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.upgrade.DbUpgradeNonPageStoreToCurrent
public class DbUpgradeNonPageStoreToCurrent
Class to convert a 1.1 DB (non page store) to a 1.2 DB (page store) format. Conversion is done via "script to" and "runscript from".
| Constructor Summary | |
|---|---|
DbUpgradeNonPageStoreToCurrent(java.lang.String url,
java.util.Properties info)
Converts a database from a 1.1 DB (non page store) to a 1.2 DB (page store) format. |
|
| Method Summary | |
|---|---|
boolean |
mustBeConverted()
Returns if a database must be converted by this class. |
static void |
setDeleteOldDb(boolean deleteOldDb)
Old files will be renamed to .backup after a successful conversion. |
static void |
setScriptInTmpDir(boolean scriptInTmpDir)
The conversion script file will per default be created in the db directory. |
void |
upgrade()
Converts the database from 1.1 (non page store) to current (page store). |
boolean |
wasSuccessful()
Returns if the database upgrade was successful. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUpgradeNonPageStoreToCurrent(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
url - The connection stringinfo - The connection properties
java.sql.SQLException - if an exception occurred| Method Detail |
|---|
public boolean mustBeConverted()
throws java.sql.SQLException
java.sql.SQLException
public void upgrade()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean wasSuccessful()
public static void setScriptInTmpDir(boolean scriptInTmpDir)
scriptInTmpDir - true if the conversion script should be
located in the temp directory.public static void setDeleteOldDb(boolean deleteOldDb)
deleteOldDb - if true, the old db files will be deleted.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||