java.lang.Object
java.lang.Enum<DB>
pro.taskana.common.internal.configuration.DB
All Implemented Interfaces:
Serializable, Comparable<DB>, Constable

public enum DB extends Enum<DB>
Supported versions of databases.
  • Enum Constant Details

    • H2

      public static final DB H2
    • DB2

      public static final DB DB2
    • ORACLE

      public static final DB ORACLE
    • POSTGRES

      public static final DB POSTGRES
  • Field Details

    • dbProductName

      public final String dbProductName
    • dbProductId

      public final String dbProductId
    • detectionScript

      public final String detectionScript
    • schemaScript

      public final String schemaScript
  • Method Details

    • values

      public static DB[] 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 DB 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
    • getDB

      public static DB getDB(String dbProductId)
    • getDB

      public static DB getDB(Connection connection)