Record Class SqlGenerationResult
java.lang.Object
java.lang.Record
org.hibernate.dialect.testing.SqlGenerationResult
@Incubating(since="8.0",
group="dialect-testkit")
@SPI(USE)
public record SqlGenerationResult(String hql, List<GeneratedStatement> statements)
extends Record
Immutable result of translating one HQL statement.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionSqlGenerationResult(String hql, List<GeneratedStatement> statements) Creates an instance of aSqlGenerationResultrecord 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.hql()Returns the value of thehqlrecord component.Returns the value of thestatementsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlGenerationResult
Creates an instance of aSqlGenerationResultrecord class.- Parameters:
hql- the value for thehqlrecord componentstatements- the value for thestatementsrecord 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). -
hql
Returns the value of thehqlrecord component.- Returns:
- the value of the
hqlrecord component
-
statements
Returns the value of thestatementsrecord component.- Returns:
- the value of the
statementsrecord component
-