|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.upgrade.DbUpgradeFromVersion1
public class DbUpgradeFromVersion1
Class to convert a 1.1 database (non page store) to the 1.2 (page store) format. Conversion is done via "script to" and "runscript from".
Constructor Summary | |
---|---|
DbUpgradeFromVersion1(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 |
setScriptInTempDir(boolean scriptInTempDir)
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 DbUpgradeFromVersion1(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 occurredMethod Detail |
---|
public boolean mustBeConverted() throws java.sql.SQLException
java.sql.SQLException
public void upgrade() throws java.sql.SQLException
java.sql.SQLException
public boolean wasSuccessful()
public static void setScriptInTempDir(boolean scriptInTempDir)
scriptInTempDir
- 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 |