Index

DKTableDefDB2

Purpose:

DKTableDefDB2 defines functions to access entity information for an index class.

Class summary:

class DKTableDefDB2 : public dkEntityDef
{
public:
 
   DKTableDefDB2 (dkDatastore* ds);
 
   virtual ~DKTableDefDB2 ();
 
   virtual dkAttrDef* createAttr ();
   virtual dkAttrDef* getAttr (const char* attrName);
   virtual dkCollection* listAttrs ();
   virtual DKString* listAttrNames (long& arraySize);
   virtual DKString* listPrimaryKeyNames(long& arraySize);
   virtual DKString* listForeignKeyNames(long& arraySize);
 
   virtual void add ();
   virtual void del ();
   virtual void add (dkAttrDef* attrObj);
   virtual void del (dkAttrDef* attrObj);
}

Members:

Constructors and destructor
Constructs an index class definition for DB2.
   DKTableDefDB2 (dkDatastore* ds);
 
   virtual ~DKTableDefDB2 ();

Member functions

createAttr
Creates a new dkAttrDef and returns it to the caller.
   virtual dkAttrDef* createAttr ();

getAttr
Retrieves an attribute object from a given attribute name.
   virtual dkAttrDef* getAttr (const char* attrName);

listAttrs
Gets a list of attributes.
   virtual dkCollection* listAttrs ();

listAttrNames
Gets a list of attribute names.
   virtual DKString* listAttrNames (long& arraySize);

listPrimaryKeyNames
Gets a list of primary key names.
   virtual DKString* listPrimaryKeyNames(long& arraySize);

listForeignKeyNames
Gets a list of foreign key names.
   virtual DKString* listForeignKeyNames(long& arraySize);

add
Adds this entity definition to the persistent store.
   virtual void add ();

del
Deletes this entity from the persistent store.
   virtual void del ();

add
Adds the given attribute definition object to this entity in the persistent store.
   virtual void add (dkAttrDef* attrObj);

del
Deletes the given attribute from this entity in the persistent store.
   virtual void del (dkAttrDef* attrObj);

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