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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to