Record Class CollectionTableDescriptor
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.meta.CollectionTableDescriptor
- All Implemented Interfaces:
Serializable, TableDescriptor
@Incubating
public record CollectionTableDescriptor(String name, NavigableRole navigableRole, boolean isJoinTable, boolean isInverse, boolean isSelfReferential, boolean hasUniqueConstraints, boolean cascadeDeleteEnabled, TableMapping.MutationDetails insertDetails, TableMapping.MutationDetails updateDetails, TableMapping.MutationDetails deleteDetails, TableMapping.MutationDetails deleteAllDetails, TableKeyDescriptor keyDescriptor)
extends Record
implements TableDescriptor, Serializable
TableDescriptor for collection tables.- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionTableDescriptor(String name, NavigableRole navigableRole, boolean isJoinTable, boolean isInverse, boolean isSelfReferential, boolean hasUniqueConstraints, boolean cascadeDeleteEnabled, TableMapping.MutationDetails insertDetails, TableMapping.MutationDetails updateDetails, TableMapping.MutationDetails deleteDetails, TableMapping.MutationDetails deleteAllDetails, TableKeyDescriptor keyDescriptor) Creates an instance of aCollectionTableDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecascadeDeleteEnabledrecord component.Returns the value of thedeleteAllDetailsrecord component.Returns the value of thedeleteDetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.intThis table's relative position within its "table group".final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasUniqueConstraintsrecord component.Returns the value of theinsertDetailsrecord component.booleanReturns the value of theisInverserecord component.booleanReturns the value of theisJoinTablerecord component.booleanWhether the table is considered optional in relation to its group of tables.booleanReturns the value of theisSelfReferentialrecord component.Returns the value of thekeyDescriptorrecord component.name()Returns the value of thenamerecord component.Returns the value of thenavigableRolerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateDetailsrecord component.
-
Constructor Details
-
Method Details
-
isOptional
public boolean isOptional()Description copied from interface:TableDescriptorWhether the table is considered optional in relation to its group of tables.- Specified by:
isOptionalin interfaceTableDescriptor- See Also:
-
getRelativePosition
public int getRelativePosition()Description copied from interface:TableDescriptorThis table's relative position within its "table group".- Specified by:
getRelativePositionin interfaceTableDescriptor
-
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. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceTableDescriptor- Returns:
- the value of the
namerecord component
-
isJoinTable
public boolean isJoinTable()Returns the value of theisJoinTablerecord component.- Returns:
- the value of the
isJoinTablerecord component
-
isInverse
public boolean isInverse()Returns the value of theisInverserecord component.- Returns:
- the value of the
isInverserecord component
-
isSelfReferential
public boolean isSelfReferential()Returns the value of theisSelfReferentialrecord component.- Specified by:
isSelfReferentialin interfaceTableDescriptor- Returns:
- the value of the
isSelfReferentialrecord component
-
hasUniqueConstraints
public boolean hasUniqueConstraints()Returns the value of thehasUniqueConstraintsrecord component.- Specified by:
hasUniqueConstraintsin interfaceTableDescriptor- Returns:
- the value of the
hasUniqueConstraintsrecord component
-
cascadeDeleteEnabled
public boolean cascadeDeleteEnabled()Returns the value of thecascadeDeleteEnabledrecord component.- Specified by:
cascadeDeleteEnabledin interfaceTableDescriptor- Returns:
- the value of the
cascadeDeleteEnabledrecord component
-
insertDetails
Returns the value of theinsertDetailsrecord component.- Specified by:
insertDetailsin interfaceTableDescriptor- Returns:
- the value of the
insertDetailsrecord component
-
updateDetails
Returns the value of theupdateDetailsrecord component.- Specified by:
updateDetailsin interfaceTableDescriptor- Returns:
- the value of the
updateDetailsrecord component
-
deleteDetails
Returns the value of thedeleteDetailsrecord component.- Specified by:
deleteDetailsin interfaceTableDescriptor- Returns:
- the value of the
deleteDetailsrecord component
-
deleteAllDetails
Returns the value of thedeleteAllDetailsrecord component.- Returns:
- the value of the
deleteAllDetailsrecord component
-
keyDescriptor
Returns the value of thekeyDescriptorrecord component.- Specified by:
keyDescriptorin interfaceTableDescriptor- Returns:
- the value of the
keyDescriptorrecord component
-