Record Class TableDescriptorAsTableMapping
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.meta.TableDescriptorAsTableMapping
- All Implemented Interfaces:
TableDetails, TableMapping
@Incubating
public record TableDescriptorAsTableMapping(TableDescriptor descriptor, int relativePosition, boolean isIdentifierTable, boolean isInverse)
extends Record
implements TableMapping
Adapts a
TableDescriptor to the TableMapping interface,
allowing graph-based infrastructure to use standard SQL model mutation builders.- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TableDetails
TableDetails.KeyColumn, TableDetails.KeyColumnConsumer, TableDetails.KeyDetailsNested classes/interfaces inherited from interface TableMapping
TableMapping.MutationDetails -
Constructor Summary
ConstructorsConstructorDescriptionTableDescriptorAsTableMapping(TableDescriptor descriptor, int relativePosition, boolean isIdentifierTable, boolean isInverse) Creates an instance of aTableDescriptorAsTableMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Details for deleting from this tableDetails for insertion into this tableDetails about the primary-key of this tableThe name of the mapped tableDetails for updating this tablefinal inthashCode()Returns a hash code value for this object.booleanWhether deletions are cascaded to this table at the database level.booleanReturns the value of theisIdentifierTablerecord component.booleanReturns the value of theisInverserecord component.booleanWhether the table is mapped as optionalintReturns the value of therelativePositionrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface TableMapping
containsTableName
-
Constructor Details
-
TableDescriptorAsTableMapping
public TableDescriptorAsTableMapping(TableDescriptor descriptor, int relativePosition, boolean isIdentifierTable, boolean isInverse) Creates an instance of aTableDescriptorAsTableMappingrecord class.- Parameters:
descriptor- the value for thedescriptorrecord componentrelativePosition- the value for therelativePositionrecord componentisIdentifierTable- the value for theisIdentifierTablerecord componentisInverse- the value for theisInverserecord component
-
-
Method Details
-
getTableName
Description copied from interface:TableMappingThe name of the mapped table- Specified by:
getTableNamein interfaceTableDetails- Specified by:
getTableNamein interfaceTableMapping
-
isOptional
public boolean isOptional()Description copied from interface:TableMappingWhether the table is mapped as optional- Specified by:
isOptionalin interfaceTableMapping
-
getInsertDetails
Description copied from interface:TableMappingDetails for insertion into this table- Specified by:
getInsertDetailsin interfaceTableMapping
-
getUpdateDetails
Description copied from interface:TableMappingDetails for updating this table- Specified by:
getUpdateDetailsin interfaceTableMapping
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()Description copied from interface:TableMappingWhether deletions are cascaded to this table at the database level.- Specified by:
isCascadeDeleteEnabledin interfaceTableMapping- See Also:
-
getDeleteDetails
Description copied from interface:TableMappingDetails for deleting from this table- Specified by:
getDeleteDetailsin interfaceTableMapping
-
getKeyDetails
Description copied from interface:TableDetailsDetails about the primary-key of this table- Specified by:
getKeyDetailsin interfaceTableDetails
-
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. -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
relativePosition
public int relativePosition()Returns the value of therelativePositionrecord component.- Specified by:
relativePositionin interfaceTableMapping- Returns:
- the value of the
relativePositionrecord component
-
isIdentifierTable
public boolean isIdentifierTable()Returns the value of theisIdentifierTablerecord component.- Specified by:
isIdentifierTablein interfaceTableDetails- Specified by:
isIdentifierTablein interfaceTableMapping- Returns:
- the value of the
isIdentifierTablerecord component
-
isInverse
public boolean isInverse()Returns the value of theisInverserecord component.- Specified by:
isInversein interfaceTableMapping- Returns:
- the value of the
isInverserecord component
-