Class JdbcTypeJavaClassMappings
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.JdbcTypeJavaClassMappings
-
public class JdbcTypeJavaClassMappings extends Object
Maintains the JDBC recommended mappings for JDBC type-code to/from Java Class as defined in Appendix B: Data Type Conversion Tables of the JDBC Specification.
-
-
Field Summary
Fields Modifier and Type Field Description static JdbcTypeJavaClassMappings
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
determineJavaClassForJdbcTypeCode(int typeCode)
Class<?>
determineJavaClassForJdbcTypeCode(Integer typeCode)
For the given JDBC type, determine the JDBC recommended Java type.int
determineJdbcTypeCodeForJavaClass(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(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 and TABLE B-4: Java Object Types Mapped to JDBC Types, as well as some additional "common sense" mappings.
-
determineJavaClassForJdbcTypeCode
public Class<?> determineJavaClassForJdbcTypeCode(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 Class<?> determineJavaClassForJdbcTypeCode(int typeCode)
-
-