ReadSession Struct Reference

Inheritance diagram for ReadSession:

Inheritance graph
[legend]
Collaboration diagram for ReadSession:

Collaboration graph
[legend]
List of all members.

Detailed Description

Guard to a const database session.

Definition at line 70 of file contractadmin-server.h.

Public Member Functions


Constructor & Destructor Documentation

ReadSession::ReadSession ( bool  noWait  )  [inline]

Definition at line 71 of file contractadmin-server.h.

ReadSession::ReadSession (  ) 

Default contructor.

Attention:
Clients must call lock() before using get().

ReadSession::ReadSession ( bool  noWait  ) 

Constructor: locks the mutex.

Parameters:
noWait Don't wait for database locks?


Member Function Documentation

const OSB_DB::Session& ReadSession::get (  ) 

Get the database session.

Reimplemented from SessionGuardBase.

const OSB_DB::Session& ReadSession::get (  )  [inline]

Reimplemented from SessionGuardBase.

Definition at line 75 of file contractadmin-server.h.

References SessionGuardBase::get().

void ReadSession::lock ( bool  noWait  ) 

Lock the database session.

Parameters:
noWait Don't wait for database locks?
Exceptions:
OsbException if the lock can not be aquired.

Reimplemented from SessionGuardBase.

bool ReadSession::locked (  )  const

Session locked?

Reimplemented from SessionGuardBase.


The documentation for this struct was generated from the following files:
Generated on Sat Sep 2 14:26:44 2006 for OSB Library by  doxygen 1.4.7