Class JdbcTypeJavaClassMappings
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.JdbcTypeJavaClassMappings
-
public class JdbcTypeJavaClassMappings extends java.lang.ObjectMaintains the JDBC recommended mappings for JDBC type-code to/from Java Class as defined in _Appendix B : Data Type Conversion Tables_ of the _JDBC 4.0 Specification_ Eventually, the plan is to haveDialectandDatabaseMetaData.getTypeInfo()contribute this information.
-
-
Field Summary
Fields Modifier and Type Field Description static JdbcTypeJavaClassMappingsINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassdetermineJavaClassForJdbcTypeCode(int typeCode)java.lang.ClassdetermineJavaClassForJdbcTypeCode(java.lang.Integer typeCode)For the given JDBC type, determine the JDBC recommended Java type.intdetermineJdbcTypeCodeForJavaClass(java.lang.Class cls)For the given Java type, determine the JDBC recommended JDBC type.
-
-
-
Field Detail
-
INSTANCE
public static final JdbcTypeJavaClassMappings INSTANCE
-
-
Method Detail
-
determineJdbcTypeCodeForJavaClass
public int determineJdbcTypeCodeForJavaClass(java.lang.Class cls)
For the given Java type, determine the JDBC recommended JDBC type. This includes the mappings defined in TABLE B-2 - Java Types Mapped to JDBC Types as well as some additional "common sense" mappings for things like BigDecimal, BigInteger, etc.
-
determineJavaClassForJdbcTypeCode
public java.lang.Class determineJavaClassForJdbcTypeCode(java.lang.Integer typeCode)
For the given JDBC type, determine the JDBC recommended Java type. These mappings are defined by TABLE B-1 - JDBC Types Mapped to Java Types
-
determineJavaClassForJdbcTypeCode
public java.lang.Class determineJavaClassForJdbcTypeCode(int typeCode)
-
-