Class GeneratedColumnDefinitionChange

java.lang.Object
org.jumpmind.db.alter.TableChangeImplBase
org.jumpmind.db.alter.GeneratedColumnDefinitionChange
All Implemented Interfaces:
ColumnChange, IModelChange, TableChange

public class GeneratedColumnDefinitionChange extends TableChangeImplBase implements ColumnChange
Represents the change of the definition of a generated column.
  • Constructor Details

    • GeneratedColumnDefinitionChange

      public GeneratedColumnDefinitionChange(Table table, Column column, String newDefinition)
      Creates a new change object.
      Parameters:
      table - The table of the column
      column - The column
      newDefinition - The new definition
  • Method Details

    • getChangedColumn

      public Column getChangedColumn()
      Returns the column.
      Specified by:
      getChangedColumn in interface ColumnChange
      Returns:
      The column
    • getNewDefinition

      public String getNewDefinition()
      Returns the new definition.
      Returns:
      The new definition
    • apply

      public void apply(Database database, boolean caseSensitive)
      Applies this change to the given database.
      Specified by:
      apply in interface IModelChange
      Parameters:
      database - The database
      caseSensitive - Whether the case of names matters