4#ifndef STORAGESVC_DBDOMAIN_H
5#define STORAGESVC_DBDOMAIN_H
52 if ( © !=
this ) {
64 const std::string&
name()
const;
Description: Technology independent part of a Database object implementation.
StatusCode remove(DbDatabaseObj *db)
Remove a database from the domain.
const DbDatabaseObj * find(const std::string &db_name) const
Find Database in domain.
void setAgeLimit(int value)
Set the maximal allowed age limit for files in this domain.
const ITechFactory * techFactory() const
StatusCode add(const std::string &nam, DbDatabaseObj *db)
Add database to the domain.
StatusCode close()
Close domain.
int refCount() const
Access reference counter.
ITechFactory * techFactory()
Allow access to the Database implementation.
StatusCode open(ITechFactory *imp, const DbType &technology, Io::IoFlag mod=Io::READ)
Open the domain.
friend class DbDomainObj
Friend declarations.
void switchPtr(DbDomainObj *obj)
Assign transient object properly (including reference counting).
int ageLimit() const
Access the maximal age limit.
virtual ~DbDomain()
Standard destructor.
DbDomain(const DbType &type)
Constructor using Db type.
StatusCode closeAgedDbs()
Check if databases are present, which aged a lot and need to be closed.
const std::string & name() const
Acces to the domain name.
DbDomain(const DbDomain ©)
Copy constructor.
StatusCode getOption(DbOption &refOpt) const
Access domain specific options.
DbDomain(DbDomainObj *dom)
Friend's constructor.
DbDatabaseObj * find(const std::string &db_name)
ITechDomain * info()
Let the implementation access the internals.
const ITechDomain * info() const
DbDomain & operator=(const int)
Assignment operator to reset handel easily using 0.
Io::IoFlag openMode() const
Access to access mode.
DbDomain & operator=(const DbDomain ©)
Assignment operator.
StatusCode ageOpenDbs()
Increase the age of all open databases.
StatusCode setOption(const DbOption &refOpt)
Set domain specific options.
const DbType & type() const
Description: Definition an option to be supplied to database objects.
Keeps information about storage technology.
This class provides a token that identifies in a unique way objects on the persistent storage.
::StatusCode StatusCode
StatusCode definition for legacy code.