• 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
editing context locking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

editing context locking


  • Subject: editing context locking
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Wed, 6 Apr 2005 20:45:36 +0200

Hi all...

I bet locking has never been discussed here before :)

I did check the list archives and online documentation and came up with a lot of helpful advice. And found a way to properly handle my ec when it comes to locking, as I see it. It is just that another question came to mind:

When I am creating new objects within a completely new editing context (nested into the default one) do I _need_ to lock??? I have a component for creating and setting up a record. The component spans a few RR cycles (it is divided into parts by conditionals). That component creates both the editing context and the records, and only after they are set up and validated saves them to the defaultEditingContext()

So, as I see it there is no way for another part of the application not know about the objects in this part (as they are new and not yet in the database). So, is there a reason to lock, as no other thread can touch them because they are not really there yet...? And if somebody else wants to add some more records, a new editing context is created.

Oh, and it is possible that this has also come up before, but i did not see it.. Sorry if that it the case.

Florijan

_______________________________________________
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: editing context locking
      • From: Jacky Gagnon <email@hidden>
    • Re: editing context locking
      • From: Kaj Hejer <email@hidden>
  • Prev by Date: Re: Many to Many Grief
  • Next by Date: Re: editing context locking
  • Previous by thread: Re: Deployment in windows 2000 help
  • Next by thread: Re: editing context locking
  • Index(es):
    • Date
    • Thread