Index

dkDataObjectBase

Purpose:

dkDataObjectBase is an abstract base class for data objects, data value objects (UDTs), and extended data objects (XDO). These are the objects known by datastores.

Class summary:

 class dkDataObjectBase
 {
  public:
    dkDataObjectBase();
    virtual dkDataObjectBase();
    virtual short    protocol() const = 0;
    virtual DKString getObjectType() const = 0;
    virtual dkDataObjectBase* getParent();
    virtual void setParent(dkDataObjectBase* parentObject);
    virtual dkDataObjectBase* getRootObject();
    virtual void setRootObject(dkDataObjectBase* rootObject);
 };

dkDataObjectBase has protocol, which indicates what protocol to use to store and retrieve the persistent data from (or to) a datastore. Objects with the same protocol are handled in a similar manner by the datastore. The data access class library supports the following protocols:

Potentially, the data access class library can be extended to support additional subclasses and their associated protocol; for example, stream data object and protocol.

Members:

Member functions

protocol
Gets the protocol type associated with this data object.
virtual short protocol() const;

getObjectType
Gets the type of this object.
virtual DKString getObjectType() const;

getParent
Gets the parent object.
virtual dkDataObjectBase* getParent(); 

setParent
Sets the parent object.
virtual void setParent(dkDataObjectBase* parentObject);

getRootObject
Gets the root object.
virtual dkDataObjectBase* getRootObject();

setRootObject
Sets the root object.
virtual void setRootObject(dkDataObjectBase* rootObject);

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.