#include <mddcoll.hh>
Pointer to the actual class stored in the base DBMS. Based on the Base DBMS DBMDDSet class from relmddif.
MDDColl::MDDColl |
( |
const CollectionType * |
newType, |
|
|
const char * |
name = 0 |
|
) |
| |
Will get from cache/instantiate and return an MDDObj. Instantiation: it will just create a new one if isPersistent() == true -> passing it a oid that does not belong to the collection -> problem.
Inserts reference to MDD object into the collection. If the type of the object (transient/persistent) does not fit the collection an exception is thrown.
static bool MDDColl::dropMDDCollection |
( |
const char * |
name | ) |
|
|
static |
static bool MDDColl::dropMDDCollection |
( |
const OId & |
id | ) |
|
|
static |
Delete a mdd collection from database. Returns false if the name is unknown.
unsigned long MDDColl::getCardinality |
( |
| ) |
const |
Returns the type of this MDD collection.
Prints current status of the MDD Collection.
bool MDDColl::getEOId |
( |
EOId & |
pEOId | ) |
const |
Returns true if collection has an OId.
static MDDColl* MDDColl::getMDDCollection |
( |
const char * |
collName | ) |
|
throw | ( | r_Error |
| ) | | |
|
static |
const char* MDDColl::getName |
( |
| ) |
const |
Tells if collection is persistent.
bool MDDColl::getOId |
( |
OId & |
pOId | ) |
const |
Returns the cardinality of the collection.
void MDDColl::insert |
( |
const MDDObj * |
newObj | ) |
|
Returns true0 if collection has an EOId.
void MDDColl::insertIntoCache |
( |
const MDDObj * |
objToInsert | ) |
const |
|
protected |
Return the reference to the actual persistent object in the base DBMS. returned reference must be const -> impossible
bool MDDColl::isPersistent |
( |
| ) |
const |
Releases all dynamic memory allocated for the current collection. This method has to be called explicitely, since the destructor doesn't deallocate memory for the elements of the collection. The reason for this is to allow the user to use MDDObjs from this collection, even after the collection itself is no longer in main memory. This is only true for transient collections.
void MDDColl::printStatus |
( |
unsigned int |
level = 0 , |
|
|
ostream & |
stream = cout |
|
) |
| const |
Remove an mdd object from the collection. Returns always true.
void MDDColl::releaseAll |
( |
| ) |
|
Empties the current collection by removing all references to MDD objects from it. The objects are not obligatorily destroyed from the storage domain where they exist.
void MDDColl::remove |
( |
const MDDObj * |
obj | ) |
|
Creates a new iterator for this collection. Returns a pointer to the new allocated iterator object. Returned pointer must be freed afterwards.
void MDDColl::removeAll |
( |
| ) |
|
Remove reference to MDD object from the current collection. The object itself is not obligatorily destroyed from the storage domain where it exists. If the object does not live in the collection nothing is done.
static bool MDDColl::removeMDDObject |
( |
const OId & |
coll, |
|
|
const OId & |
id |
|
) |
| |
|
static |
Delete a mdd collection from database. Returns false if the oid is unknown.
const char* MDDColl::AllCollectionnamesName |
|
static |
Insert persistent MDD object in the internal cache.
The documentation for this class was generated from the following file: