public static final class TableChange.RenameColumn extends Object implements TableChange.ColumnChange
The name is used to find the field to rename. The new name will replace the leaf field name. For example, renameColumn("a.b.c", "x") should produce column a.b.x.
If the field does not exist, the change must result in an IllegalArgumentException
.
TableChange.AddColumn, TableChange.After, TableChange.ColumnChange, TableChange.ColumnPosition, TableChange.DeleteColumn, TableChange.First, TableChange.RemoveProperty, TableChange.RenameColumn, TableChange.SetProperty, TableChange.UpdateColumnComment, TableChange.UpdateColumnDefaultValue, TableChange.UpdateColumnNullability, TableChange.UpdateColumnPosition, TableChange.UpdateColumnType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String[] |
fieldNames() |
int |
hashCode() |
String |
newName() |
addColumn, addColumn, addColumn, addColumn, deleteColumn, removeProperty, renameColumn, setProperty, updateColumnComment, updateColumnDefaultValue, updateColumnNullability, updateColumnPosition, updateColumnType
public String[] fieldNames()
fieldNames
in interface TableChange.ColumnChange
public String newName()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object