Re: Database Context Locking
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