5#ifndef INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
6#define INCLUDE_PERSISTENCYSVC_MICROSESSIONMANAGER_H
45 const std::string& pfn,
64 const std::type_info& typeInfo,
65 const std::string& option )
override;
70 const std::type_info& typeInfo,
71 const std::string& option )
override;
char data[hepevt_bytes_allocation_ATLAS]
The IStorageSvc interface is able to handle user request for.
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes.
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...
DatabaseHandler is a class taking care of the micro-connections and the micro transactions for a give...
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.
DatabaseRegistry & m_registry
virtual ~MicroSessionManager()
Destructor.
ITransaction & m_transaction
MicroSessionManager(DatabaseRegistry ®istry, ITransaction &transaction, long technology)
Constructor.
std::string fidForPfn(const std::string &pfn)
Fetches the FID by trying to temporatily connect to a database.
IStorageSvc * m_storageSvc
bool disconnectAll()
Disconnects from all the databases.
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.
void disconnect(DatabaseHandler *database)
Disconnects from a database.
long technology() const
Returns the technology.
DatabaseHandler * connect(const std::string &fid, const std::string &pfn, long accessMode)
Connects to a database.
std::set< DatabaseHandler * > m_databaseHandlers
const char * accessMode(pool::DbAccessMode access_mode)
Translate access mode to string.