Re: ROLLBACK on EOUtilities.rawRowsForSQL
Re: ROLLBACK on EOUtilities.rawRowsForSQL
- Subject: Re: ROLLBACK on EOUtilities.rawRowsForSQL
- From: Chuck Hill <email@hidden>
- Date: Wed, 24 Nov 2004 11:09:42 -0800
Yes, of course it starts and transaction and commits it or rolls it back.
How else could an atomic work?
If you need finer grained control, you will have to go down into the
EOAccess lay and look at things like EODatabaseContext, EOAdaptorChannel etc.
IMPORTANT: You _must_ lock at this level. Must. It is not even a tiny bit
optional here.
Chuck
At 12:19 PM 24/11/2004 +0100, Damien Lust wrote:
>Hello,
>
>I execute in a WOLongResponsePage a set of update SQL.
>
>I use EOUtilities.rawRowsForSQL(ec,"DLQTModel",updateSQL,new NSArray())
>to perform my operation ( no eomodel defined to make update, the
>update sql is created dynamically in function of the definiton of the
>DB, impossible to use eomodeler).
>
>I must to able to stop the execution and make a rollback of all update.
>(and if the update crash => rollback)
>
>I use ec.revert(); (ec is a EOEditingContext)
>
>It seems that EOUtilities.rawRowsForSQL commit after evaluation of
>expression, so impossible to rollback.
>
>How to do that?
>
>Thanks.
>
>_______________________________________________
>WebObjects-dev mailing list
>email@hidden
>http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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