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(Type type, int typeIndex)
           
 
Method Summary
 boolean equals(Column column)
           
 boolean equals(Object object)
           
 String getAlias()
           
 int getLength()
           
 String getName()
           
 String getQuotedName(Dialect d)
           
 String getSqlType()
          Returns the sqlType.
 String getSqlType(Dialect dialect, Mapping mapping)
           
 Type getType()
           
 int getTypeIndex()
           
 int hashCode()
           
 boolean isNullable()
           
 boolean isQuoted()
           
 boolean isUnique()
           
 void setLength(int length)
           
 void setName(String name)
           
 void setNullable(boolean nullable)
           
 void setQuoted(boolean quoted)
           
 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(Type type,
              int typeIndex)
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()

setQuoted

public void setQuoted(boolean quoted)

toString

public String toString()