ATLAS Offline Software
|
#include <StorageSvc/DbDomain.h>
Public Member Functions | |
DbDomain (DbDomainObj *dom) | |
Friend's constructor. More... | |
DbDomain (const DbType &type) | |
Constructor using Db type. More... | |
DbDomain (const DbDomain ©) | |
Copy constructor. More... | |
virtual | ~DbDomain () |
Standard destructor. More... | |
DbDomain & | operator= (const DbDomain ©) |
Assignment operator. More... | |
DbDomain & | operator= (const int) |
Assignment operator to reset handel easily using 0. More... | |
const std::string & | name () const |
Acces to the domain name. More... | |
int | refCount () const |
Access reference counter. More... | |
bool | exist (DbSession &sesH, int technology) const |
Check for the existence of a domain within a session. More... | |
DbStatus | open (DbSession &sesH, const DbType &technology, DbAccessMode mod=pool::READ) |
Open domain within a session environment. More... | |
DbStatus | close () |
Close domain. More... | |
DbAccessMode | openMode () const |
Access to access mode. More... | |
DbSession | containedIn () const |
Access to session handle. More... | |
bool | existsDbase (const std::string &db_name) |
Check if Database exists within the domain. More... | |
const DbDatabaseObj * | find (const std::string &db_name) const |
Find Database in domain. More... | |
DbDatabaseObj * | find (const std::string &db_name) |
DbStatus | add (const std::string &nam, DbDatabaseObj *db) |
Add domain to session. More... | |
DbStatus | remove (DbDatabaseObj *db) |
Find domain in session. More... | |
DbStatus | ageOpenDbs () |
Increase the age of all open databases. More... | |
DbStatus | closeAgedDbs () |
Check if databases are present, which aged a lot and need to be closed. More... | |
void | setAgeLimit (int value) |
Set the maximal allowed age limit for files in this domain. More... | |
int | ageLimit () const |
Access the maximal age limit. More... | |
IDbDomain * | info () |
Let the implementation access the internals. More... | |
const IDbDomain * | info () const |
DbStatus | setOption (const DbOption &refOpt) |
Set domain specific options. More... | |
DbStatus | getOption (DbOption &refOpt) const |
Access domain specific options. More... | |
IOODatabase * | db () |
Allow access to the Database implementation. More... | |
const IOODatabase * | db () const |
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 (DbDomainObj *obj) |
Assign transient object properly (including reference counting) More... | |
Friends | |
class | DbDomainObj |
Friend declarations. More... | |
Description:
Handle managing a DbDomainObj, a generic Database domain object.
Definition at line 47 of file DbDomain.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::DbDomain::DbDomain | ( | DbDomainObj * | dom | ) |
Friend's constructor.
Constructor using Db type.
Definition at line 58 of file DbDomain.h.
|
inlinevirtual |
DbStatus pool::DbDomain::add | ( | const std::string & | nam, |
DbDatabaseObj * | db | ||
) |
Add domain to session.
int pool::DbDomain::ageLimit | ( | ) | const |
Access the maximal age limit.
DbStatus pool::DbDomain::ageOpenDbs | ( | ) |
Increase the age of all open databases.
DbStatus pool::DbDomain::close | ( | ) |
Close domain.
DbStatus pool::DbDomain::closeAgedDbs | ( | ) |
Check if databases are present, which aged a lot and need to be closed.
DbSession pool::DbDomain::containedIn | ( | ) | const |
Access to session handle.
IOODatabase* pool::DbDomain::db | ( | ) |
Allow access to the Database implementation.
const IOODatabase* pool::DbDomain::db | ( | ) | const |
bool pool::DbDomain::exist | ( | DbSession & | sesH, |
int | technology | ||
) | const |
Check for the existence of a domain within a session.
sesH | [IN] Handle to the database session this database domain belongs to. |
technology | [IN] Technology identifier of the domain. |
bool pool::DbDomain::existsDbase | ( | const std::string & | db_name | ) |
Check if Database exists within the domain.
DbDatabaseObj* pool::DbDomain::find | ( | const std::string & | db_name | ) |
const DbDatabaseObj* pool::DbDomain::find | ( | const std::string & | db_name | ) | const |
Find Database in domain.
Access domain specific options.
refOpt | [IN] Reference to option object |
IDbDomain* pool::DbDomain::info | ( | ) |
Let the implementation access the internals.
|
inlineinherited |
const std::string& pool::DbDomain::name | ( | ) | const |
Acces to the domain name.
DbStatus pool::DbDomain::open | ( | DbSession & | sesH, |
const DbType & | technology, | ||
DbAccessMode | mod = pool::READ |
||
) |
Open domain within a session environment.
context | [IN] Handle to user defined domain context |
sesH | [IN] Handle to the database session this database domain belongs to. |
technology | [IN] Technology identifier of this domain. |
mod | [IN] Access mode: READ, UPDATE, CREATE etc. |
DbAccessMode pool::DbDomain::openMode | ( | ) | const |
Access to access mode.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 57 of file DbHandleBase.h.
Assignment operator to reset handel easily using 0.
Definition at line 73 of file DbDomain.h.
|
inlineinherited |
Definition at line 62 of file DbHandleBase.h.
|
inlineinherited |
int pool::DbDomain::refCount | ( | ) | const |
Access reference counter.
DbStatus pool::DbDomain::remove | ( | DbDatabaseObj * | db | ) |
Find domain in session.
void pool::DbDomain::setAgeLimit | ( | int | value | ) |
Set the maximal allowed age limit for files in this domain.
Set domain specific options.
refOpt | [IN] Reference to option object |
|
inlineprotectedinherited |
|
private |
Assign transient object properly (including reference counting)
|
friend |
Friend declarations.
Definition at line 50 of file DbDomain.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.