public abstract class H2VersionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
H2_VERSION_2_0_0
A string representing version "2.0.0" of the H2 database
|
| Constructor and Description |
|---|
H2VersionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getH2Version(Connection connectionToH2)
Returns the version of the H2 database.
|
static boolean |
isVersionGreaterOrEqual(String versionString,
String otherVersionString)
Returns true if [versionString] >= [otherVersionString]
|
public static final String H2_VERSION_2_0_0
public static boolean isVersionGreaterOrEqual(String versionString, String otherVersionString)
versionString - a string with a version (e.g. "1.2.100")otherVersionString - another string with a version (e.g. "1.4.100")public static String getH2Version(Connection connectionToH2) throws SQLException
connectionToH2 - the connection to the H2 databaseSQLException - if the H2Version() function is not implementedCopyright © 2016–2024. All rights reserved.