![]() |
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... | |
| DbSession (DbSession &&cp) | |
| DbSession & | operator= (DbSession &&cp) |
| 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... | |
| DbSessionObj * | operator-> () |
| Dereference operator. More... | |
| const DbSessionObj * | operator-> () const |
| bool | operator! () const |
| Validity check through operator NOT. More... | |
| const DbSessionObj * | ptr () const |
| Access to underlying object. More... | |
| DbSessionObj * | ptr () |
| bool | isValid () const |
| Validity check (Objy like) More... | |
| const DbType & | type () const |
| Inquire storage type of the handle. More... | |
Protected Types | |
| typedef DbSessionObj | _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 (DbSessionObj *ptr) |
| Set data pointer. More... | |
Protected Attributes | |
| DbSessionObj * | 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 34 of file DbHandleBase.h.
|
protectedinherited |
Data type definition.
Definition at line 36 of file DbHandleBase.h.
| pool::DbSession::DbSession | ( | ) |
Constructor.
| pool::DbSession::DbSession | ( | DbSessionObj * | session | ) |
Object constructor.
|
virtual |
Standard destructor.
|
inline |
| 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 61 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 66 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 |
|
inlineprotectedinherited |
|
private |
Assign transient object properly (including reference counting)
|
inlineinherited |
|
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 38 of file DbHandleBase.h.
|
protectedinherited |
Data member: Technology type. Sub-classes need access on re-assignment.
Definition at line 40 of file DbHandleBase.h.
1.8.18