Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Object transactions: register vs. registerNew
Object transactions: register vs. registerNew [message #24726] Mon, 20 April 2009 05:28 Go to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hi,

I wonder what the exact difference between IObjectTransaction#register() and
#registerNew is? Can anyone give me a hint?

Thanks and greetz
Carsten
Re: Object transactions: register vs. registerNew [message #24764 is a reply to message #24726] Tue, 21 April 2009 09:59 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Hi Carsten,

As far as I know the difference is:
- with register() an object is registered that should not be tracked as
a new object
- while registerNew() registers a new object which should be tracked

Tschüß,
Stefan

Carsten Spieker wrote:
> Hi,
>
> I wonder what the exact difference between IObjectTransaction#register() and
> #registerNew is? Can anyone give me a hint?
>
> Thanks and greetz
> Carsten
>
>
Re: Object transactions: register vs. registerNew [message #24800 is a reply to message #24764] Tue, 21 April 2009 17:46 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Like Stefan said,

the difference is the state that the registered object gets. The object transaction keeps a state if the object was
brought in as "new" object or whether it was instantiate new but already existed in your persistentant store.

So later when you extract the Changes then you get the information whether that was an object that was new or existing
in the first place.

hope that helps

christian


Stefan Liebig schrieb:
> Hi Carsten,
>
> As far as I know the difference is:
> - with register() an object is registered that should not be tracked as
> a new object
> - while registerNew() registers a new object which should be tracked
>
> Tschüß,
> Stefan
>
> Carsten Spieker wrote:
>> Hi,
>>
>> I wonder what the exact difference between
>> IObjectTransaction#register() and #registerNew is? Can anyone give me
>> a hint?
>>
>> Thanks and greetz
>> Carsten
>>
Re: Object transactions: register vs. registerNew [message #581922 is a reply to message #24726] Tue, 21 April 2009 09:59 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Hi Carsten,

As far as I know the difference is:
- with register() an object is registered that should not be tracked as
a new object
- while registerNew() registers a new object which should be tracked

Tschüß,
Stefan

Carsten Spieker wrote:
> Hi,
>
> I wonder what the exact difference between IObjectTransaction#register() and
> #registerNew is? Can anyone give me a hint?
>
> Thanks and greetz
> Carsten
>
>
Re: Object transactions: register vs. registerNew [message #581943 is a reply to message #24764] Tue, 21 April 2009 17:46 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Like Stefan said,

the difference is the state that the registered object gets. The object transaction keeps a state if the object was
brought in as "new" object or whether it was instantiate new but already existed in your persistentant store.

So later when you extract the Changes then you get the information whether that was an object that was new or existing
in the first place.

hope that helps

christian


Stefan Liebig schrieb:
> Hi Carsten,
>
> As far as I know the difference is:
> - with register() an object is registered that should not be tracked as
> a new object
> - while registerNew() registers a new object which should be tracked
>
> Tschüß,
> Stefan
>
> Carsten Spieker wrote:
>> Hi,
>>
>> I wonder what the exact difference between
>> IObjectTransaction#register() and #registerNew is? Can anyone give me
>> a hint?
>>
>> Thanks and greetz
>> Carsten
>>
Previous Topic:Object transactions: register vs. registerNew
Next Topic:Deploying Riena applications
Goto Forum:
  


Current Time: Mon Oct 25 01:41:37 GMT 2021

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

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

Back to the top