ATLAS Offline Software
|
Db objects: DbSessionObj. More...
#include <DbSessionObj.h>
Public Types | |
typedef DbAccessObj< DbType, DbDomainObj > | Base |
Type definitions. More... | |
typedef std::map< DbType, DbDomainObj * > | Keys |
typedef Keys::iterator | iterator |
typedef Keys::const_iterator | const_iterator |
Public Member Functions | |
DbSessionObj () | |
Standard constructor. More... | |
virtual | ~DbSessionObj () |
Standard destructor. More... | |
IOODatabase * | db (const DbType &typ) |
Allow access to the Database implementation. More... | |
DbStatus | open () |
Open session. More... | |
DbStatus | close () |
Close Database session. More... | |
const std::string & | name () const |
Access the instance name. More... | |
void | setName (const std::string &n) |
Access the instance name. More... | |
DbAccessMode | mode () const |
Access mode. More... | |
void | setMode (DbAccessMode m) |
Set Access mode. More... | |
const DbType & | type () const |
const IOODatabase * | db () const |
Allow access to the Database implementation. More... | |
int | refCount () const |
Access reference counter. More... | |
int | addRef () const |
Add reference count. More... | |
int | release () const |
Remove reference count. More... | |
size_t | size () const |
Object size. More... | |
DbStatus | clearEntries () |
Object cleanup: remove all entries. More... | |
const DbDomainObj * | find (const DbType &key) const |
Find object by key (CONST) More... | |
DbDomainObj * | find (const DbType &key) |
Find object by key. More... | |
DbStatus | add (const DbType &key, DbDomainObj *val) |
Add entry to container. More... | |
DbStatus | remove (const DbDomainObj *val) |
Remove entry from container. More... | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Private Attributes | |
std::map< DbType, IOODatabase * > | m_dbTypes |
Known Implementation types. More... | |
std::atomic< int > | m_refCount |
Reference counter. More... | |
DbAccessMode | m_mode |
Access mode. More... | |
std::string | m_name |
Name of the instance. More... | |
DbType | m_type |
Database type. More... | |
Keys | m_keys |
Key entry buffer. More... | |
IOODatabase * | m_pool |
Pointer to specific pool implementation. More... | |
Db objects: DbSessionObj.
Description: Implementation independent part of a Database session object.
There is a ring of protection around the object. The object can only be accessed through its handle, the technology dependent code and the DbDatabaseObj object hosting the container. This should ensure proper reference counting and inhibit non existing references flying around.
Definition at line 45 of file DbSessionObj.h.
|
inherited |
Type definitions.
Definition at line 50 of file DbAccessObj.h.
|
inherited |
Definition at line 53 of file DbAccessObj.h.
|
inherited |
Definition at line 52 of file DbAccessObj.h.
|
inherited |
Definition at line 51 of file DbAccessObj.h.
pool::DbSessionObj::DbSessionObj | ( | ) |
Standard constructor.
|
virtual |
Standard destructor.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 163 of file DbAccessObj.h.
|
inlineinherited |
Definition at line 164 of file DbAccessObj.h.
|
inlineinherited |
DbStatus pool::DbSessionObj::close | ( | ) |
Close Database session.
|
inlineinherited |
IOODatabase* pool::DbSessionObj::db | ( | const DbType & | typ | ) |
Allow access to the Database implementation.
|
inlineinherited |
Definition at line 165 of file DbAccessObj.h.
|
inlineinherited |
Definition at line 166 of file DbAccessObj.h.
|
inlineinherited |
|
inlineinherited |
Find object by key (CONST)
Definition at line 132 of file DbAccessObj.h.
|
inlineinherited |
|
inlineinherited |
DbStatus pool::DbSessionObj::open | ( | ) |
Open session.
|
inlineinherited |
|
inlineinherited |
Remove reference count.
Definition at line 103 of file DbAccessObj.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 84 of file DbAccessObj.h.
|
private |
Known Implementation types.
Definition at line 48 of file DbSessionObj.h.
|
privateinherited |
Key entry buffer.
Definition at line 64 of file DbAccessObj.h.
|
privateinherited |
Access mode.
Definition at line 58 of file DbAccessObj.h.
|
privateinherited |
Name of the instance.
Definition at line 60 of file DbAccessObj.h.
|
privateinherited |
Pointer to specific pool implementation.
Definition at line 66 of file DbAccessObj.h.
|
mutableprivateinherited |
Reference counter.
Definition at line 56 of file DbAccessObj.h.
|
privateinherited |
Database type.
Definition at line 62 of file DbAccessObj.h.