WriteSession Struct Reference

Inheritance diagram for WriteSession:

Inheritance graph
[legend]
Collaboration diagram for WriteSession:

Collaboration graph
[legend]
List of all members.

Detailed Description

Guard to a non-const database session.

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

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

WriteSession::WriteSession ( bool  noWait  )  [inline]

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

WriteSession::~WriteSession (  ) 

WriteSession::WriteSession (  ) 

Default contructor.

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

WriteSession::WriteSession ( bool  noWait  ) 

Constructor: locks the mutex.

Parameters:
noWait Don't wait for database locks?

WriteSession::~WriteSession (  ) 

Destructor.

It rolls back if dirty_ is set.


Member Function Documentation

void WriteSession::commit (  ) 

Commit transactions: clears dirty_.

void WriteSession::commit (  ) 

OSB_DB::Session& WriteSession::get (  ) 

Get the database session: sets dirty_.

Reimplemented from SessionGuardBase.

OSB_DB::Session& WriteSession::get (  )  [inline]

Reimplemented from SessionGuardBase.

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

References dirty_, and SessionGuardBase::get().

const OSB_DB::Session& WriteSession::getConst (  ) 

Const access to the database, dirty_ is not modified.

const OSB_DB::Session& WriteSession::getConst (  )  [inline]

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

References SessionGuardBase::get().

void WriteSession::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 WriteSession::locked (  )  const

Session locked?

Reimplemented from SessionGuardBase.

void WriteSession::rollback (  ) 

Roll back transactions: clears dirty_.

void WriteSession::rollback (  ) 


Member Data Documentation

bool WriteSession::dirty_ [private]

Database session used via get()?

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

Referenced by get().


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