Record Class SqlAstTranslationRequest.ModelMutation<O extends JdbcMutationOperation>
java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.SqlAstTranslationRequest.ModelMutation<O>
- All Implemented Interfaces:
SqlAstTranslationRequest<TableMutation<?>, O>
- Enclosing interface:
SqlAstTranslationRequest<S extends Statement, O extends JdbcOperation>
public static record SqlAstTranslationRequest.ModelMutation<O extends JdbcMutationOperation>(SessionFactoryImplementor sessionFactory, TableMutation<?> statement)
extends Record
implements SqlAstTranslationRequest<TableMutation<?>, O>
Request to translate a mapping-model table mutation into its matching JDBC
mutation operation.
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface SqlAstTranslationRequest
SqlAstTranslationRequest.ModelMutation<O>, SqlAstTranslationRequest.QueryMutation, SqlAstTranslationRequest.Select -
Constructor Summary
ConstructorsConstructorDescriptionModelMutation(SessionFactoryImplementor sessionFactory, TableMutation<?> statement) Creates an instance of aModelMutationrecord 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
-
ModelMutation
Creates an instance of aModelMutationrecord 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<TableMutation<?>, O extends JdbcMutationOperation>- Returns:
- the value of the
sessionFactoryrecord component
-
statement
Returns the value of thestatementrecord component.- Specified by:
statementin interfaceSqlAstTranslationRequest<TableMutation<?>, O extends JdbcMutationOperation>- Returns:
- the value of the
statementrecord component
-