TdkObjectCollection Class Reference
[The Core Module]

Defines the class TdkObjectCollection. More...

#include <TdkObjectCollection.h>

Inheritance diagram for TdkObjectCollection:

TdkObject TdkEventHandler TdkPersistenceObject TdkLayer TdkProject TdkTheme TdkView List of all members.

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 TdkObjectcopy ()
 Creates a copy of the object.
virtual bool needToLoad (TdkLoadParams &params)
 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 TdkObjectGIDgetGID ()
virtual TdkObjectTypeDefgetType ()
 Returns the object type.
virtual void import (TdkObject &object)

Protected Member Functions

virtual bool insert (TeDatabase *dbCaller, TdkPersistenceParams &params)
 Inserts the object in the database.
virtual bool load (TeDatabase *dbCaller, TdkLoadParams &params)
 Loads the object from the database.
virtual bool update (TeDatabase *dbCaller, TdkPersistenceParams &params)
 Updates the object in the database.
virtual void remove (TeDatabase *dbCaller, TdkPersistenceParams &params)
 Removes the object from the database.
virtual void loadChildren (TeDatabase *dbCaller, TdkLoadParams &params)
virtual void deleteChildren (TeDatabase *dbCaller, TdkEventHandlerVector &objects, TdkPersistenceParams &params)
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

Detailed Description

Defines the class TdkObjectCollection.


Constructor & Destructor Documentation

TdkObjectCollection::TdkObjectCollection ( const TdkObjectGID objectId  ) 

Tecgraf - GIS development team

Tdk Framework

@(#) TdkObjectCollection.cpp

TdkObjectCollection::TdkObjectCollection ( TdkObjectCollection collection  ) 

TdkObjectCollection::~TdkObjectCollection (  )  [virtual]


Member Function Documentation

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]

Removes the object from the database.

Implements TdkPersistenceObject.

Reimplemented in TdkLayer, TdkTheme, and TdkView.

void TdkObjectCollection::loadChildren ( TeDatabase *  dbCaller,
TdkLoadParams params 
) [protected, virtual]

Implements TdkPersistenceObject.

Reimplemented in TdkProject, TdkTheme, and TdkView.

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]

Reimplemented from TdkObject.

Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.

bool TdkObjectCollection::operator== ( TdkObject object  )  [virtual]

Returns true if the given object is equal to the object.

Implements TdkObject.

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]

Verify if loads the object from the database is necessary.

Implements TdkPersistenceObject.

Reimplemented in TdkLayer, TdkTheme, and TdkView.

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]

Returns true if there are a value (string) for the given attribute.

Implements TdkObject.

bool TdkObjectCollection::hasIntegerValue ( std::string  attr_name  )  [virtual]

Returns true if there are a value (integer) for the given attribute.

Implements TdkObject.

bool TdkObjectCollection::hasRealValue ( std::string  attr_name  )  [virtual]

Returns true if there are a value (real) for the given attribute.

Implements TdkObject.

std::string TdkObjectCollection::getAttributeValue ( std::string  attr_name  )  [virtual]

Returns the attribute value as string.

Implements TdkObject.

void TdkObjectCollection::setAttributeValue ( std::string  attr_name,
std::string  value 
) [virtual]

Set the attribute value from a string.

Implements TdkObject.

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]

Returns the value for the given attribute. The attribute type must be integer.

Implements TdkObject.

Reimplemented in TdkLayer, TdkTheme, and TdkView.

void TdkObjectCollection::setIntegerAttr ( std::string  attr_name,
int  value 
) [virtual]

Gets the value for the given attribute. The attribute type must be integer.

Implements TdkObject.

Reimplemented in TdkLayer, TdkTheme, and TdkView.

double TdkObjectCollection::getRealAttr ( std::string  attr_name  )  [virtual]

Returns the value for the given attribute. The attribute type must be real.

Implements TdkObject.

Reimplemented in TdkLayer, and TdkTheme.

void TdkObjectCollection::setRealAttr ( std::string  attr_name,
double  value 
) [virtual]

Gets the value for the given attribute. The attribute type must be real.

Implements TdkObject.

Reimplemented in TdkLayer, and TdkTheme.

void TdkObjectCollection::setGID ( const TdkObjectGID objectGID  )  [virtual]

Implements TdkObject.

Reimplemented in TdkLayer, TdkTheme, and TdkView.

TdkObjectGID & TdkObjectCollection::getGID (  )  [virtual]

Implements TdkObject.

TdkObjectTypeDef & TdkObjectCollection::getType (  )  [virtual]

Returns the object type.

Implements TdkObject.

void TdkObjectCollection::import ( TdkObject object  )  [virtual]

Implements TdkObject.

Reimplemented in TdkLayer, TdkProject, TdkTheme, and TdkView.


Friends And Related Function Documentation

friend class TdkCache [friend]

friend class TdkPersistenceService [friend]

Reimplemented from TdkObject.

Reimplemented in TdkTheme.


Member Data Documentation

TdkObjectGID TdkObjectCollection::objectGID_ [protected]

TdkObjectMap TdkObjectCollection::compositeProperties_ [protected]

TdkIntegerMap TdkObjectCollection::integerProperties_ [protected]

TdkRealMap TdkObjectCollection::realProperties_ [protected]

TdkStringMap TdkObjectCollection::stringProperties_ [protected]


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:47 2007 for TDK by  doxygen 1.5.2