Changes between Version 6 and Version 7 of FDORfc61


Ignore:
Timestamp:
May 25, 2011, 8:33:55 PM (13 years ago)
Author:
samwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc61

    v6 v7  
    4949    ///
    5050    FDO_API virtual void Rollback(FdoString* savePointName) = 0;
     51
     52    typedef  FdoNamedCollection<FdoSavePoint, FdoException> FdoSavePointCollection;
     53    /// \brief
     54    /// Get the valid save points collection.
     55    ///
     56    /// \return
     57    /// a named save point collection.
     58    ///
     59    FDO_API virtual FdoSavePointCollection GetAvailableSavePoints() = 0;
    5160    ......
    5261}
     62
     63class FdoSavePoint:  public FdoIDisposable
     64{
     65         public:
     66         
     67        int GetRank()
     68        void SetRank(int rank);
     69        FdoStringP GetName();
     70
     71        // Indicates that this object does not allow its name
     72        // to change. Not allowing name change allows more efficient
     73        // random access to FdoDictionary.
     74        virtual FdoBoolean CanSetName()
     75        {
     76            return false;
     77        }
     78
     79    protected:
     80        FdoSavePoint() {}
     81        FdoSavePoint( FdoStringsP name, int rank );
     82        virtual ~FdoSavePoint() {}
     83
     84        virtual void Dispose();
     85
     86    private:
     87        int mRank;
     88        FdoStringP mName;
     89};
    5390}}}
    54 
    5591“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. 
    5692