Class TableChange.UpdateColumnAutoIncrement

java.lang.Object
org.apache.gravitino.rel.TableChange.UpdateColumnAutoIncrement
All Implemented Interfaces:
TableChange, TableChange.ColumnChange
Enclosing interface:
TableChange

public static final class TableChange.UpdateColumnAutoIncrement extends Object implements TableChange.ColumnChange
A TableChange to update the autoIncrement of a field. True is to add autoIncrement, false is to delete autoIncrement.
  • Constructor Details

    • UpdateColumnAutoIncrement

      public UpdateColumnAutoIncrement(String[] fieldName, boolean autoIncrement)
      Creates a new UpdateColumnAutoIncrement instance.
      Parameters:
      fieldName - The name of the field to be updated.
      autoIncrement - The new autoIncrement flag of the field.
  • Method Details

    • fieldName

      public String[] fieldName()
      Retrieves the field name of the column whose autoIncrement is being updated.
      Specified by:
      fieldName in interface TableChange.ColumnChange
      Returns:
      An array of strings representing the field name.
    • isAutoIncrement

      public boolean isAutoIncrement()
      The autoIncrement flag of the column.
      Returns:
      true if the column is autoIncrement; false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object