Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDOStore - Question
[CDO] CDOStore - Question [message #422505] Mon, 08 September 2008 00:20 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Eike,

I noticed in CDOStore that:

- When CDOStore.add is called we convert the new value by calling
convertObjectToID.
- When we attach an object to view we will call convertObjectToID for every
attributes.

- When CDOStore.set is called... we do not call convertObjectToID.

I know at the end we will call provideCDOID... but do we have a reason why
we do not call convertObjectToID ?

Thank you

Simon
Re: [CDO] CDOStore - Question [message #422509 is a reply to message #422505] Mon, 08 September 2008 07:16 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Simon,

At a first glance it looks like a bug that it is missing in CDOStore.set().
I only wonder why no test has caught this...
Do you have an example of misbehaviour?

Cheers
/Eike


Simon McDuff schrieb:
> Hi Eike,
>
> I noticed in CDOStore that:
>
> - When CDOStore.add is called we convert the new value by calling
> convertObjectToID.
> - When we attach an object to view we will call convertObjectToID for every
> attributes.
>
> - When CDOStore.set is called... we do not call convertObjectToID.
>
> I know at the end we will call provideCDOID... but do we have a reason why
> we do not call convertObjectToID ?
>
> Thank you
>
> Simon
>
>
>
>


Re: [CDO] CDOStore - Question [message #422528 is a reply to message #422509] Mon, 08 September 2008 14:34 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Testcase will not get that since the behavior will be as expected since in
commit process we convert it in CDOID.

The only problem it will occured is if the refer object is already
persisted.... we cannot garbage collect that object :-(

I will add a testcase and a bugzilla entry for that. Ok ?


"Eike Stepper" <stepper@esc-net.de> a
Re: [CDO] CDOStore - Question [message #422529 is a reply to message #422528] Mon, 08 September 2008 16:08 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Simon McDuff schrieb:
> Testcase will not get that since the behavior will be as expected since in
> commit process we convert it in CDOID.
>
> The only problem it will occured is if the refer object is already
> persisted.... we cannot garbage collect that object :-(
>
> I will add a testcase and a bugzilla entry for that. Ok ?
>
Yes, that's fine.

Thx
/Eike


>
> "Eike Stepper" <stepper@esc-net.de> a écrit dans le message de news:
> ga2jhf$il6$3@build.eclipse.org...
>
>> Hi Simon,
>>
>> At a first glance it looks like a bug that it is missing in
>> CDOStore.set().
>> I only wonder why no test has caught this...
>> Do you have an example of misbehaviour?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>
>>> Hi Eike,
>>>
>>> I noticed in CDOStore that:
>>>
>>> - When CDOStore.add is called we convert the new value by calling
>>> convertObjectToID.
>>> - When we attach an object to view we will call convertObjectToID for
>>> every attributes.
>>>
>>> - When CDOStore.set is called... we do not call convertObjectToID.
>>>
>>> I know at the end we will call provideCDOID... but do we have a reason
>>> why we do not call convertObjectToID ?
>>>
>>> Thank you
>>>
>>> Simon
>>>
>>>
>>>
>>>
>>>
>
>
>


Previous Topic:Impossible to load UML model via Java code
Next Topic:Old newsgroup topics
Goto Forum:
  


Current Time: Tue Apr 23 16:50:16 GMT 2024

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

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

Back to the top