public final class Upgrade
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.sql.Driver |
loadH2(int version)
Loads the specified version of H2 in a separate class loader.
|
static void |
unloadH2(java.sql.Driver driver)
Unloads the specified driver of H2.
|
static boolean |
upgrade(java.lang.String url,
java.util.Properties info,
int version)
Performs database upgrade from an older version of H2.
|
public static boolean upgrade(java.lang.String url,
java.util.Properties info,
int version)
throws java.lang.Exception
url - the JDBC connection URLinfo - the connection properties ("user", "password", etc).version - the old version of H2true on success, false if URL is a remote or
in-memory URLjava.lang.Exception - on failurepublic static java.sql.Driver loadH2(int version)
throws java.io.IOException,
java.lang.ReflectiveOperationException
version - the version to loadjava.io.IOException - on I/O exceptionjava.lang.ReflectiveOperationException - on exception during initialization of the driverpublic static void unloadH2(java.sql.Driver driver)
throws java.lang.ReflectiveOperationException
driver - the driver to unloadjava.lang.ReflectiveOperationException - on exception