程序包 cn.zhxu.bs.bean

Enum Class DbType

java.lang.Object
java.lang.Enum<DbType>
cn.zhxu.bs.bean.DbType
所有已实现的接口:
Serializable, Comparable<DbType>, java.lang.constant.Constable

public enum DbType extends Enum<DbType>
数据库字段类型
从以下版本开始:
v3.8.0
作者:
Troy.Zhou @ 2022-06-07
  • 枚举常量详细资料

    • BOOL

      public static final DbType BOOL
      布尔字段
    • BYTE

      public static final DbType BYTE
      字节
    • SHORT

      public static final DbType SHORT
      短整形
    • INT

      public static final DbType INT
      整形字段
    • LONG

      public static final DbType LONG
      长整形字段
    • FLOAT

      public static final DbType FLOAT
      浮点型
    • DOUBLE

      public static final DbType DOUBLE
      双精度
    • DECIMAL

      public static final DbType DECIMAL
      金融数字
    • STRING

      public static final DbType STRING
      字符串
    • JSON

      public static final DbType JSON
      JSON 字段
      从以下版本开始:
      v4.0.0
    • DATE

      public static final DbType DATE
      日期(没有时间)
    • TIME

      public static final DbType TIME
      时间(没有日期)
    • DATETIME

      public static final DbType DATETIME
      日期+时间
    • UNKNOWN

      public static final DbType UNKNOWN
      未知(自动推断)
  • 方法详细资料

    • values

      public static DbType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getType

      public Class<?> getType()