Record Class OptionalTableUpdateOperationRequest

java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.OptionalTableUpdateOperationRequest
Record Components:
update - the semantic optional-table update
sessionFactory - the SessionFactory whose services are available to the provider
versionedTarget - 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 Details

    • OptionalTableUpdateOperationRequest

      public OptionalTableUpdateOperationRequest(OptionalTableUpdate update, SessionFactoryImplementor sessionFactory, boolean versionedTarget)
      Creates an instance of a OptionalTableUpdateOperationRequest record class.
      Parameters:
      update - the value for the update record component
      sessionFactory - the value for the sessionFactory record component
      versionedTarget - the value for the versionedTarget record component
  • Method Details

    • mutationTarget

      public MutationTarget mutationTarget()
      The mutation target derived from the semantic update.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • update

      public OptionalTableUpdate update()
      Returns the value of the update record component.
      Returns:
      the value of the update record component
    • sessionFactory

      public SessionFactoryImplementor sessionFactory()
      Returns the value of the sessionFactory record component.
      Returns:
      the value of the sessionFactory record component
    • versionedTarget

      public boolean versionedTarget()
      Returns the value of the versionedTarget record component.
      Returns:
      the value of the versionedTarget record component