Class SimpleColumnInfo

java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.model.SimpleColumnInfo
All Implemented Interfaces:
ColumnInfo, Comparable<ColumnInfo>
Direct Known Subclasses:
ModelColumnInfoImpl

public class SimpleColumnInfo extends Object implements ColumnInfo
  • Constructor Details

  • Method Details

    • isRemoved

      public boolean isRemoved()
      Specified by:
      isRemoved in interface ColumnInfo
      Returns:
      whether this column/field has been removed by the customer module
    • setRemoved

      public void setRemoved(boolean removed)
    • isLocalized

      public boolean isLocalized()
      Specified by:
      isLocalized in interface ColumnInfo
    • setLocalized

      public void setLocalized(boolean localized)
    • setLocale

      public void setLocale(Locale locale)
    • setDefaultLanguage

      public void setDefaultLanguage(boolean defaultLanguage)
    • isUnique

      public boolean isUnique()
      Specified by:
      isUnique in interface ColumnInfo
    • setUnique

      public void setUnique(boolean unique)
    • isIdentifier

      public boolean isIdentifier()
      Specified by:
      isIdentifier in interface ColumnInfo
    • setIdentifier

      public void setIdentifier(boolean identifier)
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface ColumnInfo
    • isDefaultLanguage

      public boolean isDefaultLanguage()
      Description copied from interface: ColumnInfo
      If the field/column is localized, this returns whether this column represents the nice2 default language.
      Specified by:
      isDefaultLanguage in interface ColumnInfo
    • getValueType

      public LiquibaseConstants.ValueType getValueType()
      Specified by:
      getValueType in interface ColumnInfo
    • getType

      public String getType()
      Specified by:
      getType in interface ColumnInfo
    • setType

      public void setType(String type)
    • getColumnName

      public String getColumnName()
      Specified by:
      getColumnName in interface ColumnInfo
    • setColumnName

      public void setColumnName(String columnName)
    • isPrimaryKey

      public boolean isPrimaryKey()
      Specified by:
      isPrimaryKey in interface ColumnInfo
    • setPrimaryKey

      public void setPrimaryKey(boolean primaryKey)
    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface ColumnInfo
    • setNullable

      public void setNullable(boolean nullable)
    • setForeignKey

      public void setForeignKey(@Nullable ConstraintInfo.ForeignKey foreignKey)
    • getForeignKey

      public ConstraintInfo.ForeignKey getForeignKey()
      Specified by:
      getForeignKey in interface ColumnInfo
    • compareTo

      public int compareTo(ColumnInfo o)
      Specified by:
      compareTo in interface Comparable<ColumnInfo>
    • toString

      public String toString()
      Overrides:
      toString in class Object