Record Class TableKeyDescriptor
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.meta.TableKeyDescriptor
- All Implemented Interfaces:
Serializable, SelectableMappings
@Incubating
public record TableKeyDescriptor(List<ColumnDescriptor> columns)
extends Record
implements SelectableMappings, Serializable
Descriptor for primary key columns.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTableKeyDescriptor(List<ColumnDescriptor> columns) Creates an instance of aTableKeyDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.intforEachSelectable(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.static TableKeyDescriptorfrom(SelectableMappings keyMappings) static TableKeyDescriptorfrom(EntityTableMappingImpl.KeyMapping keyMapping) intThe number of selectablesgetSelectable(int columnIndex) Get the selectable at the given positionfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SelectableMappings
forEachSelectable
-
Constructor Details
-
TableKeyDescriptor
Creates an instance of aTableKeyDescriptorrecord class.- Parameters:
columns- the value for thecolumnsrecord component
-
-
Method Details
-
from
-
from
-
getJdbcTypeCount
public int getJdbcTypeCount()Description copied from interface:SelectableMappingsThe number of selectables- Specified by:
getJdbcTypeCountin interfaceSelectableMappings
-
getSelectable
Description copied from interface:SelectableMappingsGet the selectable at the given position- Specified by:
getSelectablein interfaceSelectableMappings
-
forEachSelectable
Description copied from interface:SelectableMappingsVisit each contained selectable mapping. As the selectables are iterated, we call `SelectionConsumer` passing along `offset` + our current iteration index. The return is the number of selectables we directly contain- Specified by:
forEachSelectablein interfaceSelectableMappings- See Also:
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-