Record Class SyntheticTableGroupDescriptor
java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.SyntheticTableGroupDescriptor
- Record Components:
tableExpression- the non-blank table expressionidentificationVariable- 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 Summary
ConstructorsConstructorDescriptionSyntheticTableGroupDescriptor(String tableExpression, String identificationVariable) Creates an instance of aSyntheticTableGroupDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentificationVariablerecord component.Returns the value of thetableExpressionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyntheticTableGroupDescriptor
public SyntheticTableGroupDescriptor(String tableExpression, @Nullable String identificationVariable) Creates an instance of aSyntheticTableGroupDescriptorrecord class.- Parameters:
tableExpression- the value for thetableExpressionrecord componentidentificationVariable- the value for theidentificationVariablerecord component
-
-
Method Details
-
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). -
tableExpression
Returns the value of thetableExpressionrecord component.- Returns:
- the value of the
tableExpressionrecord component
-
identificationVariable
Returns the value of theidentificationVariablerecord component.- Returns:
- the value of the
identificationVariablerecord component
-