Class TableChange.UpdateComment

java.lang.Object
org.apache.gravitino.rel.TableChange.UpdateComment
All Implemented Interfaces:
TableChange
Enclosing interface:
TableChange

public static final class TableChange.UpdateComment extends Object implements TableChange
A TableChange to update a table's comment.
  • Method Details

    • getNewComment

      public String getNewComment()
      Retrieves the new comment for the table.
      Returns:
      The new comment of the table.
    • equals

      public boolean equals(Object o)
      Compares this UpdateComment instance with another object for equality. The comparison is based on the new comment of the table.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object represents the same table comment update; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this UpdateComment instance. The hash code is based on the new comment of the table.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this table comment update operation.
    • toString

      public String toString()
      Returns a string representation of the UpdateComment instance. This string format includes the class name followed by the property name to be updated.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the UpdateComment instance.