Record Class OptionalTableUpdateOperationRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.OptionalTableUpdateOperationRequest
- Record Components:
update- the semantic optional-table updatesessionFactory- the SessionFactory whose services are available to the providerversionedTarget- whether the underlying mapping target has a version mapping
@SPI(USE)
public record OptionalTableUpdateOperationRequest(OptionalTableUpdate update, SessionFactoryImplementor sessionFactory, boolean versionedTarget)
extends Record
The complete provider input for selecting or constructing an optional-table
update operation.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalTableUpdateOperationRequest(OptionalTableUpdate update, SessionFactoryImplementor sessionFactory, boolean versionedTarget) Creates an instance of aOptionalTableUpdateOperationRequestrecord 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.The mutation target derived from the semantic update.Returns the value of thesessionFactoryrecord component.final StringtoString()Returns a string representation of this record class.update()Returns the value of theupdaterecord component.booleanReturns the value of theversionedTargetrecord component.
-
Constructor Details
-
OptionalTableUpdateOperationRequest
public OptionalTableUpdateOperationRequest(OptionalTableUpdate update, SessionFactoryImplementor sessionFactory, boolean versionedTarget) Creates an instance of aOptionalTableUpdateOperationRequestrecord class.- Parameters:
update- the value for theupdaterecord componentsessionFactory- the value for thesessionFactoryrecord componentversionedTarget- the value for theversionedTargetrecord component
-
-
Method Details
-
mutationTarget
The mutation target derived from the semantic update. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
update
-
sessionFactory
Returns the value of thesessionFactoryrecord component.- Returns:
- the value of the
sessionFactoryrecord component
-
versionedTarget
public boolean versionedTarget()Returns the value of theversionedTargetrecord component.- Returns:
- the value of the
versionedTargetrecord component
-