Enum Class JsonColumnType

java.lang.Object
java.lang.Enum<JsonColumnType>
com.altibase.document.api.JsonColumnType
All Implemented Interfaces:
Serializable, Comparable<JsonColumnType>, Constable

public enum JsonColumnType extends Enum<JsonColumnType>
JSON 문서를 저장할 수 있는 데이터베이스의 컬럼 타입을 나타내는 열거형(Enum).

각 상수는 데이터베이스에서 사용되는 실제 타입 문자열과 Types에 정의된 정수 값을 가진다.

  • Enum Constant Details

    • VARCHAR

      public static final JsonColumnType VARCHAR
      VARCHAR 데이터 타입. 최대 32000자까지 저장할 수 있다.
    • CLOB

      public static final JsonColumnType CLOB
      CLOB 데이터 타입. 대용량 텍스트 데이터를 저장하는 데 사용된다.
    • JSON

      public static final JsonColumnType JSON
      Altibase 전용 JSON 데이터 타입.
  • Method Details

    • values

      public static JsonColumnType[] 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 JsonColumnType 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
    • getDbType

      public String getDbType()
      이 Enum 상수에 해당하는 데이터베이스 컬럼 타입 문자열을 반환한다.

      예: JsonColumnType.VARCHAR.getDbType()는 "VARCHAR(32000)"을 반환한다.

      Returns:
      데이터베이스 컬럼 타입 문자열
    • getJdbcType

      public int getJdbcType()
      이 Enum 상수에 해당하는 Types 정수 코드 값을 반환한다.
      Returns:
      JDBC 타입 정수 코드
    • fromInt

      public static JsonColumnType fromInt(int aValue)
      Types에 정의된 정수 코드에 해당하는 JsonColumnType 상수를 찾아 반환한다.
      Parameters:
      aValue - 변환할 정수 타입 코드 (e.g., java.sql.Types.VARCHAR)
      Returns:
      정수 코드에 매칭되는 JsonColumnType 상수
      Throws:
      IllegalArgumentException - 매칭되는 상수가 없을 경우
    • fromString

      public static JsonColumnType fromString(String aText)
      대소문자를 구분하지 않고 문자열로부터 JsonColumnType Enum 상수를 반환한다.
      Parameters:
      aText - 변환할 문자열 (e.g., "json", "JSON", "VARCHAR")
      Returns:
      문자열에 매칭되는 JsonColumnType 상수
      Throws:
      IllegalArgumentException - 매칭되는 상수가 없거나 입력된 문자열이 null일 경우