Record Class KeyColumn
java.lang.Object
java.lang.Record
io.bloviate.db.KeyColumn
- Record Components:
sequence- the ordinal position of this column in a composite key (1-based)column- the column that is part of the key
One column of a possibly-composite key, paired with its position within that key.
It joins a Column to its 1-based sequence in the enclosing primary or foreign
key, so a multi-column key is described by several KeyColumns in declared order. A simple
key holds a single instance at sequence 1. Preserving the position matters because the
columns of a foreign key must align with the primary-key columns they reference.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyColumn
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
sequence
-
column
-