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 |
Modifier and Type | Method and Description |
---|---|
Column |
clone()
Shallow copy, the value is not copied
|
boolean |
equals(Column column) |
boolean |
equals(Object object) |
String |
getAlias(Dialect dialect) |
String |
getAlias(Dialect dialect,
Table table)
Generate a column alias that is unique across multiple tables
|
String |
getCanonicalName() |
String |
getCheckConstraint() |
String |
getComment() |
String |
getCustomRead() |
String |
getCustomWrite() |
String |
getDefaultValue() |
int |
getLength() |
String |
getName() |
int |
getPrecision() |
String |
getQuotedName()
returns quoted name as it would be in the mapping file.
|
String |
getQuotedName(Dialect d) |
String |
getReadExpr(Dialect dialect) |
int |
getScale() |
String |
getSqlType() |
String |
getSqlType(Dialect dialect,
Mapping mapping) |
Integer |
getSqlTypeCode()
Returns the underlying columns sqltypecode.
|
int |
getSqlTypeCode(Mapping mapping) |
String |
getTemplate(Dialect dialect,
SQLFunctionRegistry functionRegistry) |
String |
getText() |
String |
getText(Dialect d) |
int |
getTypeIndex() |
Value |
getValue() |
String |
getWriteExpr() |
boolean |
hasCheckConstraint() |
boolean |
hasCustomRead() |
int |
hashCode() |
boolean |
isFormula() |
boolean |
isNullable() |
boolean |
isQuoted() |
boolean |
isUnique() |
void |
setCheckConstraint(String checkConstraint) |
void |
setComment(String comment) |
void |
setCustomRead(String customRead) |
void |
setCustomWrite(String customWrite) |
void |
setDefaultValue(String defaultValue) |
void |
setLength(int length) |
void |
setName(String name) |
void |
setNullable(boolean nullable) |
void |
setPrecision(int scale) |
void |
setScale(int scale) |
void |
setSqlType(String sqlType) |
void |
setSqlTypeCode(Integer typeCode) |
void |
setTypeIndex(int typeIndex) |
void |
setUnique(boolean unique) |
void |
setValue(Value value) |
String |
toString() |
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-2015 Red Hat, Inc. All Rights Reserved.