Record Class GeneratedStatement
java.lang.Object
java.lang.Record
org.hibernate.dialect.testing.GeneratedStatement
@Incubating(since="8.0",
group="dialect-testkit")
@SPI(USE)
public record GeneratedStatement(String sql, List<GeneratedParameter> parameters)
extends Record
One immutable SQL statement generated by the test kit.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedStatement(String sql, List<GeneratedParameter> parameters) Creates an instance of aGeneratedStatementrecord 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 theparametersrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratedStatement
Creates an instance of aGeneratedStatementrecord class.- Parameters:
sql- the value for thesqlrecord componentparameters- the value for theparametersrecord 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). -
sql
Returns the value of thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-