org.hibernate.cfg.reveng
Class SQLTypeMapping

java.lang.Object
  extended by org.hibernate.cfg.reveng.SQLTypeMapping
All Implemented Interfaces:
Comparable

public class SQLTypeMapping
extends Object
implements Comparable


Field Summary
static int UNKNOWN_LENGTH
           
static Boolean UNKNOWN_NULLABLE
           
static int UNKNOWN_PRECISION
           
static int UNKNOWN_SCALE
           
 
Constructor Summary
SQLTypeMapping(int jdbcType)
           
SQLTypeMapping(int sqlType, int length, int precision, int scale, Boolean nullable)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getHibernateType()
           
 int getJDBCType()
           
 int getLength()
           
 Boolean getNullable()
           
 int getPrecision()
           
 int getScale()
           
 int hashCode()
           
 boolean match(int matchjdbctype, int matchlength, int matchprecision, int matchscale, boolean matchnullable)
           
 void setHibernateType(String hibernateType)
           
 void setLength(int length)
           
 void setNullable(Boolean nullable)
           
 void setPrecision(int precision)
           
 void setScale(int scale)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_LENGTH

public static final int UNKNOWN_LENGTH
See Also:
Constant Field Values

UNKNOWN_PRECISION

public static final int UNKNOWN_PRECISION
See Also:
Constant Field Values

UNKNOWN_SCALE

public static final int UNKNOWN_SCALE
See Also:
Constant Field Values

UNKNOWN_NULLABLE

public static final Boolean UNKNOWN_NULLABLE
Constructor Detail

SQLTypeMapping

public SQLTypeMapping(int jdbcType)

SQLTypeMapping

public SQLTypeMapping(int sqlType,
                      int length,
                      int precision,
                      int scale,
                      Boolean nullable)
Method Detail

setLength

public void setLength(int length)

setHibernateType

public void setHibernateType(String hibernateType)

setNullable

public void setNullable(Boolean nullable)

getNullable

public Boolean getNullable()

getJDBCType

public int getJDBCType()

getHibernateType

public String getHibernateType()

getLength

public int getLength()

toString

public String toString()
Overrides:
toString in class Object

getPrecision

public int getPrecision()

setPrecision

public void setPrecision(int precision)

getScale

public int getScale()

setScale

public void setScale(int scale)

match

public boolean match(int matchjdbctype,
                     int matchlength,
                     int matchprecision,
                     int matchscale,
                     boolean matchnullable)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object