#include <TdkCatalogueObject.h>
Inheritance diagram for TdkCatalogueObject:
Public Member Functions | |
TdkCatalogueObject () | |
TdkCatalogueObject (TdkObjectGID &objectGID) | |
TdkCatalogueObject (TdkCatalogueObject &object) | |
virtual | ~TdkCatalogueObject () |
virtual TdkCatalogueObject * | copy () |
Creates a copy of the object. | |
virtual void | import (TdkCatalogueObject &object) |
Imports an object to this. | |
virtual void | operator= (TdkCatalogueObject &object) |
virtual bool | operator== (TdkCatalogueObject &object) |
Returns true if the given object is equal to the object. | |
void | init () |
void | setObjectGID (TdkObjectGID &objectGID) |
TdkObjectGID & | getObjectGID () |
void | setEntityId (int entityId) |
int | getEntityId () |
void | setName (std::string name) |
std::string | getName () |
void | setDescription (std::string description) |
std::string | getDescription () |
void | setSource (std::string source) |
std::string | getSource () |
void | setUN (std::string un) |
std::string | getUN () |
void | setCreationDate (std::string creationDate) |
std::string | getCreationDate () |
void | setUpdateDate (std::string updateDate) |
std::string | getUpdateDate () |
void | setVersion (std::string objectVersion) |
std::string | getVersion () |
void | setVersionFatherId (int objectVersionFatherId) |
int | getVersionFatherId () |
void | setIsPublic (bool isPublic) |
bool | getIsPublic () |
void | setTypeId (int typeId) |
int | getTypeId () |
void | setThumbnailId (int thumbnailId) |
int | getThumbnailId () |
void | setLocalId (int localId) |
int | getLocalId () |
void | setResponsibleId (int responsibleId) |
int | getResponsibleId () |
void | setInsertInIndex (bool insertInIndex) |
bool | getInsertInIndex () |
void | setTypeName (std::string typeName) |
std::string | getTypeName () |
void | setThumbnailReference (std::string thumbRef) |
std::string | getThumbnailReference () |
void | setResponsibleName (std::string responsibleName) |
std::string | getResponsibleName () |
bool | getAllCatalogueAttrsInCache () |
void | setAllCatalogueAttrsInCache (bool allCatalogueAttrsInCache) |
bool | getAllExtendedAttrsInCache () |
void | setAllExtendedAttrsInCache (bool allExtendedAttrsInCache) |
std::vector< std::string > | getCatalogueAttrsInCache () |
void | setCatalogueAttrsInCache (std::vector< std::string > catalogueAttrsInCache) |
std::vector< std::string > | getExtendedAttrsInCache () |
void | setExtendedAttrsInCache (std::vector< std::string > extendedAttrsInCache) |
void | setExtendedAttributes (std::map< std::string, VerticalModelAttribute * > extendedAttributes) |
std::map< std::string, VerticalModelAttribute * > | getExtendedAttributes () |
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 bool | needToLoad (TdkLoadParams ¶ms) |
Verify if loads the object from the database is necessary. | |
Protected Member Functions | |
virtual void | loadChildren (TeDatabase *dbCaller, TdkLoadParams ¶ms) |
virtual void | updateChildren (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
virtual void | deleteChildren (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
void | selectAttributesToLoad_ (vector< string > &attrsLoaded, vector< string > &attrsToLoad) |
std::string | createHeader () |
std::string | int2string (const int &number) |
std::string | boolean2StringifiedInt (bool bl) |
Protected Attributes | |
bool | allCatalogueAttrsInCache_ |
bool | allExtendedAttrsInCache_ |
std::vector< std::string > | catalogueAttrsInCache_ |
std::vector< std::string > | extendedAttrsInCache_ |
TdkObjectGID * | objectGID_ |
std::string | name_ |
std::string | newName_ |
std::string | description_ |
std::string | source_ |
std::string | un_ |
std::string | creation_date_ |
std::string | update_date_ |
std::string | version_ |
int | version_father_id_ |
bool | isPublic_ |
int | typeId_ |
int | thumbnailId_ |
int | localId_ |
int | responsibleId_ |
bool | insertInIndex_ |
std::string | typeName_ |
std::string | thumbnailReference_ |
std::string | responsibleName_ |
std::map< std::string, VerticalModelAttribute * > | extendedAttributes_ |
TdkCatalogueObject::TdkCatalogueObject | ( | ) | [inline] |
TdkCatalogueObject::TdkCatalogueObject | ( | TdkObjectGID & | objectGID | ) |
TdkCatalogueObject::TdkCatalogueObject | ( | TdkCatalogueObject & | object | ) |
TdkCatalogueObject::~TdkCatalogueObject | ( | ) | [virtual] |
virtual void TdkCatalogueObject::loadChildren | ( | TeDatabase * | dbCaller, | |
TdkLoadParams & | params | |||
) | [inline, protected, virtual] |
Implements TdkPersistenceObject.
virtual void TdkCatalogueObject::updateChildren | ( | TeDatabase * | dbCaller, | |
TdkPersistenceParams & | params | |||
) | [inline, protected, virtual] |
virtual void TdkCatalogueObject::deleteChildren | ( | TeDatabase * | dbCaller, | |
TdkPersistenceParams & | params | |||
) | [inline, protected, virtual] |
void TdkCatalogueObject::selectAttributesToLoad_ | ( | vector< string > & | attrsLoaded, | |
vector< string > & | attrsToLoad | |||
) | [protected] |
std::string TdkCatalogueObject::createHeader | ( | ) | [protected] |
std::string TdkCatalogueObject::int2string | ( | const int & | number | ) | [protected] |
std::string TdkCatalogueObject::boolean2StringifiedInt | ( | bool | bl | ) | [protected] |
TdkCatalogueObject * TdkCatalogueObject::copy | ( | ) | [virtual] |
Creates a copy of the object.
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
void TdkCatalogueObject::import | ( | TdkCatalogueObject & | object | ) | [virtual] |
Imports an object to this.
void TdkCatalogueObject::operator= | ( | TdkCatalogueObject & | object | ) | [virtual] |
bool TdkCatalogueObject::operator== | ( | TdkCatalogueObject & | object | ) | [virtual] |
Returns true if the given object is equal to the object.
void TdkCatalogueObject::init | ( | ) |
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
void TdkCatalogueObject::setObjectGID | ( | TdkObjectGID & | objectGID | ) | [inline] |
TdkObjectGID & TdkCatalogueObject::getObjectGID | ( | ) | [inline] |
void TdkCatalogueObject::setEntityId | ( | int | entityId | ) | [inline] |
int TdkCatalogueObject::getEntityId | ( | ) | [inline] |
void TdkCatalogueObject::setName | ( | std::string | name | ) | [inline] |
std::string TdkCatalogueObject::getName | ( | ) | [inline] |
void TdkCatalogueObject::setDescription | ( | std::string | description | ) | [inline] |
std::string TdkCatalogueObject::getDescription | ( | ) | [inline] |
void TdkCatalogueObject::setSource | ( | std::string | source | ) | [inline] |
std::string TdkCatalogueObject::getSource | ( | ) | [inline] |
void TdkCatalogueObject::setUN | ( | std::string | un | ) | [inline] |
std::string TdkCatalogueObject::getUN | ( | ) | [inline] |
void TdkCatalogueObject::setCreationDate | ( | std::string | creationDate | ) | [inline] |
std::string TdkCatalogueObject::getCreationDate | ( | ) | [inline] |
void TdkCatalogueObject::setUpdateDate | ( | std::string | updateDate | ) | [inline] |
std::string TdkCatalogueObject::getUpdateDate | ( | ) | [inline] |
void TdkCatalogueObject::setVersion | ( | std::string | objectVersion | ) | [inline] |
std::string TdkCatalogueObject::getVersion | ( | ) | [inline] |
void TdkCatalogueObject::setVersionFatherId | ( | int | objectVersionFatherId | ) | [inline] |
int TdkCatalogueObject::getVersionFatherId | ( | ) | [inline] |
void TdkCatalogueObject::setIsPublic | ( | bool | isPublic | ) | [inline] |
bool TdkCatalogueObject::getIsPublic | ( | ) | [inline] |
void TdkCatalogueObject::setTypeId | ( | int | typeId | ) | [inline] |
int TdkCatalogueObject::getTypeId | ( | ) | [inline] |
void TdkCatalogueObject::setThumbnailId | ( | int | thumbnailId | ) | [inline] |
int TdkCatalogueObject::getThumbnailId | ( | ) | [inline] |
void TdkCatalogueObject::setLocalId | ( | int | localId | ) | [inline] |
int TdkCatalogueObject::getLocalId | ( | ) | [inline] |
void TdkCatalogueObject::setResponsibleId | ( | int | responsibleId | ) | [inline] |
int TdkCatalogueObject::getResponsibleId | ( | ) | [inline] |
void TdkCatalogueObject::setInsertInIndex | ( | bool | insertInIndex | ) | [inline] |
bool TdkCatalogueObject::getInsertInIndex | ( | ) | [inline] |
void TdkCatalogueObject::setTypeName | ( | std::string | typeName | ) | [inline] |
std::string TdkCatalogueObject::getTypeName | ( | ) | [inline] |
void TdkCatalogueObject::setThumbnailReference | ( | std::string | thumbRef | ) | [inline] |
std::string TdkCatalogueObject::getThumbnailReference | ( | ) | [inline] |
void TdkCatalogueObject::setResponsibleName | ( | std::string | responsibleName | ) | [inline] |
std::string TdkCatalogueObject::getResponsibleName | ( | ) | [inline] |
bool TdkCatalogueObject::getAllCatalogueAttrsInCache | ( | ) | [inline] |
void TdkCatalogueObject::setAllCatalogueAttrsInCache | ( | bool | allCatalogueAttrsInCache | ) | [inline] |
bool TdkCatalogueObject::getAllExtendedAttrsInCache | ( | ) | [inline] |
void TdkCatalogueObject::setAllExtendedAttrsInCache | ( | bool | allExtendedAttrsInCache | ) | [inline] |
std::vector< std::string > TdkCatalogueObject::getCatalogueAttrsInCache | ( | ) | [inline] |
void TdkCatalogueObject::setCatalogueAttrsInCache | ( | std::vector< std::string > | catalogueAttrsInCache | ) | [inline] |
std::vector< std::string > TdkCatalogueObject::getExtendedAttrsInCache | ( | ) | [inline] |
void TdkCatalogueObject::setExtendedAttrsInCache | ( | std::vector< std::string > | extendedAttrsInCache | ) | [inline] |
void TdkCatalogueObject::setExtendedAttributes | ( | std::map< std::string, VerticalModelAttribute * > | extendedAttributes | ) | [inline] |
std::map< std::string, VerticalModelAttribute * > TdkCatalogueObject::getExtendedAttributes | ( | ) | [inline] |
bool TdkCatalogueObject::insert | ( | TeDatabase * | dbCaller, | |
TdkPersistenceParams & | params | |||
) | [virtual] |
Inserts the object in the database.
Implements TdkPersistenceObject.
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
bool TdkCatalogueObject::load | ( | TeDatabase * | dbCaller, | |
TdkLoadParams & | params | |||
) | [virtual] |
Loads the object from the database.
Implements TdkPersistenceObject.
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
bool TdkCatalogueObject::update | ( | TeDatabase * | dbCaller, | |
TdkPersistenceParams & | params | |||
) | [virtual] |
Updates the object in the database.
Implements TdkPersistenceObject.
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
void TdkCatalogueObject::remove | ( | TeDatabase * | dbCaller, | |
TdkPersistenceParams & | params | |||
) | [virtual] |
Removes the object from the database.
Implements TdkPersistenceObject.
Reimplemented in TdkCatalogueFileObject, and TdkCataloguePhysicalObject.
bool TdkCatalogueObject::needToLoad | ( | TdkLoadParams & | params | ) | [virtual] |
bool TdkCatalogueObject::allCatalogueAttrsInCache_ [protected] |
bool TdkCatalogueObject::allExtendedAttrsInCache_ [protected] |
std::vector<std::string> TdkCatalogueObject::catalogueAttrsInCache_ [protected] |
std::vector<std::string> TdkCatalogueObject::extendedAttrsInCache_ [protected] |
TdkObjectGID* TdkCatalogueObject::objectGID_ [protected] |
std::string TdkCatalogueObject::name_ [protected] |
std::string TdkCatalogueObject::newName_ [protected] |
std::string TdkCatalogueObject::description_ [protected] |
std::string TdkCatalogueObject::source_ [protected] |
std::string TdkCatalogueObject::un_ [protected] |
std::string TdkCatalogueObject::creation_date_ [protected] |
std::string TdkCatalogueObject::update_date_ [protected] |
std::string TdkCatalogueObject::version_ [protected] |
int TdkCatalogueObject::version_father_id_ [protected] |
bool TdkCatalogueObject::isPublic_ [protected] |
int TdkCatalogueObject::typeId_ [protected] |
int TdkCatalogueObject::thumbnailId_ [protected] |
int TdkCatalogueObject::localId_ [protected] |
int TdkCatalogueObject::responsibleId_ [protected] |
bool TdkCatalogueObject::insertInIndex_ [protected] |
std::string TdkCatalogueObject::typeName_ [protected] |
std::string TdkCatalogueObject::thumbnailReference_ [protected] |
std::string TdkCatalogueObject::responsibleName_ [protected] |
std::map<std::string, VerticalModelAttribute*> TdkCatalogueObject::extendedAttributes_ [protected] |