Enum DatabaseTypeEnum

java.lang.Object
java.lang.Enum<DatabaseTypeEnum>
com.pugwoo.dbhelper.enums.DatabaseTypeEnum
All Implemented Interfaces:
Serializable, Comparable<DatabaseTypeEnum>, java.lang.constant.Constable

public enum DatabaseTypeEnum extends Enum<DatabaseTypeEnum>
数据库类型枚举值
  • Enum Constant Details

  • Method Details

    • values

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

      public static DatabaseTypeEnum valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getByJdbcProtocol

      public static DatabaseTypeEnum getByJdbcProtocol(String jdbcProtocol)
    • getByCode

      public static DatabaseTypeEnum getByCode(String code)
    • getNameByCode

      public static String getNameByCode(String code)
    • getCode

      public String getCode()
    • getName

      public String getName()