• 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
Database Context Locking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Database Context Locking


  • Subject: Database Context Locking
  • From: Andrew Lindesay <email@hidden>
  • Date: Thu, 22 Mar 2007 12:38:04 +1200

Hello;

If I'm doing something like this...

EODatabaseContext dbA = getDatabaseContextForEntity (rB.destinationEntity());

dbA.lock();

try
{
dbA.database().recordSnapshotForSourceGlobalID(null, gidA, rA.name ());
}
finally { dbA.unlock(); }

...is that the appropriate locking for this sort of action?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz



_______________________________________________
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: Database Context Locking
      • From: Mike Schrag <email@hidden>
  • Prev by Date: My WebObjects page
  • Next by Date: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
  • Previous by thread: My WebObjects page
  • Next by thread: Re: Database Context Locking
  • Index(es):
    • Date
    • Thread