[CDO] Creating a custom OR Mapper [message #427254] |
Mon, 09 February 2009 06:51 |
Eclipse User |
|
|
|
Originally posted by: anirudh.chandrakant.sap.com
Hi,
I realise that the OR and the persistency layer is orthogonal to the actual
modeling layer in CDO. I have also seen different implementations like the
custom DBStore, Teneo and now Objectivity. In the FAQ, i found that i could
write my own persistency layer by implementing a few interfaces - however,
there is no further information (at least i couldn't find any) on which
classes to use / interfaces to implement to achieve this.
Can someone provide any information on how i can go about doing this?
Thanks,
Anirudh
|
|
|
Re: [CDO] Creating a custom OR Mapper [message #427257 is a reply to message #427254] |
Mon, 09 February 2009 10:45 |
|
Anirudh,
Only this weekend I finally started working on a complete manual for
CDO. So far I have settled most of the logical structure, which will
contain a dedicated Extender's Guide. You can imagine that it will take
me some more time to fill all the chapters, but if you want to I can
prioritize the section about developing custom stores (please let me know).
The main interface that you need to implement is IStore, possibly by
subclassing Store or LongIDStore. The store implementation can decide to
support certain capabilities like revision deltas, auditing, etc...
The main task of a store is to create (and pool) store accessors. You
need to implement the IStoreAccessor interface, possibly by subclassing
StoreAccessor.
Depending on the capabilities you want to support, you need to implement
additional interfaces like IStoreChunkReader.
For examples it's best to look at the implementations of MEMStore,
DBStore and HibernateStore (ObjectivityStore is not yet open sourced).
I'm curious ;-)
What kind of store are you developing?
Which kind of back-end will be supported?
Cheers
/Eike
----
http://thegordian.blogspot.com
Anirudh Chandrakant schrieb:
> Hi,
>
> I realise that the OR and the persistency layer is orthogonal to the
> actual modeling layer in CDO. I have also seen different
> implementations like the custom DBStore, Teneo and now Objectivity. In
> the FAQ, i found that i could write my own persistency layer by
> implementing a few interfaces - however, there is no further
> information (at least i couldn't find any) on which classes to use /
> interfaces to implement to achieve this.
>
> Can someone provide any information on how i can go about doing this?
>
> Thanks,
> Anirudh
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03520 seconds