You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Jan Lendholt <jl...@hotmail.com> on 2007/08/21 13:48:11 UTC
Order of commits
Hey Folks,
is it somehow possible to fire the different statements in a specific order?
It would be necessary to delete before insert... any solution herefor?
TIA!
Jan
_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
Re: Order of commits
Posted by Andrus Adamchik <an...@objectstyle.org>.
Yeah, EntitySorter is the only one, but it doesn't change basic
algorithm of insert -> update -> delete. Jan, if you could explain
what are you trying to accomplish, there may be another solution.
Andrus
On Aug 21, 2007, at 5:53 PM, Mike Kienenberger wrote:
> Looks like the query order is defined here:
>
> org.objectstyle.cayenne.access.DataDomainFlushAction.preprocess
> (DataContext
> context)
>
> I don't see any user-interceptable hooks here yet.
>
> A place that might make sense is in
> org.objectstyle.cayenne.access.DataDomainFlushAction.flush() after
> preprocess() but before runQueries(). Send the Query list to a
> delegate for order changing.
>
> This is all for Cayenne 1.2/2.0. Not sure how 3.0 differs.
>
> On 8/21/07, Jan Lendholt <jl...@hotmail.com> wrote:
>> Hey Folks,
>>
>> is it somehow possible to fire the different statements in a
>> specific order?
>> It would be necessary to delete before insert... any solution
>> herefor?
>>
>> TIA!
>>
>> Jan
>
Re: Order of commits
Posted by Mike Kienenberger <mk...@gmail.com>.
Looks like the query order is defined here:
org.objectstyle.cayenne.access.DataDomainFlushAction.preprocess(DataContext
context)
I don't see any user-interceptable hooks here yet.
A place that might make sense is in
org.objectstyle.cayenne.access.DataDomainFlushAction.flush() after
preprocess() but before runQueries(). Send the Query list to a
delegate for order changing.
This is all for Cayenne 1.2/2.0. Not sure how 3.0 differs.
On 8/21/07, Jan Lendholt <jl...@hotmail.com> wrote:
> Hey Folks,
>
> is it somehow possible to fire the different statements in a specific order?
> It would be necessary to delete before insert... any solution herefor?
>
> TIA!
>
> Jan
>
> _________________________________________________________________
> Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
> Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
> http://desktop.msn.de/ Jetzt gratis downloaden!
>
>