version 1.4, 2006/08/09 21:13:03
|
version 1.5, 2006/11/14 18:34:57
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Robert Kieninger (kieningr@de.ibm.com) |
|
// |
|
// Modified By: |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_AssocClassCache_h | #ifndef Pegasus_AssocClassCache_h |
|
|
public: | public: |
| |
/** Retrieves a singleton instance of the class cache for the | /** Retrieves a singleton instance of the class cache for the |
* given namespace. |
given namespace. |
*/ | */ |
static AssocClassCache* getAssocClassCache(const String& nameSpace); | static AssocClassCache* getAssocClassCache(const String& nameSpace); |
static void cleanupAssocClassCaches(); | static void cleanupAssocClassCaches(); |
| |
/** Retrieve an entry for an association class through direct | /** Retrieve an entry for an association class through direct |
* access via the from class name. |
access via the from class name. |
*/ | */ |
Boolean getAssocClassEntry(const String& fromClassName, |
Boolean getAssocClassEntry( |
|
const String& fromClassName, |
Array< Array<String> >& entryList); | Array< Array<String> >& entryList); |
| |
/** Add a new entry to the association cache. | /** Add a new entry to the association cache. |
*/ | */ |
Boolean addRecord(const String& fromClassName, |
Boolean addRecord( |
|
const String& fromClassName, |
Array<String> assocClassEntry); | Array<String> assocClassEntry); |
| |
/** Remove an entry from the association cache specified by the given | /** Remove an entry from the association cache specified by the given |
* association class name. |
association class name. |
*/ | */ |
Boolean removeEntry(const String& fromClassName); | Boolean removeEntry(const String& fromClassName); |
| |
/** Remove an association record from the association cache specified by the given |
/** Remove an association record from the association cache specified by |
* from class name and association name. |
the given from class name and association name. |
*/ | */ |
Boolean removeRecord(const String& fromClassName, |
Boolean removeRecord( |
|
const String& fromClassName, |
const String& assocClassName); | const String& assocClassName); |
| |
/** Check if the cache is loaded with objects already. | /** Check if the cache is loaded with objects already. |