|
|||||||||
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 boolean |
areUpgradeClassesPresent()
Check if the H2 version 1.1 driver is in in the classpath. |
static java.sql.Connection |
connectWithOldVersion(java.lang.String url,
java.util.Properties info)
Connects to an old (version 1.1) database. |
static void |
upgrade(java.lang.String url,
java.util.Properties info)
Starts the conversion if the respective classes are found. |
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 boolean areUpgradeClassesPresent()
public static java.sql.Connection connectWithOldVersion(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
url
- The connection stringinfo
- The connection properties
java.sql.SQLException
public static void upgrade(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
url
- The connection stringinfo
- The connection properties
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |