liquibase.database.structure
Class Column
java.lang.Object
liquibase.database.structure.Column
- All Implemented Interfaces:
- java.lang.Comparable<Column>, DatabaseObject
public class Column
- extends java.lang.Object
- implements DatabaseObject, java.lang.Comparable<Column>
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Column
public Column()
getTable
public Table getTable()
setTable
public void setTable(Table table)
getView
public View getView()
setView
public void setView(View view)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDataType
public int getDataType()
setDataType
public void setDataType(int dataType)
getColumnSize
public int getColumnSize()
setColumnSize
public void setColumnSize(int columnSize)
getDecimalDigits
public int getDecimalDigits()
setDecimalDigits
public void setDecimalDigits(int decimalDigits)
isNullable
public java.lang.Boolean isNullable()
setNullable
public void setNullable(java.lang.Boolean nullable)
getTypeName
public java.lang.String getTypeName()
setTypeName
public void setTypeName(java.lang.String typeName)
getDefaultValue
public java.lang.Object getDefaultValue()
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
compareTo
public int compareTo(Column o)
- Specified by:
compareTo in interface java.lang.Comparable<Column>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getDataTypeString
public java.lang.String getDataTypeString(Database database)
- Returns the type name and any parameters suitable for SQL.
isNumeric
public boolean isNumeric()
isUnique
public boolean isUnique()
setUnique
public void setUnique(boolean unique)
isAutoIncrement
public boolean isAutoIncrement()
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)
isDataTypeDifferent
public boolean isDataTypeDifferent(Column otherColumn)
isNullabilityDifferent
public boolean isNullabilityDifferent(Column otherColumn)
isDifferent
public boolean isDifferent(Column otherColumn)
isPrimaryKey
public boolean isPrimaryKey()
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)
isCertainDataType
public boolean isCertainDataType()
setCertainDataType
public void setCertainDataType(boolean certainDataType)
getRemarks
public java.lang.String getRemarks()
setRemarks
public void setRemarks(java.lang.String remarks)
getLengthSemantics
public Column.LengthSemantics getLengthSemantics()
setLengthSemantics
public void setLengthSemantics(Column.LengthSemantics lengthSemantics)