public static final class TableChange.AddColumn extends java.lang.Object implements TableChange.ColumnChange
If the field already exists, the change must result in an IllegalArgumentException.
If the new field is nested and its parent does not exist or is not a struct, the change must
result in an IllegalArgumentException.
TableChange.AddColumn, TableChange.AddIndex, TableChange.After, TableChange.ColumnChange, TableChange.ColumnPosition, TableChange.Default, TableChange.DeleteColumn, TableChange.DeleteIndex, TableChange.First, TableChange.RemoveProperty, TableChange.RenameColumn, TableChange.RenameTable, TableChange.SetProperty, TableChange.UpdateColumnAutoIncrement, TableChange.UpdateColumnComment, TableChange.UpdateColumnDefaultValue, TableChange.UpdateColumnNullability, TableChange.UpdateColumnPosition, TableChange.UpdateColumnType, TableChange.UpdateComment| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares this AddColumn instance with another object for equality.
|
java.lang.String[] |
fieldName()
Retrieves the field name of the column to be modified.
|
java.lang.String |
getComment()
Retrieves the comment for the new column.
|
Type |
getDataType()
Retrieves the data type of the new column.
|
Expression |
getDefaultValue()
Retrieves the default value of the new column.
|
java.lang.String[] |
getFieldName()
Retrieves the field name of the new column.
|
TableChange.ColumnPosition |
getPosition()
Retrieves the position where the new column should be added.
|
int |
hashCode()
Generates a hash code for this AddColumn instance.
|
boolean |
isAutoIncrement()
Checks if the new column is autoIncrement.
|
boolean |
isNullable()
Checks if the new column is nullable.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addIndex, deleteColumn, deleteIndex, removeProperty, rename, renameColumn, setProperty, updateColumnAutoIncrement, updateColumnComment, updateColumnDefaultValue, updateColumnNullability, updateColumnPosition, updateColumnType, updateCommentpublic java.lang.String[] getFieldName()
public Type getDataType()
public java.lang.String getComment()
public TableChange.ColumnPosition getPosition()
public boolean isNullable()
public boolean isAutoIncrement()
public Expression getDefaultValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object to compare with this instance.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String[] fieldName()
TableChange.ColumnChangefieldName in interface TableChange.ColumnChange