Changes between Version 8 and Version 9 of FDORfc61
- Timestamp:
- 05/25/11 22:53:29 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc61
v8 v9 31 31 Since 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. 32 32 {{{ 33 34 class FdoSavePoint; 35 33 36 class FdoITransaction : public FdoIDisposable 34 37 { … … 51 54 52 55 typedef FdoNamedCollection<FdoSavePoint, FdoException> FdoSavePointCollection; 56 53 57 /// \brief 54 /// Get the valid save points collection.58 /// Get currently available save points. 55 59 /// 56 60 /// \return 57 /// a named save point collection.61 /// Save point collection. 58 62 /// 59 63 FDO_API virtual FdoSavePointCollection GetAvailableSavePoints() = 0; … … 63 67 class FdoSavePoint: public FdoIDisposable 64 68 { 65 66 FdoSavePoint( FdoStringsP name, int rank );69 public: 70 FdoSavePoint( FdoStringP name, int rank ); 67 71 int GetRank() 68 72 void SetRank(int rank); … … 87 91 }; 88 92 }}} 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. 90 95 91 96 The “FdoIConnectionCapabilities” interface also has to be extended to enable query for this capability: … … 113 118 == Provider Implementation == 114 119 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.120 All providers that natively support save point should return true in FdoIConnectionCapabilities::!SupportsSavePoint and implement new methods in “FdoITransaction” interface to support save point. 116 121 117 122 == Test Plan ==