Index

DKDatastoreDefDJ

Purpose:

This class defines methods to access datastore definition information in DataJoiner.

Class summary:

DKDatastoreDefDJ
 
class DKDatastoreDefDJ : public dkDatastoreDef
{
 public:
   DKDatastoreDefDJ(dkDatastore* ds);
   virtual ~DKDatastoreDefDJ();
   
   virtual dkEntityDef* createEntity ();
   virtual dkEntityDef* getEntity (const char* entityName);
   virtual dkCollection* listEntities ();
   virtual DKString* listEntityNames (long& arraySize);
   virtual dkCollection* listEntityAttrs (const char* entityName);
   virtual DKString* listEntityAttrNames (const char* entityName, long& arraySize);
   virtual DKString* listPrimaryKeyNames(const char* tableName, long& arraySize);
   virtual DKString* listForeignKeyNames(const char* tableName, long& arraySize);
   virtual dkDatastoreAdmin* datastoreAdmin ();
 
   virtual void add (dkEntityDef* entityDef);
   virtual void del (dkEntityDef* entityDef);
 
   DKString getSchemaName();
   void     setSchemaName(const char* schemaName);
}

Members:

Constructors and destructor
Constructs a DKDatastoreDefDJ.
   DKDatastoreDefDJ(dkDatastore* ds);
   virtual ~DKDatastoreDefDJ();

Member functions

createEntity
Creates a new dkEntityDef and returns it.
   virtual dkEntityDef* createEntity ();

getEntity
Gets the dkEntityDef object for the given entity name from the persistent datastore.
   virtual dkEntityDef* getEntity (const char* entityName);

listEntities
Gets a list of entities from the persistent datastore.
   virtual dkCollection* listEntities ();

listEntityNames
Gets a list of entity names from the persistent datastore.
   virtual DKString* listEntityNames (long& arraySize);

listEntityAttrs
Gets a list of attributes for a given entity name.
   virtual dkCollection* listEntityAttrs (const char* entityName);

listEntityAttrNames
Gets a list of attribute names for a given entity name.
   virtual DKString* listEntityAttrNames (const char* entityName, long& arraySize);

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

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

datastoreAdmin
Get a datastore administration object for a datastore.
   virtual dkDatastoreAdmin* datastoreAdmin ();

add
Adds the given entity object to the persistent datastore.
   virtual void add (dkEntityDef* entityDef);

add
Deletes the given entity object from the persistent datastore.
   virtual void del (dkEntityDef* entityDef);

getSchemaName
Gets the schema name.
   DKString getSchemaName();

setSchemaName
Sets the schema name.
   void setSchemaName(const char* schemaName);

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