Home » Modeling » EMF » searching cdo models?
searching cdo models? [message #419963] |
Sun, 15 June 2008 11:26  |
Eclipse User |
|
|
|
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 08:11   |
Eclipse User |
|
|
|
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 #419991 is a reply to message #419989] |
Mon, 16 June 2008 09:23   |
Eclipse User |
|
|
|
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 09:27   |
Eclipse User |
|
|
|
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 10:40  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Fri Jul 04 12:09:21 EDT 2025
Powered by FUDForum. Page generated in 0.32405 seconds
|