Package com.altibase.document.api.domain
Record Class CollectionMetaData
java.lang.Object
java.lang.Record
com.altibase.document.api.domain.CollectionMetaData
- Record Components:
collectionName- 컬렉션의 논리적 이름tableName- 실제 생성/매핑될 테이블의 물리적 이름 (생략 시 collectionName과 동일)keyColumnName- 키로 사용되는 실제 데이터베이스 컬럼의 이름keyTypeName- 데이터베이스에 정의된 키 컬럼의 타입 이름 (예: "VARCHAR", "BIGINT")keyType- 키 컬럼 타입에 매핑되는 자바Class객체 (예:String.class)jsonColumnType- JSON 문서가 저장되는 컬럼의 타입keyGenerationType- 키 생성 방식 (UUID 또는 CLIENT)ownerId- 컬렉션 소유자 ID- 공유 컬렉션 여부
public record CollectionMetaData(String collectionName, String tableName, String keyColumnName, String keyTypeName, Class<?> keyType, JsonColumnType jsonColumnType, KeyGenerationType keyGenerationType, String ownerId, boolean isShared)
extends Record
Altibase JSON 컬렉션의 핵심 메타데이터를 캡슐화하는 불변(Immutable) 레코드이다.
이 레코드의 인스턴스는 컬렉션이 생성되거나 조회될 때 데이터베이스로부터 읽어온 스키마 정보를 담는다. 내부적으로 SQL 쿼리를 생성하거나 키 타입을 검증하는 등 컬렉션의 동작 방식을 결정하는 데 사용된다. 도메인 영역의 핵심 정보를 담은 불변 객체(Value Object)이다.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionMetaData(String collectionName, String tableName, String keyColumnName, String keyTypeName, Class<?> keyType, JsonColumnType jsonColumnType, KeyGenerationType keyGenerationType, String ownerId, boolean isShared) Creates an instance of aCollectionMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisShared()Returns the value of theisSharedrecord component.Returns the value of thejsonColumnTyperecord component.Returns the value of thekeyColumnNamerecord component.Returns the value of thekeyGenerationTyperecord component.Class<?>keyType()Returns the value of thekeyTyperecord component.Returns the value of thekeyTypeNamerecord component.ownerId()Returns the value of theownerIdrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionMetaData
public CollectionMetaData(String collectionName, String tableName, String keyColumnName, String keyTypeName, Class<?> keyType, JsonColumnType jsonColumnType, KeyGenerationType keyGenerationType, String ownerId, boolean isShared) Creates an instance of aCollectionMetaDatarecord class.- Parameters:
collectionName- the value for thecollectionNamerecord componenttableName- the value for thetableNamerecord componentkeyColumnName- the value for thekeyColumnNamerecord componentkeyTypeName- the value for thekeyTypeNamerecord componentkeyType- the value for thekeyTyperecord componentjsonColumnType- the value for thejsonColumnTyperecord componentkeyGenerationType- the value for thekeyGenerationTyperecord componentownerId- the value for theownerIdrecord componentisShared- the value for theisSharedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
collectionName
Returns the value of thecollectionNamerecord component.- Returns:
- the value of the
collectionNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
keyColumnName
Returns the value of thekeyColumnNamerecord component.- Returns:
- the value of the
keyColumnNamerecord component
-
keyTypeName
Returns the value of thekeyTypeNamerecord component.- Returns:
- the value of the
keyTypeNamerecord component
-
keyType
Returns the value of thekeyTyperecord component.- Returns:
- the value of the
keyTyperecord component
-
jsonColumnType
Returns the value of thejsonColumnTyperecord component.- Returns:
- the value of the
jsonColumnTyperecord component
-
keyGenerationType
Returns the value of thekeyGenerationTyperecord component.- Returns:
- the value of the
keyGenerationTyperecord component
-
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-