站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Column (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class Column

java.lang.Object
  extended bynet.sf.hibernate.mapping.Column

public class Column
extends Object

A column of a relational database table

Author:
Gavin King

Constructor Summary
Column()
           
 
Method Summary
 boolean equals(Column column)
           
 boolean equals(Object object)
           
 String getAlias()
           
 String getCheckConstraint()
           
 int getLength()
           
 String getName()
           
 String getQuotedName(Dialect d)
           
 String getSqlType()
          Returns the sqlType.
 String getSqlType(Dialect dialect, Mapping mapping)
           
 Type getType()
           
 int getTypeIndex()
           
 boolean hasCheckConstraint()
           
 int hashCode()
           
 boolean isNullable()
           
 boolean isQuoted()
           
 boolean isUnique()
           
 void setCheckConstraint(String checkConstraint)
           
 void setLength(int length)
           
 void setName(String name)
           
 void setNullable(boolean nullable)
           
 void setSqlType(String sqlType)
          Sets the sqlType.
 void setType(Type type)
           
 void setTypeIndex(int typeIndex)
           
 void setUnique(boolean unique)
          Sets the unique.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

public Column()
Method Detail

getLength

public int getLength()

setLength

public void setLength(int length)

getType

public Type getType()

setType

public void setType(Type type)

getName

public String getName()

setName

public void setName(String name)

getQuotedName

public String getQuotedName(Dialect d)

getAlias

public String getAlias()

isNullable

public boolean isNullable()

setNullable

public void setNullable(boolean nullable)

getTypeIndex

public int getTypeIndex()

setTypeIndex

public void setTypeIndex(int typeIndex)

isUnique

public boolean isUnique()

getSqlType

public String getSqlType(Dialect dialect,
                         Mapping mapping)
                  throws HibernateException
Throws:
HibernateException

equals

public boolean equals(Object object)

equals

public boolean equals(Column column)

hashCode

public int hashCode()

getSqlType

public String getSqlType()
Returns the sqlType.

Returns:
String

setSqlType

public void setSqlType(String sqlType)
Sets the sqlType.

Parameters:
sqlType - The sqlType to set

setUnique

public void setUnique(boolean unique)
Sets the unique.

Parameters:
unique - The unique to set

isQuoted

public boolean isQuoted()

toString

public String toString()

getCheckConstraint

public String getCheckConstraint()
Returns:
Returns the checkConstraint.

setCheckConstraint

public void setCheckConstraint(String checkConstraint)
Parameters:
checkConstraint - The checkConstraint to set.

hasCheckConstraint

public boolean hasCheckConstraint()