| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| private static String | |
| private static byte[] | |
| private static byte[] | |
| private static int | |
| private static String | |
| public static Driver | Returns: the driver of the specified versionthe version to load version)Loads the specified version of H2 in a separate class loader. |
| private static void | |
| private static void | |
| public static void | |
| public static boolean | Returns: true on success, false if URL is a remote or
in-memory URLthe JDBC connection URL url, Properties the connection properties ("user", "password", etc). info, int the old version of H2 version)Performs database upgrade from an older version of H2. |
| CHECKSUMS | back to summary |
|---|---|
| private static final String[] CHECKSUMS | |
| REPOSITORY | back to summary |
|---|---|
| private static final String REPOSITORY | |
| Upgrade | back to summary |
|---|---|
| private Upgrade() | |
| check | back to summary |
|---|---|
| private static byte[] check(byte[] data, String sha256Checksum, String checksummedFile) | |
| copyProperty | back to summary |
|---|---|
| private static String copyProperty(ConnectionInfo ci, StringBuilder oldUrl, String name) | |
| download | back to summary |
|---|---|
| private static byte[] download(String fileURL, String sha256Checksum) | |
| downloadUsingMaven | back to summary |
|---|---|
| private static byte[] downloadUsingMaven(String group, String artifact, String version, String sha256Checksum) throws IOException | |
| exec | back to summary |
|---|---|
| private static int exec(ArrayList<String> args) | |
| getSHA256 | back to summary |
|---|---|
| private static String getSHA256(byte[] data) | |
| loadH2 | back to summary |
|---|---|
| public static Driver loadH2(int version) throws IOException, ReflectiveOperationException Loads the specified version of H2 in a separate class loader.
| |
| rename | back to summary |
|---|---|
| private static void rename(String name, boolean back) throws IOException | |
| rename | back to summary |
|---|---|
| private static void rename(String name, String suffix, boolean back) throws IOException | |
| unloadH2 | back to summary |
|---|---|
| public static void unloadH2(Driver driver) throws ReflectiveOperationException Unloads the specified driver of H2.
| |
| upgrade | back to summary |
|---|---|
| public static boolean upgrade(String url, Properties info, int version) throws Exception Performs database upgrade from an older version of H2.
| |