java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.TableChangeImplBase
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration.ColumnDefaultValueChange
All Implemented Interfaces:
ColumnChange, ModelChange, TableChange

public class ColumnDefaultValueChange extends TableChangeImplBase implements ColumnChange
Represents the change of the default value of a column.
Version:
$Revision: $
  • Constructor Details

    • ColumnDefaultValueChange

      public ColumnDefaultValueChange(Table table, Column column, String newDefaultValue)
      Creates a new change object.
      Parameters:
      table - The table of the column
      column - The column
      newDefaultValue - The new default value
  • Method Details

    • getChangedColumn

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

      public String getNewDefaultValue()
      Returns the new default value.
      Returns:
      The new default value
    • apply

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