Package com.altibase.document.api.domain
Record Class KeyTypeInfo
java.lang.Object
java.lang.Record
com.altibase.document.api.domain.KeyTypeInfo
- Record Components:
type- SQL 타입 이름 (예: "VARCHAR", "BIGINT")size- 타입 크기 (nullable, VARCHAR 등에 사용)
SQL 타입의 타입과 크기를 담는 도메인 객체(Value Object)이다.
이 레코드는 "VARCHAR(40)" 같은 SQL 타입 문자열을 파싱하거나 재구성할 때 사용된다.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyTypeInfo(String type, Integer size) Creates an instance of aKeyTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-