Enum Class DBType

java.lang.Object
java.lang.Enum<DBType>
ru.curs.celesta.DBType
All Implemented Interfaces:
Serializable, Comparable<DBType>, Constable

public enum DBType extends Enum<DBType>
DB type.
  • Enum Constant Details

    • POSTGRESQL

      public static final DBType POSTGRESQL
      Postgre.
    • MSSQL

      public static final DBType MSSQL
      MS SQL.
    • ORACLE

      public static final DBType ORACLE
      ORACLE.
    • FIREBIRD

      public static final DBType FIREBIRD
      FIREBIRD.
    • H2

      public static final DBType H2
      H2.
    • UNKNOWN

      public static final DBType UNKNOWN
      Unknown type.
  • Method Details

    • values

      public static DBType[] 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 DBType 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
    • resolveByJdbcUrl

      public static DBType resolveByJdbcUrl(String url)
      Resolves DB type from JDBC URL string.
      Parameters:
      url - JDBC URL
      Returns:
    • getByNameIgnoreCase

      public static DBType getByNameIgnoreCase(String name)
      Returns DB type by its name ignoring case.
      Parameters:
      name - DB type name
      Returns: