5#ifndef INCLUDE_PERSISTENCYSVC_DATABASEHANDLER_H
6#define INCLUDE_PERSISTENCYSVC_DATABASEHANDLER_H
41 const std::string&
fid,
42 const std::string&
pfn,
67 const std::string&
pfn()
const;
70 const std::string&
fid()
const;
90 const std::type_info& typeInfo,
91 const std::string& option );
96 const std::type_info& typeInfo,
97 const std::string& option );
char data[hepevt_bytes_allocation_ATLAS]
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
This class provides a token that identifies in a unique way objects on the persistent storage.
IContainer is the base class for container objects.
The IStorageExplorer interface is able to handle user request for.
The IStorageSvc interface is able to handle user request for.
bool commitTransaction()
Commits the transaction.
~DatabaseHandler()
Destructor. Disconnects from the database.
bool commitAndHoldTransaction()
Commits and holds the transaction.
void * readObject(const Token &token, void *object=0)
Reads an object given a token.
bool setAttribute(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)
Sets an attrtibute.
Session * m_session
Pointer to the session for this database.
long technology() const
Returns the technology identifier.
IStorageExplorer & m_storageExplorer
IStorageExplorer reference.
FileDescriptor m_fileDescriptor
File descriptor for this database.
long m_technology
Technology identifier.
DatabaseHandler(IStorageSvc &storageSvc, IStorageExplorer &storageExplorer, Session *session, long technology, const std::string &fid, const std::string &pfn, long accessmode)
Constructor. Connects to the database.
IContainer * container(const std::string &containerName)
Returns a container handle.
Token * writeObject(const std::string &containerName, long minorTechnology, const void *object, const RootType &type)
Writes an object and returns a token.
bool disconnectTransaction()
Disconnects the transaction.
bool attribute(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)
Returns an attribute.
long accessMode() const
Returns the access mode.
std::vector< std::string > containers()
Gives the list of containers.
const std::string & fid() const
Returns the file identifier.
const std::string & pfn() const
Returns the physical file name.
void rollBackTransaction()
Rolls back the transaction.
IStorageSvc & m_storageSvc
IStorageSvc reference.
long m_accessMode
Current access mode.