|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
6 #define INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
17 class IStorageExplorer;
21 namespace PersistencySvc {
24 class DatabaseRegistry;
25 class DatabaseHandler;
46 const std::string& pfn,
65 const std::type_info& typeInfo,
66 const std::string& option )
override;
71 const std::type_info& typeInfo,
72 const std::string& option )
override;
char data[hepevt_bytes_allocation_ATLAS]
DatabaseHandler * connect(const std::string &fid, const std::string &pfn, long accessMode)
Connects to a database.
std::string fidForPfn(const std::string &pfn)
Fetches the FID by trying to temporatily connect to a database.
DatabaseRegistry & m_registry
ITransaction & m_transaction
void disconnect(DatabaseHandler *database)
Disconnects from a database.
long technology() const
Returns the technology.
MicroSessionManager(DatabaseRegistry ®istry, ITransaction &transaction, long technology)
Constructor.
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method setting the attribute data given a name.
IStorageSvc * m_storageSvc
const char * accessMode(pool::DbAccessMode access_mode)
Translate access mode to string.
IStorageExplorer * m_storageExplorer
bool disconnectAll()
Disconnects from all the databases.
std::set< DatabaseHandler * > m_databaseHandlers
virtual ~MicroSessionManager()
Destructor.
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method returning the attribute data given a name.