|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef POOL_DBDOMAIN_H
14 #define POOL_DBDOMAIN_H
66 if ( &
copy !=
this ) {
78 const std::string&
name()
const;
151 #endif // POOL_DBDOMAIN_H
DbAccessMode openMode() const
Access to access mode.
DbDomain(const DbType &type)
Constructor using Db type.
IOODatabase * db()
Allow access to the Database implementation.
DbStatus close()
Close domain.
void switchPtr(DbDomainObj *obj)
Assign transient object properly (including reference counting)
DbStatus closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
DbDatabaseObj * find(const std::string &db_name)
Db objects: class DbSession.
DbSession containedIn() const
Access to session handle.
DbStatus getOption(DbOption &refOpt) const
Access domain specific options.
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
const DbType & type() const
Inquire storage type of the handle.
virtual ~DbDomain()
Standard destructor.
This class provides a token that identifies in a unique way objects on the persistent storage.
const std::string & name() const
Acces to the domain name.
DbDomain & operator=(const DbDomain ©)
Assignment operator.
DbDomain & operator=(const int)
Assignment operator to reset handel easily using 0.
DbStatus setOption(const DbOption &refOpt)
Set domain specific options.
DbType m_type
Data member: Technology type. Sub-classes need access on re-assignment.
DbDomain(DbDomainObj *dom)
Friend's constructor.
int refCount() const
Access reference counter.
IDbDomain * info()
Let the implementation access the internals.
DbStatus open(DbSession &sesH, const DbType &technology, DbAccessMode mod=pool::READ)
Open domain within a session environment.
int ageLimit() const
Access the maximal age limit.
const DbDatabaseObj * find(const std::string &db_name) const
Find Database in domain.
int majorType() const
Access to major type.
const IOODatabase * db() const
const IDbDomain * info() const
bool exist(DbSession &sesH, int technology) const
Check for the existence of a domain within a session.
DbStatus remove(DbDatabaseObj *db)
Find domain in session.
DbDomain(const DbDomain ©)
Copy constructor.
DbStatus add(const std::string &nam, DbDatabaseObj *db)
Add domain to session.
bool existsDbase(const std::string &db_name)
Check if Database exists within the domain.
DbStatus ageOpenDbs()
Increase the age of all open databases.