Class H2VersionUtils

java.lang.Object
org.evomaster.client.java.sql.h2.H2VersionUtils

public abstract class H2VersionUtils extends Object
  • Field Details

    • H2_VERSION_2_0_0

      public static final String 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

      public static boolean isVersionGreaterOrEqual(String versionString, String otherVersionString)
      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

      public static String getH2Version(Connection connectionToH2) throws SQLException
      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