ATLAS Offline Software
|
Db objects: class DbSession. More...
#include <DbSession.h>
Public Member Functions | |
DbSession () | |
Constructor. More... | |
DbSession (const DbSession ©) | |
Copy constructor. More... | |
DbSession (DbSessionObj *session) | |
Object constructor. More... | |
virtual | ~DbSession () |
Standard destructor. More... | |
DbSession & | operator= (const DbSession ©) |
Assignment operator More... | |
DbSession & | operator= (const int) |
Assignment operator. More... | |
int | refCount () const |
Access reference counter. More... | |
DbDomainObj * | find (const DbType &type) |
Find domain object in session (by technology type) More... | |
DbStatus | add (DbDomainObj *dom) |
Add domain to session. More... | |
DbStatus | remove (const DbDomainObj *dom) |
Find domain in session. More... | |
DbStatus | open () |
Open the session in a given mode. More... | |
DbStatus | close () |
Close the session. More... | |
IOODatabase * | db (const DbType &typ) |
Allow access to the Database implementation. More... | |
T * | operator-> () |
Dereference operator. More... | |
const T * | operator-> () const |
bool | operator! () const |
Validity check through operator NOT. More... | |
const T * | ptr () const |
Access to underlying object. More... | |
T * | ptr () |
bool | isValid () const |
Validity check (Objy like) More... | |
const DbType & | type () const |
Inquire storage type of the handle. More... | |
Protected Types | |
typedef T | _DataType |
Data type definition. More... | |
typedef DbHandleBase< _DataType > | Base |
Data type definition. More... | |
Protected Member Functions | |
void | setType (const DbType &typ) |
Set handle type. More... | |
void | setPtr (T *ptr) |
Set data pointer. More... | |
Protected Attributes | |
T * | m_ptr |
Data member: Object pointer. Sub-classes need access on re-assignment. More... | |
DbType | m_type |
Data member: Technology type. Sub-classes need access on re-assignment. More... | |
Private Member Functions | |
void | switchPtr (DbSessionObj *obj) |
Assign transient object properly (including reference counting) More... | |
Friends | |
class | DbSessionObj |
Friend declarations. More... | |
Db objects: class DbSession.
Description: Handle managing a DbSessionObj, which allows to access domains and Databasees of a given storage type.
Definition at line 43 of file DbSession.h.
|
protectedinherited |
Data type definition.
Definition at line 37 of file DbHandleBase.h.
|
protectedinherited |
Data type definition.
Definition at line 39 of file DbHandleBase.h.
pool::DbSession::DbSession | ( | ) |
Constructor.
pool::DbSession::DbSession | ( | DbSessionObj * | session | ) |
Object constructor.
|
virtual |
Standard destructor.
DbStatus pool::DbSession::add | ( | DbDomainObj * | dom | ) |
Add domain to session.
DbStatus pool::DbSession::close | ( | ) |
Close the session.
IOODatabase* pool::DbSession::db | ( | const DbType & | typ | ) |
Allow access to the Database implementation.
DbDomainObj* pool::DbSession::find | ( | const DbType & | type | ) |
Find domain object in session (by technology type)
|
inlineinherited |
DbStatus pool::DbSession::open | ( | ) |
Open the session in a given mode.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 57 of file DbHandleBase.h.
Assignment operator
Definition at line 59 of file DbSession.h.
Assignment operator.
Definition at line 66 of file DbSession.h.
|
inlineinherited |
Definition at line 62 of file DbHandleBase.h.
|
inlineinherited |
int pool::DbSession::refCount | ( | ) | const |
Access reference counter.
DbStatus pool::DbSession::remove | ( | const DbDomainObj * | dom | ) |
Find domain in session.
|
inlineprotectedinherited |
|
private |
Assign transient object properly (including reference counting)
|
friend |
Friend declarations.
Definition at line 45 of file DbSession.h.
|
protectedinherited |
Data member: Object pointer. Sub-classes need access on re-assignment.
Definition at line 41 of file DbHandleBase.h.
|
protectedinherited |
Data member: Technology type. Sub-classes need access on re-assignment.
Definition at line 43 of file DbHandleBase.h.