Class MetadataObjectChange.RenameMetadataObject

java.lang.Object
org.apache.gravitino.authorization.MetadataObjectChange.RenameMetadataObject
All Implemented Interfaces:
MetadataObjectChange
Enclosing interface:
MetadataObjectChange

public static final class MetadataObjectChange.RenameMetadataObject extends Object implements MetadataObjectChange
A RenameMetadataObject is to rename securable object's metadata entity.
  • Method Details

    • metadataObject

      public MetadataObject metadataObject()
      Returns the metadataObject to be renamed.
      Returns:
      return a metadataObject.
    • newMetadataObject

      public MetadataObject newMetadataObject()
      Returns the new metadataObject object.
      Returns:
      return a metadataObject object.
    • locations

      public List<String> locations()
      Return the locations of the metadata object
      Returns:
      return the locations of the metadata object
    • equals

      public boolean equals(Object o)
      Compares this RenameMetadataObject instance with another object for equality. The comparison is based on the old metadata entity and new metadata entity.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object represents the same rename metadata entity; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this RenameMetadataObject instance. The hash code is based on the old metadata entity and new metadata entity.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this update metadata entity operation.
    • toString

      public String toString()
      Returns a string representation of the RenameMetadataObject instance. This string format includes the class name followed by the update metadata entity object operation.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the RenameMetadataObject instance.