Class SQLTypeMapping
java.lang.Object
org.hibernate.tool.internal.reveng.strategy.SQLTypeMapping
- All Implemented Interfaces:
Comparable<SQLTypeMapping>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Booleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionSQLTypeMapping(int jdbcType) SQLTypeMapping(int sqlType, int length, int precision, int scale, Boolean nullable) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SQLTypeMapping other) booleanintintintintgetScale()inthashCode()booleanmatch(int matchjdbctype, int matchlength, int matchprecision, int matchscale, boolean matchnullable) voidsetHibernateType(String hibernateType) voidsetLength(int length) voidsetNullable(Boolean nullable) voidsetPrecision(int precision) voidsetScale(int scale) toString()
-
Field Details
-
UNKNOWN_LENGTH
public static final int UNKNOWN_LENGTH- See Also:
-
UNKNOWN_PRECISION
public static final int UNKNOWN_PRECISION- See Also:
-
UNKNOWN_SCALE
public static final int UNKNOWN_SCALE- See Also:
-
UNKNOWN_NULLABLE
-
-
Constructor Details
-
SQLTypeMapping
public SQLTypeMapping(int jdbcType) -
SQLTypeMapping
-
-
Method Details
-
setLength
public void setLength(int length) -
setHibernateType
-
setNullable
-
getNullable
-
getJDBCType
public int getJDBCType() -
getHibernateType
-
getLength
public int getLength() -
toString
-
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
- Specified by:
compareToin interfaceComparable<SQLTypeMapping>
-
equals
-
hashCode
public int hashCode()
-