Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » searching cdo models?
searching cdo models? [message #419963] Sun, 15 June 2008 15:26 Go to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Eike

as I stated in another post today, it looks like we'll choose CDO for
our client :-)
There are a few more questions that popped to my mind, and I'd happy if
you could spot me some hints here:

- how can I search CDO instances (on the client? on the server?).
I saw, that there's an EMF search component that promisises to search
EMF based model instances (their examples include an emf grep and a
runtimeModelSearchAction). Am I right in assuming that this is the way
to go for the client? Is this usable in the server, too?

- is it possible that clients only hold a subgraph of the whole server
based model?
there's a similar question posted yesterday, I'll watch that one ;-)

- do you have experiences to the edges of scalability? How much data may
we expect to be storable with CDO?

Cheers + enjoy the rest of your weekend!
André
Re: searching cdo models? [message #419964 is a reply to message #419963] Sun, 15 June 2008 16:16 Go to previous messageGo to next message
Cristi Angheluta is currently offline Cristi AnghelutaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi André,

I'm sorry for intruding into your post but I have a question for you. How
did you manage to update the UI on model change/invalidate?
I do receive an invalidate event, at the session level, for a dirty object
and calling cdoObject.cdoReload() does not do what it says. I was
expecting that this cdoReload() to set the new value and, finally, to
update my UI. What can I do is to call a getter on the dirty object to
really set the new value and to trigger an UI update. For now it's ok I
got only 2-3 types of objects but for a real application ...

I'll appreciate any hints regarding my concern,

Cristi Angheluta
Re: searching cdo models? [message #419965 is a reply to message #419963] Sun, 15 June 2008 18:22 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Andr
Re: searching cdo models? [message #419983 is a reply to message #419964] Mon, 16 June 2008 11:02 Go to previous messageGo to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Christi

I'd really like to help you, but I have even fewer know-how than you
have. I was evaluating CDO for a customer project and I am still getting
started (we decided to use it this morning). I did not implement a
single line of code using CDO yet. Your research is very valuable for me
and I hope we'll be able to contribute as we progress. I expect to get
to the same problems (we'll implement a custom editor, too).

Cheers
André

Cristi Angheluta wrote:
> Hi André,
>
> I'm sorry for intruding into your post but I have a question for you.
> How did you manage to update the UI on model change/invalidate?
> I do receive an invalidate event, at the session level, for a dirty
> object and calling cdoObject.cdoReload() does not do what it says. I was
> expecting that this cdoReload() to set the new value and, finally, to
> update my UI. What can I do is to call a getter on the dirty object to
> really set the new value and to trigger an UI update. For now it's ok I
> got only 2-3 types of objects but for a real application ...
>
> I'll appreciate any hints regarding my concern,
>
> Cristi Angheluta
>
>
>
>
Re: searching cdo models? [message #419984 is a reply to message #419965] Mon, 16 June 2008 11:06 Go to previous messageGo to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Simon

thnaks for your rapid answer! Your query feature sounds very
interesting! I burn to get my hands on ;-) as soon as its ready. Is it
already usable or is it still in early development stages?
We are currently still in a proof-of-concept phase and we started
implementing this morning. I'll probably skip data queries and try to
use EMF-Serach in the client.

Cheers
André


Simon McDuff wrote:
> Hi André,
>
> I can only answer some component of your questions.
>
> I don`t know all the details about EMF search yet.. but I assume it could be
> used at the client level with CDO no problem.
>
> We are currently developping a query Mechanism to query instances. It is not
> to search Type but could be useful for you as well.
>
> 233273: [QUERY] Develop Query mechanism
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=233273
>
>
> Also, You can store as many objects you want into CDO. Since CDO will
> delegate to your database at the back-end... It really depends of the
> database you choose.
> At some point we will be providing some Performance Measure for different
> feature to let people know the CDO overhead
> Another measure we want to have is to measure the performance for our
> different IStore implementation in different context.
>
> 237158: Provide Performance TestCase
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=237158
>
>
>
> Simon
>
>
>
> "André Dietisheim" <dietisheim@puzzle.ch> a écrit dans le message de news:
> g33cbi$rhn$1@build.eclipse.org...
>> Hi Eike
>>
>> as I stated in another post today, it looks like we'll choose CDO for our
>> client :-)
>> There are a few more questions that popped to my mind, and I'd happy if
>> you could spot me some hints here:
>>
>> - how can I search CDO instances (on the client? on the server?).
>> I saw, that there's an EMF search component that promisises to search EMF
>> based model instances (their examples include an emf grep and a
>> runtimeModelSearchAction). Am I right in assuming that this is the way to
>> go for the client? Is this usable in the server, too?
>>
>> - is it possible that clients only hold a subgraph of the whole server
>> based model?
>> there's a similar question posted yesterday, I'll watch that one ;-)
>>
>> - do you have experiences to the edges of scalability? How much data may
>> we expect to be storable with CDO?
>>
>> Cheers + enjoy the rest of your weekend!
>> André
>
>
Re: searching cdo models? [message #419987 is a reply to message #419983] Mon, 16 June 2008 12:11 Go to previous messageGo to next message
Cristi Angheluta is currently offline Cristi AnghelutaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi André,

Don't bother anymore. I've figured out how to update the UI.

Thank you.

--
___________________________________________

Cristi Angheluta
Software Engineer

Bucharest Stock Exchange
34-36 Carol I Boulevard, 13th Floor
Bucharest, 020922, Romania

Mobile: +40-742-033-771
Phone: +40-21-3079512/166
Fax: +40-21-3079519
email: undisclosed@nomail.net
___________________________________________

"A minute to learn, a lifetime to master."


On Mon, 16 Jun 2008 14:02:00 +0300, André Dietisheim
<dietisheim@puzzle.ch> wrote:

> Hi Christi
>
> I'd really like to help you, but I have even fewer know-how than you
> have. I was evaluating CDO for a customer project and I am still getting
> started (we decided to use it this morning). I did not implement a
> single line of code using CDO yet. Your research is very valuable for me
> and I hope we'll be able to contribute as we progress. I expect to get
> to the same problems (we'll implement a custom editor, too).
>
> Cheers
> André
>
> Cristi Angheluta wrote:
>> Hi André,
>> I'm sorry for intruding into your post but I have a question for you.
>> How did you manage to update the UI on model change/invalidate?
>> I do receive an invalidate event, at the session level, for a dirty
>> object and calling cdoObject.cdoReload() does not do what it says. I
>> was expecting that this cdoReload() to set the new value and, finally,
>> to update my UI. What can I do is to call a getter on the dirty object
>> to really set the new value and to trigger an UI update. For now it's
>> ok I got only 2-3 types of objects but for a real application ...
>> I'll appreciate any hints regarding my concern,
>> Cristi Angheluta
>>
>
Re: searching cdo models? [message #419989 is a reply to message #419987] Mon, 16 June 2008 12:53 Go to previous messageGo to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Christi

would you mind post a snippet? I'd be very appreciate it. We'll face the
same problems for sure!

Thnaks + Cheers
André

Cristi Angheluta wrote:
> Hi André,
>
> Don't bother anymore. I've figured out how to update the UI.
>
> Thank you.
>
Re: searching cdo models? [message #419991 is a reply to message #419989] Mon, 16 June 2008 13:23 Go to previous messageGo to next message
Cristi Angheluta is currently offline Cristi AnghelutaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi Andre,

Please follow my previous post(s) @
http://www.eclipse.org/newsportal/article.php?id=32953&g roup=eclipse.tools.emf#32953.
There should be an attachment with a java file and an example of possible
databinding code, between an CDOObject and a SWT Label, that might help
you.

Don't forget to enable invalidate notifications

CDOView view = sess.openView();
view.setInvalidationNotificationsEnabled(true);

More likely that's not the best implementation of an IObservableValue for
a CDO object, but, I promise, to improve it and add more implementations
for IObservableList(/Map) etc., as soon as I decide to go with CDO. I'm
sure that there's a better way to get the old value (perhaps from a
previous revision?).


Cheers,
___________________________________________

Cristi Angheluta
Software Engineer

Bucharest Stock Exchange
34-36 Carol I Boulevard, 13th Floor
Bucharest, 020922, Romania

Mobile: +40-742-033-771
Phone: +40-21-3079512/166
Fax: +40-21-3079519
email: undisclosed@nomail.net
___________________________________________

"A minute to learn, a lifetime to master."


On Mon, 16 Jun 2008 15:53:43 +0300, André Dietisheim
<dietisheim@puzzle.ch> wrote:

> Hi Christi
>
> would you mind post a snippet? I'd be very appreciate it. We'll face the
> same problems for sure!
>
> Thnaks + Cheers
> André
>
> Cristi Angheluta wrote:
>> Hi André,
>> Don't bother anymore. I've figured out how to update the UI.
>> Thank you.
>>



--
Re: searching cdo models? [message #419992 is a reply to message #419991] Mon, 16 June 2008 13:27 Go to previous messageGo to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Christi

great! looks good, thanks!

Cheers
André

Cristi Angheluta wrote:
> Hi Andre,
>
> Please follow my previous post(s) @
> http://www.eclipse.org/newsportal/article.php?id=32953&g roup=eclipse.tools.emf#32953.
> There should be an attachment with a java file and an example of
> possible databinding code, between an CDOObject and a SWT Label, that
> might help you.
>
> Don't forget to enable invalidate notifications
>
> CDOView view = sess.openView();
> view.setInvalidationNotificationsEnabled(true);
>
> More likely that's not the best implementation of an IObservableValue
> for a CDO object, but, I promise, to improve it and add more
> implementations for IObservableList(/Map) etc., as soon as I decide to
> go with CDO. I'm sure that there's a better way to get the old value
> (perhaps from a previous revision?).
>
>
> Cheers,
> ___________________________________________
>
> Cristi Angheluta
> Software Engineer
>
> Bucharest Stock Exchange
> 34-36 Carol I Boulevard, 13th Floor
> Bucharest, 020922, Romania
>
> Mobile: +40-742-033-771
> Phone: +40-21-3079512/166
> Fax: +40-21-3079519
> email: undisclosed@nomail.net
> ___________________________________________
>
> "A minute to learn, a lifetime to master."
>
>
> On Mon, 16 Jun 2008 15:53:43 +0300, André Dietisheim
> <dietisheim@puzzle.ch> wrote:
>
>> Hi Christi
>>
>> would you mind post a snippet? I'd be very appreciate it. We'll face
>> the same problems for sure!
>>
>> Thnaks + Cheers
>> André
>>
>> Cristi Angheluta wrote:
>>> Hi André,
>>> Don't bother anymore. I've figured out how to update the UI.
>>> Thank you.
>>>
>
>
>
Re: searching cdo models? [message #419993 is a reply to message #419984] Mon, 16 June 2008 14:40 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
The framework to surround query mechanism is done, but the implementation of
a language such as HQL or OCL to the back end isn`t done yet!

Since I don`t want to have only 1 query language, we`ve made the query
mechanism it as generic as possible. IStore could implement their own
language. (e.g.: HQL for Hibernate/Teneo)

So far I use a own made language for my testcases. (very basic)


"Andr
Previous Topic:References in EMF models
Next Topic:Drag and Drop in outline view
Goto Forum:
  


Current Time: Fri Mar 29 05:32:13 GMT 2024

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

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

Back to the top