Enum Class DbType

java.lang.Object
java.lang.Enum<DbType>
tech.ydb.yoj.databind.DbType
All Implemented Interfaces:
Serializable, Comparable<DbType>, Constable

public enum DbType extends Enum<DbType>
Database column types supported by YDB.
  • Enum Constant Details

    • DEFAULT

      public static final DbType DEFAULT
    • BOOL

      public static final DbType BOOL
      Boolean value.
    • UINT8

      public static final DbType UINT8
      Byte value.
    • INT32

      public static final DbType INT32
      Integer value.
    • UINT32

      public static final DbType UINT32
      Integer value stored in the db as Uint32.
    • INT64

      public static final DbType INT64
      Long value.
    • UINT64

      public static final DbType UINT64
      Long value stored in the db as Uint64.
    • FLOAT

      public static final DbType FLOAT
      Float value.
    • DOUBLE

      public static final DbType DOUBLE
      Double value.
    • DATE

      public static final DbType DATE
      Date value, accurate to the day.
    • DATETIME

      public static final DbType DATETIME
      Timestamp value, accurate to second.
    • TIMESTAMP

      public static final DbType TIMESTAMP
      Timestamp value, accurate to microsecond.
    • INTERVAL

      public static final DbType INTERVAL
      Interval value, accurate to microsecond.
    • STRING

      public static final DbType STRING
      Binary data.
    • UTF8

      public static final DbType UTF8
      UTF-8 encoded string.
    • JSON

      public static final DbType JSON
      JSON value, stored as a UTF-8 encoded string.
    • JSON_DOCUMENT

      public static final DbType JSON_DOCUMENT
      JSON value, stored in an indexed representation permitting efficient query operations of the values inside the JSON value itself.
  • 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
    • typeString

      public String typeString()