dictionary and relationship.

From: <ert_at_cit.org.by>
Date: Wed, 08 Nov 2000 17:05:55 GMT
Message-ID: <8uc15b$s0p$1_at_nnrp1.deja.com>


Hi out there.
I want to implement some Object Naming Service with ODMG 3.0 compliant database. I believe that the best way to do it is use d_Dictionary container. So my C++ header may looks like:

class NamingContext: public d_Object {

.......

 d_Dictionary<d_String,d_Ref<d_Object>> data;

.......
};

where d_String represents Object Name and d_Ref<d_Object> is the reference to some object stored in database. But I have no idea how this must be coded in ODL. Is the only
possibility to make ODL file:

class ObjectReference {

        relationship Object reference;
};

class NamingContext {
........

        attribute dictionary<String,ObjectReference> data; ........
}; ?

I think this is not good solution. Please, give me an advice. Thanks a lot.

Andrew Lipnitsky ert_at_cit.org.by

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Nov 08 2000 - 18:05:55 CET

Original text of this message