Purpose:
This class defines methods to access database index information on root or child components.
Since: Version 8
Class summary:
class DKEXPORT DKComponentTypeIndexDefICM { public: DKComponentTypeIndexDefICM(); DKComponentTypeIndexDefICM(dkDatastore* ds); DKComponentTypeIndexDefICM(const DKComponentTypeIndexDefICM& compIndex); virtual ~DKComponentTypeIndexDefICM(); void add(); void del(); DKString getName(); void setName(const char* indexName); DKString getIndexSchema(); void setIndexSchema(const char* indexSchema); dkEntityDef* getComponentType(); void setComponentType(dkEntityDef* compType); long getComponentTypeId(); void setComponentTypeId(long compTypeID); void addAttr(dkAttrDef* attrObj); DKBoolean isUnique(); void setUnique(DKBoolean unique); };
Members:
DKComponentTypeIndexDefICM();
Default constructor for the component type index class. Constructs the definition of the index class for a component type definition.
DKComponentTypeIndexDefICM(dkDatastore* ds);
Constructs an instance of the index class definition for the given ICM datastore. Parameters: ds - datastore object as an instance of DKDatastoreICM.
DKComponentTypeIndexDefICM(const DKComponentTypeIndexDefICM& compIndex);
A copy constructor for component type index definition object. The new instance of the component type index definition will contain all the information copied from the original one. Parameters: compIndex - a component type index definition object, DKComponentTypeIndexDefICM.
virtual ~DKComponentTypeIndexDefICM();
Destructor for this object.
void add();
void del();
DKString getName();
void setName(const char* indexName);
void setIndexSchema(const char* indexSchema);
dkEntityDef* getComponentType();
void setComponentType(dkEntityDef* compType);
long getComponentTypeId();
void setComponentTypeId(long compTypeID);
void addAttr(dkAttrDef* attrObj);
DKBoolean isUnique();
void setUnique(DKBoolean unique);
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.