Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: Value holding in CDO model
Re: Value holding in CDO model [message #425670] Thu, 04 December 2008 13:52 Go to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
I forgot to mention that CDO is supported in the EMF newsgroup, which I
added to the list of recipients...

Cheers
/Eike

----
http://thegordian.blogspot.com



Eike Stepper schrieb:
> Rimvydas,
>
> I think we could provide a configurable CDORevisionFactory in the
> session (revision manager) and use it to create alternative
> implementations of InternalCDORevision, for example subclasses of
> CDORevisionImpl (if you don't mind to depend on internal
> implementation code. I can't imagine of a way to change the
> implementation of CDOObjectImpl other than specifying a dfifferent
> class name in the generator model directly.
>
> Please feel free to file an enhancement request for the revision factory.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Rimvydas Vaidelis schrieb:
>> Suppose I have a CDO model and classes in the model can have a lot of
>> features.
>> Usually only a small subset of features is actually used.
>> CDO objects holds values in the EStoreEObjectImpl.eSettings
>> (transient or with enabled caching) and CDOObjectImpl.cdoSettings
>> fields. Size of these arrays is equal to number of features of a
>> class. So in my case the model's implementation is not efficient. I
>> would like to implement my own value holding.
>>
>> My question is: Is it possible to change value holding in CDO model
>> without reimplementing CDOEObjectImpl and EStoreEObjectImpl classes?
>>
>>
>>
>>
>>


Re: Value holding in CDO model [message #425673 is a reply to message #425670] Thu, 04 December 2008 14:09 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Small comments for Rimvydas,

CDOObjectImpl.cdoSettings is ONLY use when your object is transient!
As soon as you attached it in a CDO repository... it is not used.

Simon

Eike Stepper wrote:
> I forgot to mention that CDO is supported in the EMF newsgroup, which I
> added to the list of recipients...
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Eike Stepper schrieb:
>> Rimvydas,
>>
>> I think we could provide a configurable CDORevisionFactory in the
>> session (revision manager) and use it to create alternative
>> implementations of InternalCDORevision, for example subclasses of
>> CDORevisionImpl (if you don't mind to depend on internal
>> implementation code. I can't imagine of a way to change the
>> implementation of CDOObjectImpl other than specifying a dfifferent
>> class name in the generator model directly.
>>
>> Please feel free to file an enhancement request for the revision factory.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>
>> Rimvydas Vaidelis schrieb:
>>> Suppose I have a CDO model and classes in the model can have a lot of
>>> features.
>>> Usually only a small subset of features is actually used.
>>> CDO objects holds values in the EStoreEObjectImpl.eSettings
>>> (transient or with enabled caching) and CDOObjectImpl.cdoSettings
>>> fields. Size of these arrays is equal to number of features of a
>>> class. So in my case the model's implementation is not efficient. I
>>> would like to implement my own value holding.
>>>
>>> My question is: Is it possible to change value holding in CDO model
>>> without reimplementing CDOEObjectImpl and EStoreEObjectImpl classes?
>>>
>>>
>>>
>>>
>>>
Re: Value holding in CDO model [message #425695 is a reply to message #425673] Fri, 05 December 2008 08:38 Go to previous messageGo to next message
Rimvydas is currently offline RimvydasFriend
Messages: 47
Registered: July 2009
Member
Guys, thanks for your answers and comments.

Eike,

Your suggestion seems reasonable but as I understand it solves the problem
in case a CDO object is attached to CDO repository. If the CDO object is
transient then the problem remains. I think that it is important to solve
the both cases.

BTW, I have read
http://thegordian.blogspot.com/2008/11/how-scalable-are-my-m odels.html.
Very good article! Thank you very much.
Re: Value holding in CDO model [message #425698 is a reply to message #425695] Fri, 05 December 2008 10:16 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Rimvydas,

Comments below...



Rimvydas schrieb:
> Guys, thanks for your answers and comments.
>
> Eike,
>
> Your suggestion seems reasonable but as I understand it solves the
> problem in case a CDO object is attached to CDO repository.
Please don't forget to file an enhancement request if you want us to
address this issue.

> If the CDO object is transient then the problem remains. I think that
> it is important to solve the both cases.
Have you tried my suggestion to replace CDOObjectImpl by a customized
subclass through the generator property "Root Extends Class"?

>
> BTW, I have read
> http://thegordian.blogspot.com/2008/11/how-scalable-are-my-m odels.html.
> Very good article! Thank you very much.
Thank you ;-)

Cheers
/Eike

----
http://thegordian.blogspot.com


Re: Value holding in CDO model [message #425715 is a reply to message #425698] Fri, 05 December 2008 13:03 Go to previous messageGo to next message
Rimvydas is currently offline RimvydasFriend
Messages: 47
Registered: July 2009
Member
Eike,

I have filled RFE (https://bugs.eclipse.org/bugs/show_bug.cgi?id=257703)

>Have you tried my suggestion to replace CDOObjectImpl by a customized
subclass >through the generator property "Root Extends Class"?

I have not tried yet but I will try.
My point was that I would like to have a possibility to configure
CDOObjectImpl so that used my value holding mechanism instead of the
object array. I think that such feature would be useful for other people
also.

Regards,

Rimvydas
Re: Value holding in CDO model [message #425722 is a reply to message #425715] Fri, 05 December 2008 14:54 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Rimvydas,

Comments below...


Rimvydas schrieb:
> Eike,
>
> I have filled RFE (https://bugs.eclipse.org/bugs/show_bug.cgi?id=257703)
>
>> Have you tried my suggestion to replace CDOObjectImpl by a customized
> subclass >through the generator property "Root Extends Class"?
>
> I have not tried yet but I will try. My point was that I would like to
> have a possibility to configure CDOObjectImpl so that used my value
> holding mechanism instead of the object array. I think that such
> feature would be useful for other people also.
I doubt that but I may be wrong. We will certainly not complicate the
existing CDOObjectImpl and thereby reduce its performance. What about
trying what I suggested and in case it's working well for you we could
consider a contribution...

Cheers
/Eike

----
http://thegordian.blogspot.com


Re: Value holding in CDO model [message #425762 is a reply to message #425722] Mon, 08 December 2008 11:17 Go to previous messageGo to next message
Rimvydas is currently offline RimvydasFriend
Messages: 47
Registered: July 2009
Member
OK, we will implement this by ourselves.
Re: Value holding in CDO model [message #425763 is a reply to message #425762] Mon, 08 December 2008 12:47 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Rimvydas,

Please tell us if you need any advice.

And can you please indicate on the bugzilla whether you still want us to
implement the revision factory pattern?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257703

Cheers
/Eike

----
http://thegordian.blogspot.com



Rimvydas schrieb:
> OK, we will implement this by ourselves.
>


Previous Topic:Load Ressource
Next Topic:[Teneo] hibernate collection lazy loading behavior ?
Goto Forum:
  


Current Time: Tue Apr 07 11:06:51 GMT 2020

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

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

Back to the top