Class fieldClass = null; try { fieldClass = org.eclipse.birt.core.data.DataTypeUtil .toOdiTypeClass( odaDataType ); } catch( BirtException e ) {
if( odaDataType != Types.INTEGER && odaDataType != Types.DOUBLE && odaDataType != Types.CHAR && odaDataType != Types.DECIMAL && odaDataType != Types.DATE && odaDataType != Types.TIME && odaDataType != Types.TIMESTAMP && odaDataType != Types.BLOB && odaDataType != Types.CLOB && odaDataType != Types.NULL ) {
	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;	}