Package org.evomaster.client.java.sql.h2
Class H2VersionUtils
java.lang.Object
org.evomaster.client.java.sql.h2.H2VersionUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA string representing version "2.0.0" of the H2 database -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetH2Version(Connection connectionToH2) Returns the version of the H2 database.static booleanisVersionGreaterOrEqual(String versionString, String otherVersionString) Returns true if [versionString] >= [otherVersionString]
-
Field Details
-
H2_VERSION_2_0_0
A string representing version "2.0.0" of the H2 database- See Also:
-
-
Constructor Details
-
H2VersionUtils
public H2VersionUtils()
-
-
Method Details
-
isVersionGreaterOrEqual
Returns true if [versionString] >= [otherVersionString]- Parameters:
versionString- a string with a version (e.g. "1.2.100")otherVersionString- another string with a version (e.g. "1.4.100")- Returns:
- true if [versionString] >= [otherVersionString]
-
getH2Version
Returns the version of the H2 database. Some possible values are "2.1.212", "1.4.200", "1.3.199", etc.- Parameters:
connectionToH2- the connection to the H2 database- Returns:
- the version of the H2 database
- Throws:
SQLException- if the H2Version() function is not implemented
-