|
|
|
|
|
|
|
|
Re: CDOPackageRegistry role in CDO [message #429509 is a reply to message #429365] |
Fri, 24 April 2009 09:23 |
|
Rimvydas schrieb:
> Simon,
> Thank you for quick response.
>
> My concern is related with the places which I can not control. I mean
> if for example CDO will try to create my model's object on the server
> side I will have no possibility to configure the factory.
Only recently we added the ability to register EPackages with the
server-side. These packages would use whatever factory you want them to
use. As Simon said, currently we don't have EObjects at the server-side
at all. But when we will have them, they will be created by your factory
implementation. I guess what you really need is a way to listen to
package registrations, so that you're able to configure the state of the
factories before they're being used. Please file a bugzilla so that we
can add this notification.
Btw. preferrably I'd like to see a respective bugzilla against EMF Core! :P
Cheers
/Eike
----
http://thegordian.blogspot.com
>
> Maybe such model can work with CDO but only minimal CDO services can
> be used (save, read). Will it work for example with CDO Queries ?
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: CDOPackageRegistry role in CDO [message #429511 is a reply to message #429381] |
Fri, 24 April 2009 09:29 |
|
Rimvydas schrieb:
> ownedElement from my example is derived union feature. So the data is
> actually kept in other features but value of ownedElement is a special
> collection that contains or knows how to return values from subsetted
> properties. As I imagine CDO query could be (my fantasy):
> select obj.ownedElement from Actor as obj where obj.name like 'ABC'
> So CDO server must somehow to know that ownedElement property actually
> consists of several other properties. As I understand the server can
> know that only if
> it creates the model's object instance or programmer who writes the
> query will be forced to write more complex queries:
> select obj.ownedComment, obj.elementImport, obj.ownedMember, ... from
> Actor as obj where obj.name like 'ABC'
For this purpose we intend to provide the optional ability to have
CDOObjects on the server.
That said, I believe that it's generally not a good idea to modify the
default factory methods in order to modify the business state of objects
to be created. Consider that these methods are also called for objects
when you deserialize a resource. I think it's mostly useful for altering
some technical or internal state.
Cheers
/Eike
----
http://thegordian.blogspot.com
>
> MyRepository contains/knows about all model elements related to the
> repository and each model element uses services provided by MyRepository.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02566 seconds