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

public class ColumnDataTypeChange extends TableChangeImplBase implements ColumnChange
Represents the change of the data type of a column.
Version:
$Revision: $
  • Constructor Details

    • ColumnDataTypeChange

      public ColumnDataTypeChange(Table table, Column column, int newTypeCode)
      Creates a new change object.
      Parameters:
      table - The table of the column
      column - The column
      newTypeCode - The JDBC type code of the new type
  • Method Details

    • getChangedColumn

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

      public int getNewTypeCode()
      Returns the JDBC type code of the new type.
      Returns:
      The type code
    • 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