#include <DbDataBaseObj.h>
Inheritance diagram for DbDataBase:

Public Types | |
| typedef IDbDataBase::Link | Link |
| Link definition. More... | |
| typedef IDbDataBase::Type | Type |
| Type info definition. More... | |
Private Types | |
| typedef std::map<std::string, Link*> | LinkMap |
| Definition of map with link elements. More... | |
| typedef std::vector<Link*> | LinkVector |
| Definition of array with link elements. More... | |
| typedef std::map<std::string, Type*> | TypeMap |
| Definition of map with link elements. More... | |
| typedef std::vector<Type*> | TypeVector |
| Definition of array with link elements. More... | |
Private Methods | |
| DbDataBase (const dbHandle<DbFederation>& fed, const std::string& name, DbAccessMode mode=DbOOMs::READ) | |
| Standard constructor of a database obejct. More... | |
| virtual | ~DbDataBase () |
| Standard Destructor. More... | |
| dbHandle<DbFederation>& | federation () |
| Access to federation handle. More... | |
| const dbHandle<DbFederation>& | federation () const |
| Access to federation handle (CONST). More... | |
| IDbDataBase* | info () const |
| Access to technology dependent implementation. More... | |
| IOODataBase* | db () |
| Allow access to the database implementation. More... | |
| IMessageSvc* | msgSvc () |
| Allow access to the message service. More... | |
| DbResult | closeContainers () const |
| Close all opened containers. More... | |
| DbResult | open () const |
| Open database object. More... | |
| DbResult | close () const |
| close database object. More... | |
| long | numAssocEntries () const |
| Retrieve the number of all contained object types. More... | |
| DbResult | assocEntry (long count, dbHandle<DbLink>& link, std::string& db, std::string& cnt, std::string& obj) const |
| Retrieve association link from link container identified by its sequence number. More... | |
| DbResult | assocEntry (const dbHandle<DbLink>& which, std::string& db, std::string& cnt, std::string& obj) const |
| Retrieve association link from link container. More... | |
| DbResult | addAssocEntry (const std::string& db, const std::string& cnt, const std::string& obj, dbHandle<DbLink>& to) |
| Add association link to link container. More... | |
| long | numObjTypes () const |
| Retrieve the number of all contained object types. More... | |
| const DbTypeInfo* | objType (long which) const |
| Retrieve persistent type information by number. More... | |
| const DbTypeInfo* | objType (const std::string& name) const |
| Retrieve persistent type information by name. More... | |
| DbResult | addType (const std::string& cntName, const DbTypeInfo& pType) |
| Add persistent type to the database. More... | |
Private Attributes | |
| friend | IDbDataBase |
| Friends with full object access. More... | |
| friend | DbFederation |
| friend | DbDataBaseImpl |
| friend | dbHandle<DbDataBase> |
| dbHandle<DbFederation> | m_fed |
| Handle to federation. More... | |
| dbHandle<DbContainer> | m_links |
| Handle to link container. More... | |
| dbHandle<DbContainer> | m_types |
| Handle to containertype container. More... | |
| IOODataBase* | m_dbOOMs |
| Pointer to specific DbOOMs implementation. More... | |
| IMessageSvc* | m_msgSvc |
| Pointer to the message service to be used. More... | |
| IDbDataBase* | m_info |
| Technology dependent implementation block. More... | |
| LinkMap | m_linkMap |
| Map containing all links. More... | |
| LinkVector | m_linkVector |
| Random access array containing all links. More... | |
| TypeMap | m_typeMap |
| Map containing all links. More... | |
| TypeVector | m_typeVector |
| Random access array containing all links. More... | |
Description: Implementation independent part of a database object objects.
Dependencies:
History :
+---------+----------------------------------------------+--------+
| Date | Comment | Who |
+---------+----------------------------------------------+--------+
| 21/09/99| Initial version. | MF |
+---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
Definition at line 51 of file DbDataBaseObj.h.
|
|
Link definition.
Definition at line 59 of file DbDataBaseObj.h. Referenced by addAssocEntry(). |
|
|
Definition of map with link elements.
Definition at line 64 of file DbDataBaseObj.h. |
|
|
Definition of array with link elements.
Definition at line 66 of file DbDataBaseObj.h. |
|
|
Type info definition.
Definition at line 61 of file DbDataBaseObj.h. Referenced by addType(). |
|
|
Definition of map with link elements.
Definition at line 68 of file DbDataBaseObj.h. |
|
|
Definition of array with link elements.
Definition at line 70 of file DbDataBaseObj.h. |
|
|
Standard constructor of a database obejct.
Definition at line 32 of file DbDataBaseObj.cpp. |
|
|
Standard Destructor.
Definition at line 75 of file DbDataBaseObj.cpp. |
|
|
Add association link to link container.
Definition at line 108 of file DbDataBaseObj.cpp. |
|
|
Add persistent type to the database.
Definition at line 172 of file DbDataBaseObj.cpp. |
|
|
Retrieve association link from link container.
Definition at line 313 of file DbDataBaseObj.cpp. |
|
|
Retrieve association link from link container identified by its sequence number.
Definition at line 299 of file DbDataBaseObj.cpp. |
|
|
close database object.
Definition at line 284 of file DbDataBaseObj.cpp. |
|
|
Close all opened containers.
Definition at line 268 of file DbDataBaseObj.cpp. |
|
|
Allow access to the database implementation.
Definition at line 133 of file DbDataBaseObj.h. |
|
|
Access to federation handle (CONST).
Definition at line 149 of file DbDataBaseObj.h. |
|
|
Access to federation handle.
Definition at line 145 of file DbDataBaseObj.h. |
|
|
Access to technology dependent implementation.
Definition at line 137 of file DbDataBaseObj.h. |
|
|
Allow access to the message service.
Definition at line 141 of file DbDataBaseObj.h. |
|
|
Retrieve the number of all contained object types.
Definition at line 294 of file DbDataBaseObj.cpp. |
|
|
Retrieve the number of all contained object types.
Definition at line 144 of file DbDataBaseObj.cpp. |
|
|
Retrieve persistent type information by name.
Definition at line 157 of file DbDataBaseObj.cpp. |
|
|
Retrieve persistent type information by number.
Definition at line 149 of file DbDataBaseObj.cpp. |
|
|
Open database object.
Definition at line 212 of file DbDataBaseObj.cpp. |
|
|
Definition at line 55 of file DbDataBaseObj.h. |
|
|
Definition at line 54 of file DbDataBaseObj.h. |
|
|
Friends with full object access.
Definition at line 53 of file DbDataBaseObj.h. |
|
|
Definition at line 56 of file DbDataBaseObj.h. |
|
|
Pointer to specific DbOOMs implementation.
Definition at line 78 of file DbDataBaseObj.h. |
|
|
Handle to federation.
Definition at line 72 of file DbDataBaseObj.h. |
|
|
Technology dependent implementation block.
Definition at line 82 of file DbDataBaseObj.h. |
|
|
Map containing all links.
Definition at line 84 of file DbDataBaseObj.h. |
|
|
Random access array containing all links.
Definition at line 86 of file DbDataBaseObj.h. |
|
|
Handle to link container.
Definition at line 74 of file DbDataBaseObj.h. |
|
|
Pointer to the message service to be used.
Definition at line 80 of file DbDataBaseObj.h. |
|
|
Map containing all links.
Definition at line 88 of file DbDataBaseObj.h. |
|
|
Random access array containing all links.
Definition at line 90 of file DbDataBaseObj.h. |
|
|
Handle to containertype container.
Definition at line 76 of file DbDataBaseObj.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000