Changes between Version 8 and Version 9 of FDORfc61


Ignore:
Timestamp:
05/25/11 22:53:29 (14 years ago)
Author:
samwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc61

    v8 v9  
    3131Since most FDO data providers which natively support save point mark save points by name, I propose we can add the following interface method to “FdoITransaction” interface.
    3232{{{
     33
     34class FdoSavePoint;
     35
    3336class FdoITransaction : public FdoIDisposable
    3437{
     
    5154
    5255    typedef  FdoNamedCollection<FdoSavePoint, FdoException> FdoSavePointCollection;
     56
    5357    /// \brief
    54     /// Get the valid save points collection.
     58    /// Get currently available save points.
    5559    ///
    5660    /// \return
    57     /// a named save point collection.
     61    /// Save point collection.
    5862    ///
    5963    FDO_API virtual FdoSavePointCollection GetAvailableSavePoints() = 0;
     
    6367class FdoSavePoint:  public FdoIDisposable
    6468{
    65          public:
    66           FdoSavePoint( FdoStringsP name, int rank );
     69     public:
     70        FdoSavePoint( FdoStringP name, int rank );
    6771        int GetRank()
    6872        void SetRank(int rank);
     
    8791};
    8892}}}
    89 “AddSavePoint” method is used to add a save point with a specific name which can later be rolled back to without affecting the work done prior to the save point. “Rollback” method rolls back to a named save point. 
     93“!AddSavePoint” method is used to add a save point with a specific name which can later be rolled back to without affecting the work done prior to the save point. “Rollback” method rolls back to a named save point.
     94  A new class named "FdoSavePoint" is needed to represent a FDO save point, which has a name and a rank value to indicate the order defined in current transaction.
    9095
    9196The “FdoIConnectionCapabilities” interface also has to be extended to enable query for this capability:
     
    113118== Provider Implementation ==
    114119
    115 All providers that natively support save point should return true in FdoIConnectionCapabilities::SupportsSavePoint and implement new methods in “FdoITransaction” interface to support save point.
     120All providers that natively support save point should return true in FdoIConnectionCapabilities::!SupportsSavePoint and implement new methods in “FdoITransaction” interface to support save point.
    116121
    117122== Test Plan ==