15#ifndef POOL_DBSESSION_H
16#define POOL_DBSESSION_H
19#include <GaudiKernel/StatusCode.h>
61 if ( © !=
this ) {
void setPtr(DbSessionObj *ptr)
void setType(const DbType &typ)
const DbType & type() const
Db objects: DbSessionObj.
int refCount() const
Access reference counter.
StatusCode close()
Close the session.
StatusCode add(DbDomainObj *dom)
Add domain to session.
StatusCode open()
Open the session in a given mode.
DbDomainObj * find(const DbType &type)
Find domain object in session (by technology type)
void switchPtr(DbSessionObj *obj)
Assign transient object properly (including reference counting)
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.
StatusCode remove(const DbDomainObj *dom)
Find domain in session.
DbSession(DbSessionObj *session)
Object constructor.