Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] Nested Transaction
[CDO][0.8.0] Nested Transaction [message #107000] Wed, 16 January 2008 13:12 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
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 #107542 is a reply to message #107000] Thu, 17 January 2008 17:03 Go to previous messageGo to next message
Eclipse UserFriend
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 #107554 is a reply to message #107542] Thu, 17 January 2008 19:02 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215688


"Eike Stepper" <stepper@sympedia.de> wrote in message
news:fmo1q1$sqr$1@build.eclipse.org...
> 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
Re: [CDO][0.8.0] Nested Transaction [message #614037 is a reply to message #107000] Thu, 17 January 2008 17:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 #614038 is a reply to message #107542] Thu, 17 January 2008 19:02 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215688


"Eike Stepper" <stepper@sympedia.de> wrote in message
news:fmo1q1$sqr$1@build.eclipse.org...
> 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
Previous Topic:Bugs by EMFT
Next Topic:[CDO][0.8.0] CDORevision List - should have a better implementation for UNINITIALIZED data.
Goto Forum:
  


Current Time: Wed Apr 24 22:51:49 GMT 2024

Powered by FUDForum. Page generated in 0.02914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top