Upgrade
Upgrade utility.
Methods |
static Driver |
loadH2(int version)
Loads the specified version of H2 in a separate class loader.
|
static Driver |
loadH2(int version) throws IOException, ReflectiveOperationException
Loads the specified version of H2 in a separate class loader.
Parameters:
version - the version to load
Returns:
the driver of the specified version
Throws:
IOException - on I/O exception
ReflectiveOperationException - on exception during initialization of the driver
|
static void |
unloadH2(Driver driver)
Unloads the specified driver of H2.
|
static void |
unloadH2(Driver driver) throws ReflectiveOperationException
Unloads the specified driver of H2.
Parameters:
driver - the driver to unload
Throws:
ReflectiveOperationException - on exception
|
static boolean |
upgrade(String url, Properties info, int version)
Performs database upgrade from an older version of H2.
|
static boolean |
upgrade(String url, Properties info, int version) throws Exception
Performs database upgrade from an older version of H2.
Parameters:
url - the JDBC connection URL
info - the connection properties ("user", "password", etc).
version - the old version of H2
Returns:
{@code true} on success, {@code false} if URL is a remote or
in-memory URL
Throws:
Exception - on failure
|
|