#include <TdkObjectCollection.h>
Inheritance diagram for TdkObjectCollection:

Public Member Functions | |
| TdkObjectCollection (const TdkObjectGID &objectId) | |
| TdkObjectCollection (TdkObjectCollection &collection) | |
| virtual | ~TdkObjectCollection () |
| virtual void | operator= (TdkObject &object) |
| virtual bool | operator== (TdkObject &object) |
| Returns true if the given object is equal to the object. | |
| virtual TdkObject * | copy () |
| Creates a copy of the object. | |
| virtual bool | needToLoad (TdkLoadParams ¶ms) |
| Verify if loads the object from the database is necessary. | |
| virtual void | setChildren (TdkObjectGIDMap &children) |
| Sets the GIDs children vector from a given collection. | |
| virtual bool | hasValueInCache (std::string attr_name) |
| virtual bool | hasStringValue (std::string attr_name) |
| Returns true if there are a value (string) for the given attribute. | |
| virtual bool | hasIntegerValue (std::string attr_name) |
| Returns true if there are a value (integer) for the given attribute. | |
| virtual bool | hasRealValue (std::string attr_name) |
| Returns true if there are a value (real) for the given attribute. | |
| virtual std::string | getAttributeValue (std::string attr_name) |
| Returns the attribute value as string. | |
| virtual void | setAttributeValue (std::string attr_name, std::string value) |
| Set the attribute value from a string. | |
| virtual std::string | getStringAttr (std::string attr_name) |
| Returns the value for the given attribute. The attribute type must be string. | |
| virtual void | setStringAttr (std::string attr_name, std::string value) |
| Sets the value for the given attribute. The attribute type must be string. | |
| virtual int | getIntegerAttr (std::string attr_name) |
| Returns the value for the given attribute. The attribute type must be integer. | |
| virtual void | setIntegerAttr (std::string attr_name, int value) |
| Gets the value for the given attribute. The attribute type must be integer. | |
| virtual double | getRealAttr (std::string attr_name) |
| Returns the value for the given attribute. The attribute type must be real. | |
| virtual void | setRealAttr (std::string attr_name, double value) |
| Gets the value for the given attribute. The attribute type must be real. | |
| virtual void | setGID (const TdkObjectGID &objectGID) |
| virtual TdkObjectGID & | getGID () |
| virtual TdkObjectTypeDef & | getType () |
| Returns the object type. | |
| virtual void | import (TdkObject &object) |
Protected Member Functions | |
| virtual bool | insert (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
| Inserts the object in the database. | |
| virtual bool | load (TeDatabase *dbCaller, TdkLoadParams ¶ms) |
| Loads the object from the database. | |
| virtual bool | update (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
| Updates the object in the database. | |
| virtual void | remove (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
| Removes the object from the database. | |
| virtual void | loadChildren (TeDatabase *dbCaller, TdkLoadParams ¶ms) |
| virtual void | deleteChildren (TeDatabase *dbCaller, TdkEventHandlerVector &objects, TdkPersistenceParams ¶ms) |
| virtual void | loadChildrenGIDs (TeDatabase *dbCaller) |
| virtual void | associateChildren (TeDatabase *dbCaller) |
Protected Attributes | |
| TdkObjectGID | objectGID_ |
| TdkObjectMap | compositeProperties_ |
| TdkIntegerMap | integerProperties_ |
| TdkRealMap | realProperties_ |
| TdkStringMap | stringProperties_ |
Friends | |
| class | TdkCache |
| class | TdkPersistenceService |
| TdkObjectCollection::TdkObjectCollection | ( | const TdkObjectGID & | objectId | ) |
| TdkObjectCollection::TdkObjectCollection | ( | TdkObjectCollection & | collection | ) |
| TdkObjectCollection::~TdkObjectCollection | ( | ) | [virtual] |
| bool TdkObjectCollection::insert | ( | TeDatabase * | dbCaller, | |
| TdkPersistenceParams & | params | |||
| ) | [inline, protected, virtual] |
Inserts the object in the database.
Implements TdkPersistenceObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| bool TdkObjectCollection::load | ( | TeDatabase * | dbCaller, | |
| TdkLoadParams & | params | |||
| ) | [protected, virtual] |
Loads the object from the database.
Implements TdkPersistenceObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| bool TdkObjectCollection::update | ( | TeDatabase * | dbCaller, | |
| TdkPersistenceParams & | params | |||
| ) | [protected, virtual] |
Updates the object in the database.
Implements TdkPersistenceObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| void TdkObjectCollection::remove | ( | TeDatabase * | dbCaller, | |
| TdkPersistenceParams & | params | |||
| ) | [inline, protected, virtual] |
| void TdkObjectCollection::loadChildren | ( | TeDatabase * | dbCaller, | |
| TdkLoadParams & | params | |||
| ) | [protected, virtual] |
| void TdkObjectCollection::deleteChildren | ( | TeDatabase * | dbCaller, | |
| TdkEventHandlerVector & | objects, | |||
| TdkPersistenceParams & | params | |||
| ) | [protected, virtual] |
Reimplemented in TdkTheme.
| void TdkObjectCollection::loadChildrenGIDs | ( | TeDatabase * | dbCaller | ) | [protected, virtual] |
Reimplemented in TdkTheme.
| void TdkObjectCollection::associateChildren | ( | TeDatabase * | dbCaller | ) | [protected, virtual] |
Reimplemented in TdkTheme.
| void TdkObjectCollection::operator= | ( | TdkObject & | object | ) | [virtual] |
| bool TdkObjectCollection::operator== | ( | TdkObject & | object | ) | [virtual] |
| TdkObject * TdkObjectCollection::copy | ( | ) | [virtual] |
Creates a copy of the object.
Implements TdkObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| bool TdkObjectCollection::needToLoad | ( | TdkLoadParams & | params | ) | [inline, virtual] |
| void TdkObjectCollection::setChildren | ( | TdkObjectGIDMap & | children | ) | [virtual] |
Sets the GIDs children vector from a given collection.
| bool TdkObjectCollection::hasValueInCache | ( | std::string | attr_name | ) | [inline, virtual] |
Implements TdkObject.
| bool TdkObjectCollection::hasStringValue | ( | std::string | attr_name | ) | [virtual] |
| bool TdkObjectCollection::hasIntegerValue | ( | std::string | attr_name | ) | [virtual] |
| bool TdkObjectCollection::hasRealValue | ( | std::string | attr_name | ) | [virtual] |
| std::string TdkObjectCollection::getAttributeValue | ( | std::string | attr_name | ) | [virtual] |
| void TdkObjectCollection::setAttributeValue | ( | std::string | attr_name, | |
| std::string | value | |||
| ) | [virtual] |
| std::string TdkObjectCollection::getStringAttr | ( | std::string | attr_name | ) | [virtual] |
Returns the value for the given attribute. The attribute type must be string.
Implements TdkObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| void TdkObjectCollection::setStringAttr | ( | std::string | attr_name, | |
| std::string | value | |||
| ) | [virtual] |
Sets the value for the given attribute. The attribute type must be string.
Implements TdkObject.
Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.
| int TdkObjectCollection::getIntegerAttr | ( | std::string | attr_name | ) | [virtual] |
| void TdkObjectCollection::setIntegerAttr | ( | std::string | attr_name, | |
| int | value | |||
| ) | [virtual] |
| double TdkObjectCollection::getRealAttr | ( | std::string | attr_name | ) | [virtual] |
| void TdkObjectCollection::setRealAttr | ( | std::string | attr_name, | |
| double | value | |||
| ) | [virtual] |
| void TdkObjectCollection::setGID | ( | const TdkObjectGID & | objectGID | ) | [virtual] |
| TdkObjectGID & TdkObjectCollection::getGID | ( | ) | [virtual] |
Implements TdkObject.
| TdkObjectTypeDef & TdkObjectCollection::getType | ( | ) | [virtual] |
| void TdkObjectCollection::import | ( | TdkObject & | object | ) | [virtual] |
friend class TdkCache [friend] |
friend class TdkPersistenceService [friend] |
TdkObjectGID TdkObjectCollection::objectGID_ [protected] |
TdkIntegerMap TdkObjectCollection::integerProperties_ [protected] |
TdkRealMap TdkObjectCollection::realProperties_ [protected] |
TdkStringMap TdkObjectCollection::stringProperties_ [protected] |
1.5.2