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 Details

    • CollectionTableDescriptor

      public 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)
      Creates an instance of a CollectionTableDescriptor record class.
      Parameters:
      name - the value for the name record component
      navigableRole - the value for the navigableRole record component
      isJoinTable - the value for the isJoinTable record component
      isInverse - the value for the isInverse record component
      isSelfReferential - the value for the isSelfReferential record component
      hasUniqueConstraints - the value for the hasUniqueConstraints record component
      cascadeDeleteEnabled - the value for the cascadeDeleteEnabled record component
      insertDetails - the value for the insertDetails record component
      updateDetails - the value for the updateDetails record component
      deleteDetails - the value for the deleteDetails record component
      deleteAllDetails - the value for the deleteAllDetails record component
      keyDescriptor - the value for the keyDescriptor record component
  • Method Details

    • isOptional

      public boolean isOptional()
      Description copied from interface: TableDescriptor
      Whether the table is considered optional in relation to its group of tables.
      Specified by:
      isOptional in interface TableDescriptor
      See Also:
    • getRelativePosition

      public int getRelativePosition()
      Description copied from interface: TableDescriptor
      This table's relative position within its "table group".
      Specified by:
      getRelativePosition in interface TableDescriptor
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface TableDescriptor
      Returns:
      the value of the name record component
    • isJoinTable

      public boolean isJoinTable()
      Returns the value of the isJoinTable record component.
      Returns:
      the value of the isJoinTable record component
    • isInverse

      public boolean isInverse()
      Returns the value of the isInverse record component.
      Returns:
      the value of the isInverse record component
    • isSelfReferential

      public boolean isSelfReferential()
      Returns the value of the isSelfReferential record component.
      Specified by:
      isSelfReferential in interface TableDescriptor
      Returns:
      the value of the isSelfReferential record component
    • hasUniqueConstraints

      public boolean hasUniqueConstraints()
      Returns the value of the hasUniqueConstraints record component.
      Specified by:
      hasUniqueConstraints in interface TableDescriptor
      Returns:
      the value of the hasUniqueConstraints record component
    • cascadeDeleteEnabled

      public boolean cascadeDeleteEnabled()
      Returns the value of the cascadeDeleteEnabled record component.
      Specified by:
      cascadeDeleteEnabled in interface TableDescriptor
      Returns:
      the value of the cascadeDeleteEnabled record component
    • insertDetails

      public TableMapping.MutationDetails insertDetails()
      Returns the value of the insertDetails record component.
      Specified by:
      insertDetails in interface TableDescriptor
      Returns:
      the value of the insertDetails record component
    • updateDetails

      public TableMapping.MutationDetails updateDetails()
      Returns the value of the updateDetails record component.
      Specified by:
      updateDetails in interface TableDescriptor
      Returns:
      the value of the updateDetails record component
    • deleteDetails

      public TableMapping.MutationDetails deleteDetails()
      Returns the value of the deleteDetails record component.
      Specified by:
      deleteDetails in interface TableDescriptor
      Returns:
      the value of the deleteDetails record component
    • deleteAllDetails

      public TableMapping.MutationDetails deleteAllDetails()
      Returns the value of the deleteAllDetails record component.
      Returns:
      the value of the deleteAllDetails record component
    • keyDescriptor

      public TableKeyDescriptor keyDescriptor()
      Returns the value of the keyDescriptor record component.
      Specified by:
      keyDescriptor in interface TableDescriptor
      Returns:
      the value of the keyDescriptor record component