Enum Class DatabaseVendor

java.lang.Object
java.lang.Enum<DatabaseVendor>
com.atlassian.jira.database.DatabaseVendor
All Implemented Interfaces:
Serializable, Comparable<DatabaseVendor>, Constable

public enum DatabaseVendor extends Enum<DatabaseVendor>
An enum representing the supported database vendors that JIRA can connect to.
Since:
v7.0
  • Enum Constant Details

  • Method Details

    • values

      public static DatabaseVendor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DatabaseVendor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getHumanReadableName

      public String getHumanReadableName()
    • getSQLServerVersionIfExists

      @Deprecated public static String getSQLServerVersionIfExists(String version)
      Deprecated.
      since 8.3, to be removed in 9.0
      This is a public static delegate to private static method getSQLServerVersion(). It's there to satisfy API checker / backwards compatibility.
      Parameters:
      version - The version as a String, e.g.: "10.50.1600.1".
      Returns:
      marketing version name e.g "2008 R2"
    • getVersion

      public String getVersion(String version)
      Gets a release version of a database, i.e.: - minor.minor (without micro/bugfix position) or - marketing name for a release Note: this method is overridden for some vendors
      Parameters:
      version - The version string as retrieved from the DatabaseAccessor
      Returns:
      release version
      Throws:
      IllegalArgumentException - in case of failure, message explains the reason
    • getHumanReadableVersion

      public String getHumanReadableVersion(String version)
      Gets a release version of a database like getVersion() method, but does not throw in case of failure.
      Parameters:
      version - The version string as retrieved from the DatabaseAccessor
      Returns:
      release version or input version in case of failure