emf / sdo / wtp [message #111490] |
Wed, 15 June 2005 19:02  |
Eclipse User |
|
|
|
Our technology is built on top of EMF, not SDO. We have build a lot of
value-add around Adapters and Adapter Factories which
practically help user define context specific dynamic views.
For our Struts-based webui framework, we need to provide a dynamic access
interface that uses the our "view" adapters. Struts would be happy if we
implement apache/commons/beanutils/DynaBean interface. However, we want to
be able to generate Web Services using WTP, which uses SDO. There is very
little public info on how WTP uses EMF. Questions:
Q1- What does it take to generate a web service given a GenModel (with
already generated, modified code) and specific Adapters that know how to
present that model? ( For us it is crucial that the webservices DOM document
is constructed using our Adapters and not directly the underlying EMF model
objects. ).
Q2 - Do I need to generate Code using SDO templates to be able to make them
work with WTP, or is there a higher level API (perhaps
org.eclipse.wst.common.frameworks.datamodel) that I can implement?
----------
Briefly digging through the wtp code here is what i found:
1- wtp defines its own data model in
org.eclipse.wst.common.frameworks.datamodel in terms of a
composable data model objects with properties and operations.
- despite the similarity, wst datamodel does not extend from emf or sdo.
- DataModelProvider is intended to be the interface to help construct
these DataModels
- I could not find a data mode provider for SDO
2- org.eclipse.wst.common.internal.emf.resource provides utility classes
such as EMF2DOMAdapter etc.
- presumably these get invoked at runtime to present EMF objects as DOM
and vica versa
- it does not look like it uses the ItemProvider Adapters in EMF/SDO,
it goes directly to the EMF model objects
4-org.eclipse.wst.common.modulecore defines modulecore model which is
defined/generated in terms of EMF genModel (not SDO)
5-org.eclipse.wst.rdb.models.sql is defined/generated in terms of SDO.
- does this model merely represent the meta model of a relational
database? if so, how is it synchronized with the real database?
- SQLObjectImpl delegates to SDOUtils in its setter/getters
6- org.eclipse.wst.common.emfworkbench.integration has various packages:
- DataObjectGenerator extends WTPOperation in
org.eclipse.wst.common.ionternal.emfworkbench.operation
this generates SDO compatible code from given models.
- is this done at designtime by the user, or at runtime? how is the
generated SDO used?
- How does the WST get initialized with the generated SDO model?
7- org.eclipse.wst.common.internal.emfworkbench.edit has
AdapterFactoryRegistry. How does this get populated?
- Would these registered adapter factories make use of the ItemProvider
Adapters generated for the EMF models?
-----
I'd appreciate comments, feedback. Thanks in advance, Kagan
|
|
|
Re: emf / sdo / wtp [message #112011 is a reply to message #111490] |
Thu, 16 June 2005 13:15   |
Eclipse User |
|
|
|
Hi Kagan,
I have to confess that I am curious to see the answers for your
questions. I know EMF ;-) but I have no clue how it is used by the WTP
folks.
Cheers,
Marcelo.
Kagan Turgut wrote:
> Our technology is built on top of EMF, not SDO. We have build a lot of
> value-add around Adapters and Adapter Factories which
> practically help user define context specific dynamic views.
> For our Struts-based webui framework, we need to provide a dynamic access
> interface that uses the our "view" adapters. Struts would be happy if we
> implement apache/commons/beanutils/DynaBean interface. However, we want to
> be able to generate Web Services using WTP, which uses SDO. There is very
> little public info on how WTP uses EMF. Questions:
>
> Q1- What does it take to generate a web service given a GenModel (with
> already generated, modified code) and specific Adapters that know how to
> present that model? ( For us it is crucial that the webservices DOM document
> is constructed using our Adapters and not directly the underlying EMF model
> objects. ).
> Q2 - Do I need to generate Code using SDO templates to be able to make them
> work with WTP, or is there a higher level API (perhaps
> org.eclipse.wst.common.frameworks.datamodel) that I can implement?
>
> ----------
> Briefly digging through the wtp code here is what i found:
>
> 1- wtp defines its own data model in
> org.eclipse.wst.common.frameworks.datamodel in terms of a
> composable data model objects with properties and operations.
> - despite the similarity, wst datamodel does not extend from emf or sdo.
> - DataModelProvider is intended to be the interface to help construct
> these DataModels
> - I could not find a data mode provider for SDO
> 2- org.eclipse.wst.common.internal.emf.resource provides utility classes
> such as EMF2DOMAdapter etc.
> - presumably these get invoked at runtime to present EMF objects as DOM
> and vica versa
> - it does not look like it uses the ItemProvider Adapters in EMF/SDO,
> it goes directly to the EMF model objects
> 4-org.eclipse.wst.common.modulecore defines modulecore model which is
> defined/generated in terms of EMF genModel (not SDO)
> 5-org.eclipse.wst.rdb.models.sql is defined/generated in terms of SDO.
> - does this model merely represent the meta model of a relational
> database? if so, how is it synchronized with the real database?
> - SQLObjectImpl delegates to SDOUtils in its setter/getters
> 6- org.eclipse.wst.common.emfworkbench.integration has various packages:
> - DataObjectGenerator extends WTPOperation in
> org.eclipse.wst.common.ionternal.emfworkbench.operation
> this generates SDO compatible code from given models.
> - is this done at designtime by the user, or at runtime? how is the
> generated SDO used?
> - How does the WST get initialized with the generated SDO model?
> 7- org.eclipse.wst.common.internal.emfworkbench.edit has
> AdapterFactoryRegistry. How does this get populated?
> - Would these registered adapter factories make use of the ItemProvider
> Adapters generated for the EMF models?
> -----
> I'd appreciate comments, feedback. Thanks in advance, Kagan
>
>
|
|
|
|
|
|
Re: emf / sdo / wtp [message #112749 is a reply to message #112288] |
Mon, 20 June 2005 04:53  |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
I will provide a short article about the usage of the WTP translator (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=100762).
Daniel
"Philipp Kutter" <philipp@kutter.org> schrieb im Newsbeitrag
news:d4d4d42ead00dcc209854aaa50a55395$1@www.eclipse.org...
> Hi, Daniel.
> Could you not contribute your alternative way of persisting and
> loading EMF Resources to the EMF project? A feature request could
> be entered to the Bugzilla.
>
> I assume it is well tested in the WTP, from your blog it looks
> as if it is not too complicate, and there would be an example for
> a not so complext special way of persisting in the EMF generator.
>
> Best, Philipp
>
|
|
|
Powered by
FUDForum. Page generated in 0.04101 seconds