Class SimpleColumnInfo
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.model.SimpleColumnInfo
- All Implemented Interfaces:
ColumnInfo
,Comparable<ColumnInfo>
- Direct Known Subclasses:
ModelColumnInfoImpl
-
Constructor Summary
ConstructorDescriptionSimpleColumnInfo
(String columnName, String type, LiquibaseConstants.ValueType valueType) -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
boolean
If the field/column is localized, this returns whether this column represents the nice2 default language.boolean
boolean
boolean
boolean
boolean
boolean
isUnique()
void
setColumnName
(String columnName) void
setDefaultLanguage
(boolean defaultLanguage) void
setForeignKey
(ConstraintInfo.ForeignKey foreignKey) void
setIdentifier
(boolean identifier) void
void
setLocalized
(boolean localized) void
setNullable
(boolean nullable) void
setPrimaryKey
(boolean primaryKey) void
setRemoved
(boolean removed) void
void
setUnique
(boolean unique) toString()
-
Constructor Details
-
SimpleColumnInfo
-
-
Method Details
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceColumnInfo
- 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 interfaceColumnInfo
-
setLocalized
public void setLocalized(boolean localized) -
setLocale
-
setDefaultLanguage
public void setDefaultLanguage(boolean defaultLanguage) -
isUnique
public boolean isUnique()- Specified by:
isUnique
in interfaceColumnInfo
-
setUnique
public void setUnique(boolean unique) -
isIdentifier
public boolean isIdentifier()- Specified by:
isIdentifier
in interfaceColumnInfo
-
setIdentifier
public void setIdentifier(boolean identifier) -
getLocale
- Specified by:
getLocale
in interfaceColumnInfo
-
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 interfaceColumnInfo
-
getValueType
- Specified by:
getValueType
in interfaceColumnInfo
-
getType
- Specified by:
getType
in interfaceColumnInfo
-
setType
-
getColumnName
- Specified by:
getColumnName
in interfaceColumnInfo
-
setColumnName
-
isPrimaryKey
public boolean isPrimaryKey()- Specified by:
isPrimaryKey
in interfaceColumnInfo
-
setPrimaryKey
public void setPrimaryKey(boolean primaryKey) -
isNullable
public boolean isNullable()- Specified by:
isNullable
in interfaceColumnInfo
-
setNullable
public void setNullable(boolean nullable) -
setForeignKey
-
getForeignKey
- Specified by:
getForeignKey
in interfaceColumnInfo
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ColumnInfo>
-
toString
-