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

Public Methods | |
| void* | operator new (size_t size, const DbTypeInfo& info) |
| operator new for creation of transient objects. More... | |
| void* | operator new (size_t size, dbHandle<DbContainer>& cntHdl, const DbTypeInfo& info) |
| operator new for the creation of persistent objects using clustering hint. More... | |
| void* | operator new (size_t size) |
| operator new for purely heap based objects. More... | |
| void | operator delete (void* ptr) |
| Need to overload operator delete after special instantiation. More... | |
| void | operator delete (void *ptr, const DbTypeInfo& info) |
| Exception enabled compilation needs this delete operator. More... | |
| void | operator delete (void *ptr, dbHandle<DbContainer>& cntHdl, const DbTypeInfo& info) |
| Exception enabled compilation needs this delete operator. More... | |
| DbObject () | |
| Standard destructor. More... | |
| long | addRef () |
| Reference count: addRef. More... | |
| long | release () |
| Reference count: release. More... | |
| virtual bool | deleteObject () |
| Delete the object. More... | |
| DbResult | addAssocEntry (const std::string& db, const std::string& cnt, const std::string& obj, dbHandle<DbLink>& result) |
| Add persistent association entry. More... | |
| long | addLink (const std::string& db, const std::string& cnt, const std::string& obj, const dbHandle<DbLink>& lnk) |
| Add link to object. More... | |
| long | addInvalidLink () |
| add invalid link to object. More... | |
| bool | isPersistent () const |
| Check if object is persistent. More... | |
| long | numLink () const |
| Get total number of associated links. More... | |
| dbVarray< dbHandle<DbLink> >& | links () |
| Access leaf links. More... | |
| const dbVarray< dbHandle<DbLink> >& | links () const |
| Access leaf links (CONST). More... | |
| StreamBuffer& | streamBuffer () |
| Access to streaming buffer of the object. More... | |
| StreamBuffer& | linkBuffer () |
| Access to streaming buffer of the associations. More... | |
| long | bufferSize () const |
| Get the total length of data buffer. More... | |
| long | objSize () const |
| Get the length of the object without the size of the link array. More... | |
| void | setObjSize (long length) |
| Set the size of the object. More... | |
| long | linkSize () const |
| Get the size of the link array. More... | |
Static Public Methods | |
| long | numInstances () |
| Statistics. More... | |
| DbObject* | create (void* buffer) |
| Create method. More... | |
Protected Methods | |
| unsigned char | storageType () const |
| Retrieve storage type. More... | |
| virtual | ~DbObject () |
| Persistent objects may ONLY be taken from the heap! More... | |
Protected Attributes | |
| Internals | m_internals |
Static Protected Methods | |
| void | decreaseCounter () |
| Decrease statistics counter. More... | |
| void | increaseCounter () |
| Increase statistics counter. More... | |
| void | badAssignMessage () |
| Bad pointer assignment occured. Do printout for debugging puposes. More... | |
Private Attributes | |
| friend | DbPersistent |
| friend | dbHandle<DbObject> |
| friend | DbWrapper<DbObject> |
| friend | DbFactory<DbObject> |
Friends | |
| class | DbObjectAccessor |
Class: Object
Purpose: Basic object for storage of identifiable persistent data. The DbObject is able to keep track of persistent links between objects.
Dependencies:
History :
+---------+----------------------------------------------+--------+
| Date | Comment | Who |
+---------+----------------------------------------------+--------+
| 11/02/99| Initial version | MF |
+---------+----------------------------------------------+--------+
Definition at line 61 of file DbObject.h.
|
|
Persistent objects may ONLY be taken from the heap!
Definition at line 103 of file DbObject.cpp. |
|
|
Standard destructor.
Definition at line 98 of file DbObject.cpp. Referenced by create(). |
|
|
Add persistent association entry.
Definition at line 182 of file DbObject.cpp. Referenced by addLink(). |
|
|
add invalid link to object.
Definition at line 198 of file DbObject.cpp. |
|
|
Add link to object.
Definition at line 188 of file DbObject.cpp. |
|
|
Reference count: addRef.
Definition at line 168 of file DbObject.cpp. Referenced by DbObjectAccessor::switchPtr(). |
|
|
Bad pointer assignment occured. Do printout for debugging puposes.
Definition at line 204 of file DbObject.cpp. Referenced by DbObjectAccessor::switchPtr(). |
|
|
Get the total length of data buffer.
Definition at line 152 of file DbObject.cpp. |
|
|
Create method.
Reimplemented in DbDefObject. Definition at line 38 of file DbObject.cpp. |
|
|
Decrease statistics counter.
Definition at line 107 of file DbObject.cpp. Referenced by ~DbObject(). |
|
|
Delete the object.
Definition at line 84 of file DbObject.cpp. |
|
|
Increase statistics counter.
Definition at line 112 of file DbObject.cpp. Referenced by DbObject(). |
|
|
Check if object is persistent.
Definition at line 132 of file DbObject.cpp. |
|
|
Access to streaming buffer of the associations.
Definition at line 122 of file DbObject.cpp. |
|
|
Get the size of the link array.
Definition at line 135 of file DbObject.h. |
|
|
Access leaf links (CONST).
Definition at line 147 of file DbObject.cpp. |
|
|
Access leaf links.
Definition at line 142 of file DbObject.cpp. Referenced by addInvalidLink(), and addLink(). |
|
|
Statistics.
Definition at line 164 of file DbObject.cpp. Referenced by DbCnvSvc::finalize(). |
|
|
Get total number of associated links.
Definition at line 137 of file DbObject.cpp. |
|
|
Get the length of the object without the size of the link array.
Definition at line 156 of file DbObject.cpp. |
|
|
Exception enabled compilation needs this delete operator.
Definition at line 79 of file DbObject.cpp. |
|
|
Exception enabled compilation needs this delete operator.
Definition at line 74 of file DbObject.cpp. |
|
|
Need to overload operator delete after special instantiation.
Definition at line 62 of file DbObject.cpp. Referenced by operator delete(). |
|
|
operator new for purely heap based objects.
Definition at line 49 of file DbObject.cpp. |
|
|
operator new for the creation of persistent objects using clustering hint.
Definition at line 55 of file DbObject.cpp. |
|
|
operator new for creation of transient objects.
Definition at line 43 of file DbObject.cpp. |
|
|
Reference count: release.
Definition at line 173 of file DbObject.cpp. Referenced by DbObjectAccessor::switchPtr(). |
|
|
Set the size of the object.
Definition at line 160 of file DbObject.cpp. |
|
|
Retrieve storage type.
Definition at line 127 of file DbObject.cpp. Referenced by DbObjectAccessor::containedIn(), and DbObjectAccessor::switchPtr(). |
|
|
Access to streaming buffer of the object.
Definition at line 117 of file DbObject.cpp. |
|
|
Definition at line 64 of file DbObject.h. |
|
|
Definition at line 67 of file DbObject.h. |
|
|
Reimplemented in DbDefObject. Definition at line 63 of file DbObject.h. |
|
|
Definition at line 66 of file DbObject.h. |
|
|
Definition at line 65 of file DbObject.h. |
|
|
Definition at line 74 of file DbObject.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000