Record Class SqlAstTranslationRequest.QueryMutation
java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.SqlAstTranslationRequest.QueryMutation
- All Implemented Interfaces:
SqlAstTranslationRequest<MutationStatement, JdbcOperationQueryMutation>
- Enclosing interface:
SqlAstTranslationRequest<S extends Statement, O extends JdbcOperation>
public static record SqlAstTranslationRequest.QueryMutation(SessionFactoryImplementor sessionFactory, MutationStatement statement)
extends Record
implements SqlAstTranslationRequest<MutationStatement, JdbcOperationQueryMutation>
Request to translate a query-language update or delete into a
JdbcOperationQueryMutation.- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface SqlAstTranslationRequest
SqlAstTranslationRequest.ModelMutation<O>, SqlAstTranslationRequest.QueryMutation, SqlAstTranslationRequest.Select -
Constructor Summary
ConstructorsConstructorDescriptionQueryMutation(SessionFactoryImplementor sessionFactory, MutationStatement statement) Creates an instance of aQueryMutationrecord 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 thesessionFactoryrecord component.Returns the value of thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryMutation
Creates an instance of aQueryMutationrecord class.- Parameters:
sessionFactory- the value for thesessionFactoryrecord componentstatement- the value for thestatementrecord 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). -
sessionFactory
Returns the value of thesessionFactoryrecord component.- Specified by:
sessionFactoryin interfaceSqlAstTranslationRequest<MutationStatement, JdbcOperationQueryMutation>- Returns:
- the value of the
sessionFactoryrecord component
-
statement
Returns the value of thestatementrecord component.- Specified by:
statementin interfaceSqlAstTranslationRequest<MutationStatement, JdbcOperationQueryMutation>- Returns:
- the value of the
statementrecord component
-