Index

DKDatastoreSession

Purpose:

DKDatastoreSession is a class that contains datastore with assigned session Id to support the datastore pool.


Class summary:

class DKDatastoreSession
 {
   public:
      DKDatastoreSession(dkDatastore* aDs, long  aSessionId);
      virtual ~DKDatastoreSession();
      long    getId() const;
      void    setId(long aSessionId);
      dkDatastore*   getDatastore();
      void           setDatastore(dkDatastore* aDs);
 };

Members:

Constructors and destructor
DKDatastoreSession(dkDatastore* aDs,long  aSessionId);
     virtual ~DKDatastoreSession(); 

Member functions

getId
Gets the session Id of the datastore.
long getId() const;

setId
Sets the session Id for the datastore.
void setId(long aSessionId);  

getDatastore
Gets the datastore object.
dkDatastore* getDatastore();  

Note:
DKUsageError exception thrown if function is not implemented.

setDatastore
Sets the datastore object.
void setDatastore(dkDatastore* aDs);

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