Re: lock an entity?
Re: lock an entity?
- Subject: Re: lock an entity?
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 14 May 2007 14:29:38 -0400
Just use optimistic locking (the little lock icon in Entity Modeler)
and do a try/catch on ec.saveChanges and catch EOGeneralAdaptorException
On May 14, 2007, at 2:01 PM, YL wrote:
It's a config table, I want to make sure onle one person can
change it at a
time.
Assume multiple people have the access for changing the table
remotely.
----- Original Message -----
From: "Chuck Hill" <email@hidden>
To: "YL" <email@hidden>
Cc: <email@hidden>
Sent: Monday, May 14, 2007 10:58 AM
Subject: Re: lock an entity?
Locking is at the editing context level. What are you trying to do?
Chuck
On May 12, 2007, at 7:08 PM, YL wrote:
Is there a way to lock an entity to prevent other accesses to it
(even refuse read/fetch) during the current transaction?
Thanks
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.0/803 - Release Date:
5/13/2007
12:17 PM
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.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