Changes between Version 20 and Version 21 of MapGuideRfc78
- Timestamp:
- 07/15/09 02:53:31 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc78
v20 v21 75 75 76 76 Changes to Feature Service 77 78 ExecuteSqlQuery() and ExecuteSqlNonQuery() must use the same underlying connection on which the transaction started. So MgTransaction instance is passed in as parameters for both of these two methods. The MgTransaction implementation can return the undelying connection. 79 77 80 {{{ 78 81 /// \brief … … 110 113 One example using the new API 111 114 {{{ 112 MgTransaction tran = AcMapFeatureService::StartTransaction(resourceId);115 MgTransaction* tran = AcMapFeatureService::StartTransaction(resourceId); 113 116 AcMapFeatureService::ExecuteSql(resourceId, sql statement1, tran); 114 117 AcMapFeatureService::ExecuteSql(resourceId, sql statement2, tran); … … 120 123 If an MgTransaction has been started but hasn't been committed or rollbacked within the timeout, the transaction will be automatically rollbacked. If you call Commit() or Rollback() after timeout, an exception will be thrown reminding that the transaction has been timeout. 121 124 125 Two items will be added into WebConfig.ini for transaction timeout setting. If the transaction hasn't been committed or rollbacked within thirty minutes, it will be automatically rollbacked. 126 127 DataTransactionTimeout = 1800 128 DataTransactionTimerInterval = 300 129 122 130 Bind MgTransaction to FDO connection 123 131 124 The transaction has to be bound with the underlying FDO connection where it starts during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback(). 132 The transaction has to be bound with the underlying FDO connection where it starts during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback(). The implementation of MgTransaction should be able to return the underlying connection. 125 133 126 134 == Implications ==