+ * 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. */ - public int determineJdbcTypeCodeForJavaClass(Class cls) { + public int determineJdbcTypeCodeForJavaClass(Class> cls) { Integer typeCode = javaClassToJdbcTypeCodeMap.get( cls ); if ( typeCode != null ) { return typeCode; @@ -80,11 +80,12 @@ public class JdbcTypeJavaClassMappings { } /** - * 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 + * 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.
*/
- public Class determineJavaClassForJdbcTypeCode(Integer typeCode) {
- Class cls = jdbcTypeCodeToJavaClassMap.get( typeCode );
+ public Class> determineJavaClassForJdbcTypeCode(Integer typeCode) {
+ Class> cls = jdbcTypeCodeToJavaClassMap.get( typeCode );
if ( cls != null ) {
return cls;
}
@@ -99,15 +100,15 @@ public class JdbcTypeJavaClassMappings {
/**
* @see #determineJavaClassForJdbcTypeCode(Integer)
*/
- public Class determineJavaClassForJdbcTypeCode(int typeCode) {
+ public Class> determineJavaClassForJdbcTypeCode(int typeCode) {
return determineJavaClassForJdbcTypeCode( Integer.valueOf( typeCode ) );
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- private static ConcurrentHashMap