Author: shawkins
Date: 2009-07-07 16:50:53 -0400 (Tue, 07 Jul 2009)
New Revision: 1100
Modified:
trunk/common-core/src/main/java/com/metamatrix/common/types/MMJDBCSQLTypeInfo.java
Log:
adding jre 1.5 safe xml class
Modified:
trunk/common-core/src/main/java/com/metamatrix/common/types/MMJDBCSQLTypeInfo.java
===================================================================
---
trunk/common-core/src/main/java/com/metamatrix/common/types/MMJDBCSQLTypeInfo.java 2009-07-07
20:49:58 UTC (rev 1099)
+++
trunk/common-core/src/main/java/com/metamatrix/common/types/MMJDBCSQLTypeInfo.java 2009-07-07
20:50:53 UTC (rev 1100)
@@ -110,8 +110,12 @@
public static final String OBJECT_CLASS =
DataTypeManager.DefaultDataClasses.OBJECT.getName();
public static final String CLOB_CLASS = Clob.class.getName();
public static final String BLOB_CLASS = Blob.class.getName();
+ //## JDBC4.0-begin ##
public static final String XML_CLASS = SQLXML.class.getName();
-
+ //## JDBC4.0-begin ##
+ /*## JDBC3.0-JDK1.5-begin ##
+ public static final String XML_CLASS =
DataTypeManager.DefaultDataClasses.OBJECT.getName();
+ ## JDBC3.0-JDK1.5-end ##*/
private static Map<String, Integer> CLASSNAME_TO_TYPE_MAP = new
HashMap<String, Integer>();
static {
@@ -265,6 +269,11 @@
case Types.BLOB:
javaClassName = BLOB_CLASS;
break;
+ //## JDBC4.0-begin ##
+ case Types.SQLXML:
+ javaClassName = XML_CLASS;
+ break;
+ //## JDBC4.0-end ##
default:
javaClassName = null;
break;
Show replies by date