Index

DKIndexClassDefV4

Purpose:

DKIndexClassDefV4 provides methods to access entity information for an index class.

Class summary:

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

Members:

Constructors and destructor
   DKIndexClassDefV4(dkDatastore *ds);
   DKIndexClassDefV4(const DKIndexClassDefV4& def);
   virtual ~DKIndexClassDefV4();
 

Member functions

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

getAttr
Gets an attribute definition by 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);
 

add
The first form adds this entity definition to the persistent datastore. The second form adds an attribute definition to the datastore.
   virtual void add();
   virtual void add(dkAttrDef* attrDef);
 

del
The first form deletes this entity from the persistent datastore. The second form deletes the given attribute from this entity in the persistent datastore.
   virtual void del();
   virtual void del(dkAttrDef* attrDef);
 

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