AW: AW: [OJB-developers] Roadmap from OJB -> ODMG API's
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-13 15:26:21
|
Hi again, > -----Urspr=FCngliche Nachricht----- > Von: Ranjan Bagchi [mailto:ran...@fr...] > Gesendet: Mittwoch, 13. M=E4rz 2002 16:29 > An: Mahler Thomas > Cc: obj...@li... > Betreff: Re: AW: [OJB-developers] Roadmap from OJB -> ODMG API's >=20 >=20 >=20 > Thomas, >=20 > Yes -- the 2nd option (custom collection classes) is by far=20 > the prefered > method. Is DList a good example, or should I look elsewhere? >=20 DListImpl is a good point to start as overwritten methods like = remove(...) show you what to do. BUT: DListImpl uses the ODMG transaction to register the removed Entry = for deletion. You will have to implement your own registration mechanism. And = DListImpl won't help you much here... cu, Thomas > Thanks for the quick response, >=20 > Ranjan >=20 > On Wed, 13 Mar 2002, Mahler Thomas wrote: >=20 > > Hi Ranjan, > >=20 > > > Hi -- > > >=20 > > > Perhaps this is in the docs, but I haven't seen it: I've=20 > got a fairly > > > useful set of persistent objects using the OJB API. =20 > However, deletion > > > from collections (representing a 1:n mapping) isn't getting > > > persisted. According to the FAQ I should be using the ODMG=20 > > > API instead > > > which will handle this. > > >=20 > > > (First off, is this right?) > > >=20 > >=20 > > Yes. The PersistenceBroker does not track changes to Collections.=20 > >=20 > > You can do 2 things: > > 1. Use the ODMG Collections DListImpl etc. They do track=20 > such changes > > automatically. > > Of course you have to use ODMG Transactions then. > >=20 > > 2. Implement your own mechanism that tracks changes to=20 > collections and uses > > the PersistenceBroker to persist these changes. > > (E.G. You might implement your own Collection Classes that=20 > track deletion of > > objects) > >=20 > > Maybe this second option is easier to implement as you=20 > won't have to change > > so much of your existing code. > >=20 > > HTH, > >=20 > > Thomas > >=20 > > > Has anyone done this readjustment? Any caveats? > > >=20 > > > Thanks, > > >=20 > > > Ranjan Bagchi > > >=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > Objectbridge-developers mailing list > > > Obj...@li... > > >=20 > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > > >=20 > >=20 > >=20 >=20 |