|
Re: [CDO][0.8.0] Nested Transaction [message #107542 is a reply to message #107000] |
Thu, 17 January 2008 17:03 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Simon,
Just to be sure what you like to gain: You don't want to separately
commit inner transaction to the server but rather be able to roll them
back locally? If so, I think that's a valid desire. I prefer the notion
of save points à la JDBC that can be passed into an overloaded
rollback() method.
I don't like the term "nested transaction" at least when I talk about
API design because if the client really receives handles to nested
transaction it's a bit unclear what happens if it uses the outer
transactions while holding handles to nested transactions. I propose the
following new API in CDOTransaction:
public CDOSavePoint createSavePoint();
public void rollback(CDOSavePoint savePoint, boolean remote);
With respect to the effort needed to implement this API I'm not sure. I
don't think that it can be done on the fly. Please enter an enhancement
request where we can further discuss possible solutions.
Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j
Simon McDuff schrieb:
> Should not be hard ?
>
> What do you think ?
>
> We will have to keep a little bit more info in the ChangeSet like oldValue.
> After that it is easy.
>
>
>
>
|
|
|
|
Re: [CDO][0.8.0] Nested Transaction [message #614037 is a reply to message #107000] |
Thu, 17 January 2008 17:03 |
|
Simon,
Just to be sure what you like to gain: You don't want to separately
commit inner transaction to the server but rather be able to roll them
back locally? If so, I think that's a valid desire. I prefer the notion
of save points à la JDBC that can be passed into an overloaded
rollback() method.
I don't like the term "nested transaction" at least when I talk about
API design because if the client really receives handles to nested
transaction it's a bit unclear what happens if it uses the outer
transactions while holding handles to nested transactions. I propose the
following new API in CDOTransaction:
public CDOSavePoint createSavePoint();
public void rollback(CDOSavePoint savePoint, boolean remote);
With respect to the effort needed to implement this API I'm not sure. I
don't think that it can be done on the fly. Please enter an enhancement
request where we can further discuss possible solutions.
Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j
Simon McDuff schrieb:
> Should not be hard ?
>
> What do you think ?
>
> We will have to keep a little bit more info in the ChangeSet like oldValue.
> After that it is easy.
>
>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.02914 seconds