clone
protected Object clone()
Shallow copy, the value is not copied
equals
public boolean equals(Object object)
equals
public boolean equals(Column column)
getAlias
public String getAlias(Dialect dialect)
For any column name, generate an alias that is unique
to that column name, and also 10 characters or less
in length.
- getAlias in interface Selectable
getAlias
public String getAlias(Dialect dialect,
Table table)
Generate a column alias that is unique across multiple tables
- getAlias in interface Selectable
getCanonicalName
public String getCanonicalName()
getCheckConstraint
public String getCheckConstraint()
getComment
public String getComment()
getDefaultValue
public String getDefaultValue()
getLength
public int getLength()
getName
public String getName()
getPrecision
public int getPrecision()
getQuotedName
public String getQuotedName()
returns quoted name as it would be in the mapping file.
getQuotedName
public String getQuotedName(Dialect d)
getScale
public int getScale()
getSqlType
public String getSqlType()
getSqlTypeCode
public Integer getSqlTypeCode()
Returns the underlying columns sqltypecode.
If null, it is because the sqltype code is unknown.
Use #getSqlTypeCode(Mapping) to retreive the sqltypecode used
for the columns associated Value/Type.
- sqltypecode if it is set, otherwise null.
getTypeIndex
public int getTypeIndex()
getValue
public Value getValue()
hasCheckConstraint
public boolean hasCheckConstraint()
hashCode
public int hashCode()
isNullable
public boolean isNullable()
isQuoted
public boolean isQuoted()
isUnique
public boolean isUnique()
setCheckConstraint
public void setCheckConstraint(String checkConstraint)
setComment
public void setComment(String comment)
setDefaultValue
public void setDefaultValue(String defaultValue)
setLength
public void setLength(int length)
setName
public void setName(String name)
setNullable
public void setNullable(boolean nullable)
setPrecision
public void setPrecision(int scale)
setScale
public void setScale(int scale)
setSqlType
public void setSqlType(String sqlType)
setSqlTypeCode
public void setSqlTypeCode(Integer typecode)
setTypeIndex
public void setTypeIndex(int typeIndex)
setUnique
public void setUnique(boolean unique)
setValue
public void setValue(Value value)
toString
public String toString()