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

DbSession Class Reference

Db objects: DbSession. More...

#include <DbSessionObj.h>

Inheritance diagram for DbSession:

DbAccessObj List of all members.

Private Methods

 DbSession (IOODataBase* db, IMessageSvc* msg, unsigned char type)
 Standard constructor. More...

virtual ~DbSession ()
 Standard destructor. More...

long addRef () const
 Increase reference count. More...

long release () const
 Decrease reference count. More...

IDbSessioninfo ()
 Access internals. More...

IOODataBasedb ()
 Allow access to the database implementation. More...

IMessageSvc* msgSvc ()
 Allow access to the message service. More...

DbResult open (DbAccessMode mode = DbOOMs::READ)
 Open session. More...

DbResult close ()
 Close database session. More...


Private Attributes

friend DbSessionImpl
 friend class declarations. More...

friend dbHandle<DbSession>
IOODataBasem_dbOOMs
 Pointer to specific DbOOMs implementation. More...

IMessageSvc* m_msgSvc
 Pointer to the message service to be used. More...

IDbSessionm_info
 Pointer to implementation specific object. More...


Detailed Description

Db objects: DbSession.

Description: Implementation independent part of a database session object.

There is a ring of protection around the object. The object can only be accessed through its handle, the technology dependent code and the DbDataBase object hosting the container. This should ensure proper reference counting and inhibit non existing references flying around.

Dependencies:

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 21/09/99| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 56 of file DbSessionObj.h.


Constructor & Destructor Documentation

DbSession::DbSession ( IOODataBase * db,
IMessageSvc * msg,
unsigned char type ) [private]
 

Standard constructor.

Definition at line 32 of file DbSessionObj.cpp.

DbSession::~DbSession ( ) [private, virtual]
 

Standard destructor.

Definition at line 52 of file DbSessionObj.cpp.


Member Function Documentation

long DbSession::addRef ( ) const [inline, private]
 

Increase reference count.

Reimplemented from DbAccessObj.

Definition at line 90 of file DbSessionObj.h.

DbResult DbSession::close ( ) [private]
 

Close database session.

Definition at line 77 of file DbSessionObj.cpp.

IOODataBase * DbSession::db ( ) [inline, private]
 

Allow access to the database implementation.

Definition at line 106 of file DbSessionObj.h.

IDbSession * DbSession::info ( ) [inline, private]
 

Access internals.

Definition at line 102 of file DbSessionObj.h.

IMessageSvc * DbSession::msgSvc ( ) [inline, private]
 

Allow access to the message service.

Definition at line 110 of file DbSessionObj.h.

DbResult DbSession::open ( DbAccessMode mode = DbOOMs::READ ) [private]
 

Open session.

Definition at line 58 of file DbSessionObj.cpp.

long DbSession::release ( ) const [inline, private]
 

Decrease reference count.

Reimplemented from DbAccessObj.

Definition at line 94 of file DbSessionObj.h.


Member Data Documentation

DbSessionImpl [private]
 

friend class declarations.

Definition at line 58 of file DbSessionObj.h.

friend DbSession::dbHandle<DbSession> [private]
 

Definition at line 59 of file DbSessionObj.h.

IOODataBase * DbSession::m_dbOOMs [private]
 

Pointer to specific DbOOMs implementation.

Definition at line 62 of file DbSessionObj.h.

IDbSession * DbSession::m_info [private]
 

Pointer to implementation specific object.

Definition at line 66 of file DbSessionObj.h.

IMessageSvc * DbSession::m_msgSvc [private]
 

Pointer to the message service to be used.

Definition at line 64 of file DbSessionObj.h.


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