Package org.apache.gravitino.model
Class ModelChange.RenameModel
java.lang.Object
org.apache.gravitino.model.ModelChange.RenameModel
- All Implemented Interfaces:
ModelChange
- Enclosing interface:
- ModelChange
A ModelChange to rename a model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.model.ModelChange
ModelChange.RemoveProperty, ModelChange.RenameModel, ModelChange.SetProperty, ModelChange.UpdateComment
-
Constructor Summary
ConstructorsConstructorDescriptionRenameModel
(String newName) Constructs a newModelChange.RenameModel
instance with the specified new name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares thisRenameModel
instance with another object for equality.int
hashCode()
Generates a hash code for thisRenameModel
instance.newName()
Retrieves the new name for the model.toString()
Returns a string representation of theRenameModel
instance.
-
Constructor Details
-
RenameModel
Constructs a newModelChange.RenameModel
instance with the specified new name.- Parameters:
newName
- The new name of the model.
-
-
Method Details
-
newName
Retrieves the new name for the model.- Returns:
- The new name of the model.
-
equals
Compares thisRenameModel
instance with another object for equality. The comparison is based on the new name of the model. -
hashCode
public int hashCode()Generates a hash code for thisRenameModel
instance. The hash code is based on the new name of the model. -
toString
Returns a string representation of theRenameModel
instance. This string format includes the class name followed by the property name to be renamed.
-