if( odaDataType == Types.BLOB ) fieldClass = IBlob.class; else if( odaDataType == Types.CLOB ) fieldClass = IClob.class;
Class fieldClass = null; switch( odaDataType ) { case Types.INTEGER: fieldClass = Integer.class; break;  case Types.DOUBLE: fieldClass = Double.class; break;  case Types.CHAR: fieldClass = String.class; break;  case Types.DECIMAL: fieldClass = BigDecimal.class; break;  case Types.DATE: fieldClass = Date.class; break;  case Types.TIME: fieldClass = Time.class; break;  case Types.TIMESTAMP: fieldClass = Timestamp.class; break;  case Types.BLOB: fieldClass = IBlob.class; break;  case Types.CLOB: fieldClass = IClob.class; break;  case Types.NULL: fieldClass = null; break; }
	public static Class toTypeClass( int odaDataType )	{		final String methodName = "toTypeClass";		         Class fieldClass = null;        try        {            fieldClass = org.eclipse.birt.core.data.DataTypeUtil                    .toOdiTypeClass( odaDataType );        }        catch( BirtException e )        {			String localizedMessage = 				DataResourceHandle.getInstance().getMessage( ResourceConstants.UNRECOGNIZED_ODA_TYPE, 				                                             new Object[] { new Integer( odaDataType ) } );			sm_logger.logp( Level.SEVERE, sm_className, methodName, 					"Invalid ODA data type: {0}", new Integer( odaDataType ) );			throw new IllegalArgumentException( localizedMessage );		}		        // for now, preserve existing behavior of mapping to an         // ODA IBlob and IClob classes		if( odaDataType == Types.BLOB )		  fieldClass = IBlob.class;        else if( odaDataType == Types.CLOB )		  fieldClass = IClob.class;				if( sm_logger.isLoggable( Level.FINEST ) )		    sm_logger.logp( Level.FINEST, sm_className, methodName, 				"Converted from ODA data type {0} to Java data type class {1}.", 				new Object[] { new Integer( odaDataType ), fieldClass } );				return fieldClass;	}