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

Re: Database Context Locking


  • Subject: Re: Database Context Locking
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 23 Mar 2007 08:14:42 -0400

Yep

On Mar 21, 2007, at 8:38 PM, Andrew Lindesay wrote:

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:
40mdimension.com


This email sent to email@hidden


_______________________________________________
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


References: 
 >Database Context Locking (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
  • Next by Date: Re: Does WebObjects use Java 1.5?
  • Previous by thread: Database Context Locking
  • Next by thread: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
  • Index(es):
    • Date
    • Thread