Skip to main content



      Home
Home » Archived » Riena » Object transactions: register vs. registerNew
Object transactions: register vs. registerNew [message #24726] Mon, 20 April 2009 01:28 Go to next message
Eclipse UserFriend
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 05:59 Go to previous messageGo to next message
Eclipse UserFriend
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 13:46 Go to previous message
Eclipse UserFriend
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 05:59 Go to previous message
Eclipse UserFriend
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 13:46 Go to previous message
Eclipse UserFriend
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: Sat May 10 04:03:15 EDT 2025

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

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

Back to the top