Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DbObjectGuard Class Reference

Db objects: DbObjectGuard. More...

#include <DbObjectGuard.h>

Inheritance diagram for DbObjectGuard:

DbPersistentGuard List of all members.

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 DbPersistentpersistent () 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<DbContainerm_container
 Reference to persistent container. More...

DbPersistentm_persistent
 Pointer to persistent object. More...


Detailed Description

Db objects: DbObjectGuard.

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.


Member Typedef Documentation

typedef DbPersistent DbObjectGuard::Persistent
 

Definition at line 85 of file DbObjectGuard.h.


Constructor & Destructor Documentation

DbObjectGuard::~DbObjectGuard ( ) [inline, protected, virtual]
 

Destructor.

Definition at line 82 of file DbObjectGuard.h.

DbObjectGuard::DbObjectGuard ( unsigned char type = TEST_StorageType,
Persistent * persistent = 0 ) [inline]
 

Standard constructor.

Definition at line 87 of file DbObjectGuard.h.

DbObjectGuard::DbObjectGuard ( unsigned char,
Persistent * persistent,
const dbHandle< DbContainer >& cntH ) [inline]
 

Standard constructor.

Definition at line 95 of file DbObjectGuard.h.


Member Function Documentation

unsigned long DbObjectGuard::addRef ( ) const [inline, virtual]
 

Increase reference count.

Reimplemented from DbPersistentGuard.

Definition at line 102 of file DbObjectGuard.h.

dbHandle< DbContainer >& DbObjectGuard::container ( ) const [inline, virtual]
 

Accessor: get object container.

Reimplemented from DbPersistentGuard.

Definition at line 122 of file DbObjectGuard.h.

StreamBuffer & DbObjectGuard::linkBuffer ( ) const [inline, virtual]
 

Accessor: get link buffer.

Reimplemented from DbPersistentGuard.

Definition at line 158 of file DbObjectGuard.h.

dbVarray< dbHandle< DbLink > >& DbObjectGuard::links ( ) const [inline, virtual]
 

Accessor: get links.

Reimplemented from DbPersistentGuard.

Definition at line 150 of file DbObjectGuard.h.

StreamBuffer & DbObjectGuard::objBuffer ( ) const [inline, virtual]
 

Accessor: get abstract object buffer.

Reimplemented from DbPersistentGuard.

Definition at line 154 of file DbObjectGuard.h.

long DbObjectGuard::objectSize ( ) const [inline, virtual]
 

Accessor: get object size.

Reimplemented from DbPersistentGuard.

Definition at line 138 of file DbObjectGuard.h.

unsigned long * DbObjectGuard::oid ( ) const [inline, virtual]
 

Access oid.

Reimplemented from DbPersistentGuard.

Definition at line 110 of file DbObjectGuard.h.

DbPersistent * DbObjectGuard::persistent ( ) const [inline, virtual]
 

Accessor: get persistent object.

Reimplemented from DbPersistentGuard.

Definition at line 130 of file DbObjectGuard.h.

unsigned long DbObjectGuard::release ( ) const [inline, virtual]
 

Decrease reference count.

Reimplemented from DbPersistentGuard.

Definition at line 106 of file DbObjectGuard.h.

void DbObjectGuard::setContainer ( const dbHandle< DbContainer >& cntH ) [inline, virtual]
 

Accessor: set object container.

Reimplemented from DbPersistentGuard.

Definition at line 118 of file DbObjectGuard.h.

void DbObjectGuard::setObjectSize ( long siz ) [inline, virtual]
 

Accessor: set object size.

Reimplemented from DbPersistentGuard.

Definition at line 134 of file DbObjectGuard.h.

void DbObjectGuard::setPersistent ( DbPersistent * p ) [inline, virtual]
 

Accessor: set persistent object.

Reimplemented from DbPersistentGuard.

Definition at line 126 of file DbObjectGuard.h.

void DbObjectGuard::setSize ( long siz ) [inline, virtual]
 

Accessor: set size.

Reimplemented from DbPersistentGuard.

Definition at line 142 of file DbObjectGuard.h.

long DbObjectGuard::size ( ) const [inline, virtual]
 

Accessor: get size.

Reimplemented from DbPersistentGuard.

Definition at line 146 of file DbObjectGuard.h.

unsigned char DbObjectGuard::type ( ) const [inline, virtual]
 

Access Storage Type.

Reimplemented from DbPersistentGuard.

Definition at line 114 of file DbObjectGuard.h.


Member Data Documentation

dbHandle< DbContainer > DbObjectGuard::m_container [mutable, protected]
 

Reference to persistent container.

Definition at line 77 of file DbObjectGuard.h.

StreamBuffer DbObjectGuard::m_linkBuff [mutable, protected]
 

Stream buffer for compressed link information.

Definition at line 75 of file DbObjectGuard.h.

dbVarray< dbHandle< DbLink > > DbObjectGuard::m_links [mutable, protected]
 

Variable length array with the link information.

Definition at line 71 of file DbObjectGuard.h.

StreamBuffer DbObjectGuard::m_objBuff [mutable, protected]
 

Stream buffer for object.

Definition at line 73 of file DbObjectGuard.h.

long DbObjectGuard::m_objSize [mutable, protected]
 

Object size.

Definition at line 65 of file DbObjectGuard.h.

unsigned long DbObjectGuard::m_oid[3] [mutable, protected]
 

OID.

Definition at line 69 of file DbObjectGuard.h.

DbPersistent * DbObjectGuard::m_persistent [mutable, protected]
 

Pointer to persistent object.

Definition at line 79 of file DbObjectGuard.h.

long DbObjectGuard::m_refCount [mutable, protected]
 

Reference counter.

Definition at line 63 of file DbObjectGuard.h.

long DbObjectGuard::m_size [mutable, protected]
 

Total size.

Definition at line 67 of file DbObjectGuard.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:22 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000