|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.upgrade.DbUpgrade
public class DbUpgrade
This class starts the conversion from older database versions to the current version if the respective classes are found.
Constructor Summary | |
---|---|
DbUpgrade()
|
Method Summary | |
---|---|
static java.sql.Connection |
connectOrUpgrade(java.lang.String url,
java.util.Properties info)
If the upgrade classes are present, upgrade the database, or connect using the old version (if the parameter NO_UPGRADE is set to true). |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbUpgrade()
Method Detail |
---|
public static java.sql.Connection connectOrUpgrade(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
url
- the database URLinfo
- the properties
java.sql.SQLException
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 |