throws BirtException { if( odaDataTypeCode != Types.CHAR && odaDataTypeCode != Types.INTEGER && odaDataTypeCode != Types.DOUBLE && odaDataTypeCode != Types.DECIMAL && odaDataTypeCode != Types.DATE && odaDataTypeCode != Types.TIME && odaDataTypeCode != Types.TIMESTAMP && odaDataTypeCode != Types.BLOB && odaDataTypeCode != Types.CLOB && odaDataTypeCode != Types.NULL ) { throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle ); }  Class fieldClass = null; switch( odaDataTypeCode ) { case Types.CHAR: fieldClass = String.class; break;  case Types.INTEGER: fieldClass = Integer.class; break;  case Types.DOUBLE: fieldClass = Double.class; break;  case Types.DECIMAL: fieldClass = BigDecimal.class; break;  case Types.DATE: fieldClass = Date.class; break;  case Types.TIME: fieldClass = Time.class; break;
throws BirtException { if ( odaDataTypeCode != Types.CHAR && odaDataTypeCode != Types.INTEGER && odaDataTypeCode != Types.DOUBLE && odaDataTypeCode != Types.DECIMAL && odaDataTypeCode != Types.DATE && odaDataTypeCode != Types.TIME && odaDataTypeCode != Types.TIMESTAMP && odaDataTypeCode != Types.BLOB && odaDataTypeCode != Types.CLOB && odaDataTypeCode != Types.NULL ) { throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle ); }
    public static Class toOdiTypeClass( int odaDataTypeCode )        throws BirtException    {        if( odaDataTypeCode != Types.CHAR &&            odaDataTypeCode != Types.INTEGER &&            odaDataTypeCode != Types.DOUBLE &&                       odaDataTypeCode != Types.DECIMAL &&            odaDataTypeCode != Types.DATE &&            odaDataTypeCode != Types.TIME &&            odaDataTypeCode != Types.TIMESTAMP &&            odaDataTypeCode != Types.BLOB &&            odaDataTypeCode != Types.CLOB &&            odaDataTypeCode != Types.NULL )        {            throw new BirtException( pluginId,                    ResourceConstants.INVALID_TYPE,                    resourceBundle );        }                Class fieldClass = null;        switch( odaDataTypeCode )        {            case Types.CHAR:                fieldClass = String.class;                break;                        case Types.INTEGER:                fieldClass = Integer.class;                break;                        case Types.DOUBLE:                fieldClass = Double.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 = Blob.class;                break;                            case Types.CLOB:                fieldClass = Clob.class;                break;                            case Types.NULL:                fieldClass = null;                break;                          }                        return fieldClass;    }