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 4.0 Specification
Eventually, the plan is to have Dialect and
DatabaseMetaData.getTypeInfo() contribute this information.
| Modifier and Type | Field and Description |
|---|---|
static JdbcTypeJavaClassMappings |
INSTANCE |
| Modifier and Type | Method and 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.
|
public static final JdbcTypeJavaClassMappings INSTANCE
public int determineJdbcTypeCodeForJavaClass(Class cls)
For the given Java type, determine the JDBC recommended JDBC type.
This includes the mappings defined in <i>TABLE B-2 - Java Types Mapped to JDBC Types</i> as well as some additional "common sense" mappings for things like BigDecimal, BigInteger, etc.
public Class determineJavaClassForJdbcTypeCode(Integer typeCode)
For the given JDBC type, determine the JDBC recommended Java type. These mappings are defined by <i>TABLE B-1 - JDBC Types Mapped to Java Types</i>
public Class determineJavaClassForJdbcTypeCode(int typeCode)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.