Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » mapping » [javadoc | source]
org.hibernate.mapping
public class: Column [javadoc | source]
java.lang.Object
   org.hibernate.mapping.Column

All Implemented Interfaces:
    Cloneable, Serializable, Selectable

A column of a relational database table
Field Summary
public static final  int DEFAULT_LENGTH     
public static final  int DEFAULT_PRECISION     
public static final  int DEFAULT_SCALE     
 int uniqueInteger     
Constructor:
 public Column() 
 public Column(String columnName) 
Method from org.hibernate.mapping.Column Summary:
clone,   equals,   equals,   getAlias,   getAlias,   getCanonicalName,   getCheckConstraint,   getComment,   getDefaultValue,   getLength,   getName,   getPrecision,   getQuotedName,   getQuotedName,   getScale,   getSqlType,   getSqlType,   getSqlTypeCode,   getSqlTypeCode,   getTemplate,   getText,   getText,   getTypeIndex,   getValue,   hasCheckConstraint,   hashCode,   isFormula,   isNullable,   isQuoted,   isUnique,   setCheckConstraint,   setComment,   setDefaultValue,   setLength,   setName,   setNullable,   setPrecision,   setScale,   setSqlType,   setSqlTypeCode,   setTypeIndex,   setUnique,   setValue,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.mapping.Column Detail:
 protected Object clone() 
    Shallow copy, the value is not copied
 public boolean equals(Object object) 
 public boolean equals(Column column) 
 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.
 public String getAlias(Dialect dialect,
    Table table) 
    Generate a column alias that is unique across multiple tables
 public String getCanonicalName() 
 public String getCheckConstraint() 
 public String getComment() 
 public String getDefaultValue() 
 public int getLength() 
 public String getName() 
 public int getPrecision() 
 public String getQuotedName() 
    returns quoted name as it would be in the mapping file.
 public String getQuotedName(Dialect d) 
 public int getScale() 
 public String getSqlType() 
 public String getSqlType(Dialect dialect,
    Mapping mapping) throws HibernateException 
 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.
 public int getSqlTypeCode(Mapping mapping) throws MappingException 
 public String getTemplate(Dialect dialect,
    SQLFunctionRegistry functionRegistry) 
 public String getText() 
 public String getText(Dialect d) 
 public int getTypeIndex() 
 public Value getValue() 
 public boolean hasCheckConstraint() 
 public int hashCode() 
 public boolean isFormula() 
 public boolean isNullable() 
 public boolean isQuoted() 
 public boolean isUnique() 
 public  void setCheckConstraint(String checkConstraint) 
 public  void setComment(String comment) 
 public  void setDefaultValue(String defaultValue) 
 public  void setLength(int length) 
 public  void setName(String name) 
 public  void setNullable(boolean nullable) 
 public  void setPrecision(int scale) 
 public  void setScale(int scale) 
 public  void setSqlType(String sqlType) 
 public  void setSqlTypeCode(Integer typecode) 
 public  void setTypeIndex(int typeIndex) 
 public  void setUnique(boolean unique) 
 public  void setValue(Value value) 
 public String toString()