Record Class SyntheticTableGroupDescriptor

java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.SyntheticTableGroupDescriptor
Record Components:
tableExpression - the non-blank table expression
identificationVariable - the optional table alias

@SPI(USE) public record SyntheticTableGroupDescriptor(String tableExpression, @Nullable String identificationVariable) extends Record

Immutable description of a synthetic table root required while building a SQL AST query specification.

The table expression is rendered as a named table reference. The optional identification variable is the complete alias text required by the database, including any derived-column list.

Since:
8.0
  • Constructor Details

    • SyntheticTableGroupDescriptor

      public SyntheticTableGroupDescriptor(String tableExpression, @Nullable String identificationVariable)
      Creates an instance of a SyntheticTableGroupDescriptor record class.
      Parameters:
      tableExpression - the value for the tableExpression record component
      identificationVariable - the value for the identificationVariable record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • tableExpression

      public String tableExpression()
      Returns the value of the tableExpression record component.
      Returns:
      the value of the tableExpression record component
    • identificationVariable

      @Nullable public String identificationVariable()
      Returns the value of the identificationVariable record component.
      Returns:
      the value of the identificationVariable record component