Class JdbcDataType
- java.lang.Object
-
- org.hibernate.boot.model.source.spi.JdbcDataType
-
public class JdbcDataType extends java.lang.Object
Models a JDBCDATATYPE
. Mainly breaks down into 3 pieces of information:-
type code
- The JDBC type code; generally matches a code fromTypes
though not necessarily. -
type name
- The database type name for the given type code. -
getJavaType()
java type} - The java type recommended for representing this JDBC type (if known)
-
-
-
Constructor Summary
Constructors Constructor Description JdbcDataType(int typeCode, java.lang.String typeName, java.lang.Class javaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Class
getJavaType()
int
getTypeCode()
java.lang.String
getTypeName()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getTypeCode
public int getTypeCode()
-
getTypeName
public java.lang.String getTypeName()
-
getJavaType
public java.lang.Class getJavaType()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-