|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.mapping.Column
public class Column
A column of a relational database table
Field Summary | |
---|---|
static int |
DEFAULT_LENGTH
|
static int |
DEFAULT_PRECISION
|
static int |
DEFAULT_SCALE
|
Constructor Summary | |
---|---|
Column()
|
|
Column(String columnName)
|
Method Summary | |
---|---|
protected Object |
clone()
Shallow copy, the value is not copied |
boolean |
equals(Column column)
|
boolean |
equals(Object object)
|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_LENGTH
public static final int DEFAULT_PRECISION
public static final int DEFAULT_SCALE
Constructor Detail |
---|
public Column()
public Column(String columnName)
Method Detail |
---|
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 getQuotedName(Dialect d)
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 int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
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 toString()
toString
in class Object
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 getReadExpr(Dialect dialect)
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()
protected Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |