int odaType = Types.CHAR;     if( javaClass == IBlob.class ) odaType = Types.BLOB; else if( javaClass == IClob.class ) odaType = Types.CLOB; else odaType = org.eclipse.birt.core.data.DataTypeUtil .toOdaDataType( javaClass );
int odaType = Types.CHAR;   if( javaClass == null ) odaType = Types.CHAR; else if( javaClass == Integer.class ) odaType = Types.INTEGER; else if( javaClass == Double.class ) odaType = Types.DOUBLE; else if( javaClass == BigDecimal.class ) odaType = Types.DECIMAL; else if( javaClass == String.class ) odaType = Types.CHAR; else if( javaClass == Date.class ) odaType = Types.DATE; else if( javaClass == Time.class ) odaType = Types.TIME; else if( javaClass == Timestamp.class ) odaType = Types.TIMESTAMP; else if( javaClass == IBlob.class ) odaType = Types.BLOB; else if( javaClass == IClob.class ) odaType = Types.CLOB;
	public static int toOdaType( Class javaClass )	{		final String methodName = "toOdaType";		        // returns Types.CHAR if the hint didn't have data type information        int odaType = Types.CHAR;   // default                // for backward compatibility, preserve existing          // behavior of mapping from an         // ODA IBlob and IClob classes        if( javaClass == IBlob.class )            odaType = Types.BLOB;        else if( javaClass == IClob.class )            odaType = Types.CLOB;        else            odaType =                 org.eclipse.birt.core.data.DataTypeUtil                    .toOdaDataType( javaClass );				if( sm_logger.isLoggable( Level.FINEST ) )		    sm_logger.logp( Level.FINEST, sm_className, methodName, 				"Converted from Java data type class {0} to ODA data type {1}.", 				new Object[] { javaClass, new Integer( odaType ) } );		return odaType;	}