Package com.altibase.document.api
Enum Class JsonColumnType
- All Implemented Interfaces:
Serializable,Comparable<JsonColumnType>,Constable
JSON 문서를 저장할 수 있는 데이터베이스의 컬럼 타입을 나타내는 열거형(Enum).
각 상수는 데이터베이스에서 사용되는 실제 타입 문자열과 Types에 정의된 정수 값을 가진다.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonColumnTypefromInt(int aValue) Types에 정의된 정수 코드에 해당하는JsonColumnType상수를 찾아 반환한다.static JsonColumnTypefromString(String aText) 대소문자를 구분하지 않고 문자열로부터JsonColumnTypeEnum 상수를 반환한다.이 Enum 상수에 해당하는 데이터베이스 컬럼 타입 문자열을 반환한다.int이 Enum 상수에 해당하는Types정수 코드 값을 반환한다.static JsonColumnTypeReturns the enum constant of this class with the specified name.static JsonColumnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VARCHAR
VARCHAR 데이터 타입. 최대 32000자까지 저장할 수 있다. -
CLOB
CLOB 데이터 타입. 대용량 텍스트 데이터를 저장하는 데 사용된다. -
JSON
Altibase 전용 JSON 데이터 타입.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDbType
이 Enum 상수에 해당하는 데이터베이스 컬럼 타입 문자열을 반환한다.예:
JsonColumnType.VARCHAR.getDbType()는 "VARCHAR(32000)"을 반환한다.- Returns:
- 데이터베이스 컬럼 타입 문자열
-
getJdbcType
public int getJdbcType()이 Enum 상수에 해당하는Types정수 코드 값을 반환한다.- Returns:
- JDBC 타입 정수 코드
-
fromInt
Types에 정의된 정수 코드에 해당하는JsonColumnType상수를 찾아 반환한다.- Parameters:
aValue- 변환할 정수 타입 코드 (e.g.,java.sql.Types.VARCHAR)- Returns:
- 정수 코드에 매칭되는
JsonColumnType상수 - Throws:
IllegalArgumentException- 매칭되는 상수가 없을 경우
-
fromString
대소문자를 구분하지 않고 문자열로부터JsonColumnTypeEnum 상수를 반환한다.- Parameters:
aText- 변환할 문자열 (e.g., "json", "JSON", "VARCHAR")- Returns:
- 문자열에 매칭되는
JsonColumnType상수 - Throws:
IllegalArgumentException- 매칭되는 상수가 없거나 입력된 문자열이null일 경우
-