Changes between Version 6 and Version 7 of FDORfc61
- Timestamp:
- 05/25/11 20:33:55 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc61
v6 v7 49 49 /// 50 50 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; 51 60 ...... 52 61 } 62 63 class 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 }; 53 90 }}} 54 55 91 “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. 56 92