Changes between Version 48 and Version 49 of FDORfc34


Ignore:
Timestamp:
Sep 14, 2009, 7:41:32 PM (15 years ago)
Author:
klain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc34

    v48 v49  
    712712== Addendum, Sept. 15, 2009 ==
    713713
    714 Previously, there is not a function to get the property index given the name of the property like FdoInt32 GetPropertyIndex(FdoString* propertyName); To use access by index functions on FdoIFeatureReader and FdoIDataReader will be hard for API users as they need to know beforehand how index is mapping to property name and mapping is different for different provider implementations like SqlLite/SDF and RDBMS. E.g. with the same FDO schema definition, SqlLite and RDBMS will arrange the property order returned from GetClassDefinition() differently:
     714Previously, there is not a function to get the property index given the name of the property like {{{FdoInt32 GetPropertyIndex(FdoString* propertyName);}}} To use access by index functions on FdoIFeatureReader and FdoIDataReader will be hard for API users as they need to know beforehand how index is mapping to property name and mapping is different for different provider implementations like SqlLite/SDF and RDBMS. E.g. with the same FDO schema definition, SqlLite and RDBMS will arrange the property order returned from GetClassDefinition() differently:
    715715a. If you don’t set selected property names be returned from an FdoISelect command
    716716
     
    722722SqlLite provider will respect the order of how they are added to selected properties. SDF provider will respect the order of corresponding properties defined in the original class definition(without setting selected properties)
    723723
    724 So we added another function of FdoInt32 GetPropertyIndex(FdoString* propertyName) in this RFC in order for API users to use the access by index on all readers conveniently and correctly. Now both of the property name and index related functions are moved to FdoIReader as they are needed for both FdoIFeatureReader and FdoIDataReader.
     724So we added another function of {{{FdoInt32 GetPropertyIndex(FdoString* propertyName)}}} in this RFC in order for API users to use the access by index on all readers conveniently and correctly. Now both of the property name and index related functions are moved to FdoIReader as they are needed for both FdoIFeatureReader and FdoIDataReader.
     725{{{
    725726FdoString* GetPropertyName(FdoInt32 index);
    726727FdoInt32 GetPropertyIndex(FdoString* propertyName);
     728}}}