• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
saveChanges/revert on EOEditingContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: saveChanges/revert on EOEditingContext
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: -WOCachingEnabled=true
  • Next by Date: Re: saveChanges/revert on EOEditingContext
  • Previous by thread: Re: action on close....
  • Next by thread: Re: saveChanges/revert on EOEditingContext
  • Index(es):
    • Date
    • Thread