Enum Class JDBCType

java.lang.Object
java.lang.Enum<JDBCType>
cool.scx.jdbc.JDBCType
All Implemented Interfaces:
Serializable, Comparable<JDBCType>, Constable

public enum JDBCType extends Enum<JDBCType>
JDBCType
Version:
0.0.1
Author:
scx567888
  • Enum Constant Details

    • TINYINT

      public static final JDBCType TINYINT
      微小的整数类型 取值范围参照 Byte
    • SMALLINT

      public static final JDBCType SMALLINT
      较小的整数类型 取值范围参照 Short
    • INT

      public static final JDBCType INT
      整数类型 取值范围参照 Integer
    • BIGINT

      public static final JDBCType BIGINT
      非常大的整数类型 取值范围参照 Long
    • FLOAT

      public static final JDBCType FLOAT
      FLOAT (同义词 REAL) 浮点数 取值范围参照 Float
    • DOUBLE

      public static final JDBCType DOUBLE
      DOUBLE 浮点数 取值范围参照 Double
    • BOOLEAN

      public static final JDBCType BOOLEAN
      BOOLEAN (同义词 BIT) 一般对应 Boolean
    • DECIMAL

      public static final JDBCType DECIMAL
      精确浮点数 (同义词 NUMERIC) 一般对应 BigDecimalBigInteger
    • DATE

      public static final JDBCType DATE
      日期类型 一般对应 LocalDate
    • TIME

      public static final JDBCType TIME
      时间类型 一般对应 LocalTime
    • DATETIME

      public static final JDBCType DATETIME
      日期和时间类型 一般对应 LocalDateTime
    • VARCHAR

      public static final JDBCType VARCHAR
      较短的文字 一般对应 String
    • TEXT

      public static final JDBCType TEXT
      很长的文字 (用于 VARCHAR 无法存储的大小)
    • LONGTEXT

      public static final JDBCType LONGTEXT
      非常大的文字 (用于 TEXT 无法存储的大小)
    • BLOB

      public static final JDBCType BLOB
      二进制数据 一般用于存储 byte 数组
    • LONGBLOB

      public static final JDBCType LONGBLOB
      非常大的二进制数据 (用于 BLOB 无法存储的大小)
    • JSON

      public static final JDBCType JSON
      JSON 格式
  • Method Details

    • values

      public static JDBCType[] 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 JDBCType 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
    • getByJavaType

      public static JDBCType getByJavaType(Class<?> javaType)