Definition at line 53 of file contractadmin-server.h.
SessionGuardBase::SessionGuardBase | ( | bool | noWait | ) |
virtual SessionGuardBase::~SessionGuardBase | ( | ) | [pure virtual] |
SessionGuardBase::SessionGuardBase | ( | const SessionGuardBase & | ) | [private] |
SessionGuardBase::SessionGuardBase | ( | ) | [protected] |
SessionGuardBase::SessionGuardBase | ( | bool | noWait | ) | [protected] |
Constructor: locks the mutex.
noWait | Don't wait for database locks? |
OsbException | from lock(). |
virtual SessionGuardBase::~SessionGuardBase | ( | ) | [protected, pure virtual] |
Destructor: unlock the mutex.
SessionGuardBase::SessionGuardBase | ( | const SessionGuardBase & | ) | [private] |
Prevent copying: not implemented.
OSB_DB::Session& SessionGuardBase::get | ( | ) | [protected] |
Get the database session.
OsbException | if locked_ is false. |
Reimplemented in ReadSession, WriteSession, ReadSession, and WriteSession.
OSB_DB::Session& SessionGuardBase::get | ( | ) | [protected] |
Reimplemented in ReadSession, WriteSession, ReadSession, and WriteSession.
Referenced by WriteSession::get(), ReadSession::get(), and WriteSession::getConst().
void SessionGuardBase::lock | ( | bool | noWait | ) | [protected] |
Constructor: locks the mutex.
noWait | Don't wait for database locks? |
OsbException | if the lock can not be aquired. | |
OsbException | if pSession_ is 0. |
Reimplemented in ReadSession, and WriteSession.
bool SessionGuardBase::locked | ( | ) | const [protected] |
SessionGuardBase& SessionGuardBase::operator= | ( | const SessionGuardBase & | ) | [private] |
Prevent assignment: not implemented.
SessionGuardBase& SessionGuardBase::operator= | ( | const SessionGuardBase & | ) | [private] |
int main | ( | int | , | |
char ** | ||||
) | [friend] |
Allow to set pSession_.
bool SessionGuardBase::locked_ [private] |
static OSB_LIB::Mutex SessionGuardBase::mutex_ [static, private] |
OSB_DB::Session* SessionGuardBase::pSession_ [static, private] |
OSB_DB::Session* SessionGuardBase::pSession_ [private] |
Definition at line 67 of file contractadmin-server.h.