16#ifndef POOL_DBSESSION_H
17#define POOL_DBSESSION_H
60 if ( © !=
this ) {
void setPtr(DbSessionObj *ptr)
void setType(const DbType &typ)
const DbType & type() const
Db objects: DbSessionObj.
DbStatus remove(const DbDomainObj *dom)
Find domain in session.
int refCount() const
Access reference counter.
DbDomainObj * find(const DbType &type)
Find domain object in session (by technology type)
void switchPtr(DbSessionObj *obj)
Assign transient object properly (including reference counting)
DbStatus close()
Close the session.
DbSession(DbSession &&cp)
DbSession & operator=(const DbSession ©)
Assignment operator.
IOODatabase * db(const DbType &typ)
Allow access to the Database implementation.
DbSession & operator=(const int)
Assignment operator.
virtual ~DbSession()
Standard destructor.
friend class DbSessionObj
Friend declarations.
DbSession(const DbSession ©)
Copy constructor.
DbSession(DbSessionObj *session)
Object constructor.
DbStatus add(DbDomainObj *dom)
Add domain to session.
DbStatus open()
Open the session in a given mode.
This class is highly inspired by the error code distribution system as it is used in DEC/VMS or MS/WN...