Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Creating a custom OR Mapper
[CDO] Creating a custom OR Mapper [message #427254] Mon, 09 February 2009 06:51 Go to next message
Eclipse UserFriend
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 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Previous Topic:DeleteCommand is slow
Next Topic:JRE Compliance Level and Runtime Compatibility
Goto Forum:
  


Current Time: Fri Apr 26 22:43:05 GMT 2024

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

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

Back to the top