Record Class SqlGenerationRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.testing.SqlGenerationRequest
@Incubating(since="8.0",
group="dialect-testkit")
@SPI(USE)
public record SqlGenerationRequest(String hql, @Nullable Class<?> expectedResultType, Map<String,Object> parameterValues, @Nullable Pagination pagination, @Nullable LockMode lockMode)
extends Record
Inputs for translating one HQL statement through the test kit's fixed internal mapping model.
Only named parameters are supported. Parameter values establish binding types and are never sent to a database.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionSqlGenerationRequest(String hql, Class<?> expectedResultType, Map<String, Object> parameterValues, Pagination pagination, LockMode lockMode) Creates an instance of aSqlGenerationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Class<?> Returns the value of theexpectedResultTyperecord component.final inthashCode()Returns a hash code value for this object.hql()Returns the value of thehqlrecord component.static SqlGenerationRequestCreate the simplest request for an HQL statement.lockMode()Returns the value of thelockModerecord component.Returns the value of thepaginationrecord component.Returns the value of theparameterValuesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlGenerationRequest
public SqlGenerationRequest(String hql, @Nullable Class<?> expectedResultType, Map<String, Object> parameterValues, @Nullable Pagination pagination, @Nullable LockMode lockMode) Creates an instance of aSqlGenerationRequestrecord class.- Parameters:
hql- the value for thehqlrecord componentexpectedResultType- the value for theexpectedResultTyperecord componentparameterValues- the value for theparameterValuesrecord componentpagination- the value for thepaginationrecord componentlockMode- the value for thelockModerecord component
-
-
Method Details
-
hql
Create the simplest request for an HQL statement. -
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
-
expectedResultType
-
parameterValues
-
pagination
Returns the value of thepaginationrecord component.- Returns:
- the value of the
paginationrecord component
-
lockMode
-