public class Column extends Object implements Selectable, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LENGTH |
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_SCALE |
public static final int DEFAULT_LENGTH
public static final int DEFAULT_PRECISION
public static final int DEFAULT_SCALE
public Column()
public Column(String columnName)
public int getLength()
public void setLength(int length)
public Value getValue()
public void setValue(Value value)
public String getName()
public void setName(String name)
public String getQuotedName()
public String getAlias(Dialect dialect)
getAlias
in interface Selectable
public String getAlias(Dialect dialect, Table table)
getAlias
in interface Selectable
public boolean isNullable()
public void setNullable(boolean nullable)
public int getTypeIndex()
public void setTypeIndex(int typeIndex)
public boolean isUnique()
public boolean equals(Column column)
public int getSqlTypeCode(Mapping mapping) throws MappingException
MappingException
public Integer getSqlTypeCode()
public void setSqlTypeCode(Integer typeCode)
public String getSqlType(Dialect dialect, Mapping mapping) throws HibernateException
HibernateException
public String getSqlType()
public void setSqlType(String sqlType)
public void setUnique(boolean unique)
public boolean isQuoted()
public String getCheckConstraint()
public void setCheckConstraint(String checkConstraint)
public boolean hasCheckConstraint()
public String getTemplate(Dialect dialect, SQLFunctionRegistry functionRegistry)
getTemplate
in interface Selectable
public boolean hasCustomRead()
public String getWriteExpr()
public boolean isFormula()
isFormula
in interface Selectable
public String getText(Dialect d)
getText
in interface Selectable
public String getText()
getText
in interface Selectable
public int getPrecision()
public void setPrecision(int scale)
public int getScale()
public void setScale(int scale)
public String getComment()
public void setComment(String comment)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getCustomWrite()
public void setCustomWrite(String customWrite)
public String getCustomRead()
public void setCustomRead(String customRead)
public String getCanonicalName()
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.