saveChanges/revert on EOEditingContext
saveChanges/revert on EOEditingContext
- Subject: saveChanges/revert on EOEditingContext
- From: Farrukh Ijaz <email@hidden>
- Date: Sat, 1 May 2010 20:01:36 +0300
Is it legal to perform saveChanges/revert on EOEditingContext in a traditional JDBC transaction commit/rollback style?
EOEditingContext ec = // Got EOEditingContext from Somewhere... // ec is not locked... // did a lot of fetches... // modified some objects fetched using this ec... try { ec.lock(); ec.saveChanges(); } catch(Exception ex) { throw ex; } finally { ec.revert(); ec.unlock(); }
What can be the potential problem in the above approach? Sorry if I sound stupid here but this is quite a good practice in JDBC style coding :)
Farrukh |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden