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.RenameModelinstance with the specified new name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares thisRenameModelinstance with another object for equality.inthashCode()Generates a hash code for thisRenameModelinstance.newName()Retrieves the new name for the model.toString()Returns a string representation of theRenameModelinstance.
-
Constructor Details
-
RenameModel
Constructs a newModelChange.RenameModelinstance 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 thisRenameModelinstance 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 thisRenameModelinstance. The hash code is based on the new name of the model. -
toString
Returns a string representation of theRenameModelinstance. This string format includes the class name followed by the property name to be renamed.
-