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

Public Types | |
| typedef DbPersistent | Persistent |
Public Methods | |
| DbObjectGuard (unsigned char type = TEST_StorageType, Persistent* persistent = 0) | |
| Standard constructor. More... | |
| DbObjectGuard (unsigned char , Persistent* persistent, const dbHandle<DbContainer>& cntH) | |
| Standard constructor. More... | |
| virtual unsigned long | addRef () const |
| Increase reference count. More... | |
| virtual unsigned long | release () const |
| Decrease reference count. More... | |
| virtual unsigned long* | oid () const |
| Access oid. More... | |
| virtual unsigned char | type () const |
| Access Storage Type. More... | |
| virtual void | setContainer (const dbHandle<DbContainer>& cntH) |
| Accessor: set object container. More... | |
| virtual dbHandle<DbContainer>& | container () const |
| Accessor: get object container. More... | |
| virtual void | setPersistent (DbPersistent* p) |
| Accessor: set persistent object. More... | |
| virtual DbPersistent* | persistent () const |
| Accessor: get persistent object. More... | |
| virtual void | setObjectSize (long siz) |
| Accessor: set object size. More... | |
| virtual long | objectSize () const |
| Accessor: get object size. More... | |
| virtual void | setSize (long siz) |
| Accessor: set size. More... | |
| virtual long | size () const |
| Accessor: get size. More... | |
| virtual dbVarray< dbHandle< DbLink> >& | links () const |
| Accessor: get links. More... | |
| virtual StreamBuffer& | objBuffer () const |
| Accessor: get abstract object buffer. More... | |
| virtual StreamBuffer& | linkBuffer () const |
| Accessor: get link buffer. More... | |
Protected Methods | |
| virtual | ~DbObjectGuard () |
| Destructor. More... | |
Protected Attributes | |
| long | m_refCount |
| Reference counter. More... | |
| long | m_objSize |
| Object size. More... | |
| long | m_size |
| Total size. More... | |
| unsigned long | m_oid [3] |
| OID. More... | |
| dbVarray< dbHandle<DbLink> > | m_links |
| Variable length array with the link information. More... | |
| StreamBuffer | m_objBuff |
| Stream buffer for object. More... | |
| StreamBuffer | m_linkBuff |
| Stream buffer for compressed link information. More... | |
| dbHandle<DbContainer> | m_container |
| Reference to persistent container. More... | |
| DbPersistent* | m_persistent |
| Pointer to persistent object. More... | |
Description: class containing persistency information for managing basic persistable objects.
Dependencies:
History :
+---------+----------------------------------------------+--------+
| Date | Comment | Who |
+---------+----------------------------------------------+--------+
| 21/09/99| Initial version. | MF |
+---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
Definition at line 60 of file DbObjectGuard.h.
|
|
Definition at line 85 of file DbObjectGuard.h. |
|
|
Destructor.
Definition at line 82 of file DbObjectGuard.h. |
|
|
Standard constructor.
Definition at line 87 of file DbObjectGuard.h. |
|
|
Standard constructor.
Definition at line 95 of file DbObjectGuard.h. |
|
|
Increase reference count.
Reimplemented from DbPersistentGuard. Definition at line 102 of file DbObjectGuard.h. |
|
|
Accessor: get object container.
Reimplemented from DbPersistentGuard. Definition at line 122 of file DbObjectGuard.h. |
|
|
Accessor: get link buffer.
Reimplemented from DbPersistentGuard. Definition at line 158 of file DbObjectGuard.h. |
|
|
Accessor: get links.
Reimplemented from DbPersistentGuard. Definition at line 150 of file DbObjectGuard.h. |
|
|
Accessor: get abstract object buffer.
Reimplemented from DbPersistentGuard. Definition at line 154 of file DbObjectGuard.h. |
|
|
Accessor: get object size.
Reimplemented from DbPersistentGuard. Definition at line 138 of file DbObjectGuard.h. |
|
|
Access oid.
Reimplemented from DbPersistentGuard. Definition at line 110 of file DbObjectGuard.h. |
|
|
Accessor: get persistent object.
Reimplemented from DbPersistentGuard. Definition at line 130 of file DbObjectGuard.h. |
|
|
Decrease reference count.
Reimplemented from DbPersistentGuard. Definition at line 106 of file DbObjectGuard.h. |
|
|
Accessor: set object container.
Reimplemented from DbPersistentGuard. Definition at line 118 of file DbObjectGuard.h. |
|
|
Accessor: set object size.
Reimplemented from DbPersistentGuard. Definition at line 134 of file DbObjectGuard.h. |
|
|
Accessor: set persistent object.
Reimplemented from DbPersistentGuard. Definition at line 126 of file DbObjectGuard.h. |
|
|
Accessor: set size.
Reimplemented from DbPersistentGuard. Definition at line 142 of file DbObjectGuard.h. |
|
|
Accessor: get size.
Reimplemented from DbPersistentGuard. Definition at line 146 of file DbObjectGuard.h. |
|
|
Access Storage Type.
Reimplemented from DbPersistentGuard. Definition at line 114 of file DbObjectGuard.h. |
|
|
Reference to persistent container.
Definition at line 77 of file DbObjectGuard.h. |
|
|
Stream buffer for compressed link information.
Definition at line 75 of file DbObjectGuard.h. |
|
|
Variable length array with the link information.
Definition at line 71 of file DbObjectGuard.h. |
|
|
Stream buffer for object.
Definition at line 73 of file DbObjectGuard.h. |
|
|
Object size.
Definition at line 65 of file DbObjectGuard.h. |
|
|
OID.
Definition at line 69 of file DbObjectGuard.h. |
|
|
Pointer to persistent object.
Definition at line 79 of file DbObjectGuard.h. |
|
|
Reference counter.
Definition at line 63 of file DbObjectGuard.h. |
|
|
Total size.
Definition at line 67 of file DbObjectGuard.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000