5#ifndef POOL_DBSTORAGESVC_H
6#define POOL_DBSTORAGESVC_H
69 virtual unsigned int addRef() override final;
72 virtual
unsigned int release() override final;
98 const std::string& refCont,
102 Token*& refpTok)
override final;
114 const Token& persToken,
116 void**
object)
override final;
125 Token& persToken)
override final;
142 ShapeH& shapeH)
override final;
178 {
return m_domH.close(); }
231 int& mode )
override final;
262 {
return m_domH.getOption(opt); }
276 {
return m_domH.setOption(opt); }
This class provides a token that identifies in a unique way objects on the persistent storage.
APRMessaging(const std::string &name)
Description: Definition an option to be supplied to database objects.
virtual StatusCode connect(int mode, FileDescriptor &refDB) override final
Connect to a logical Database unit.
virtual StatusCode endSession() override final
End the Database session.
virtual std::string getContName(FileDescriptor &refDB, Token &persToken) override final
Get container name for object.
virtual StatusCode startSession(int mode, int tech) override final
Start a new Database Session.
virtual StatusCode getShape(FileDescriptor &refDB, const Guid &objType, ShapeH &shapeH) override final
Retrieve persistent shape from Storage manager.
virtual StatusCode existsConnection(const FileDescriptor &refDB) override final
Check the existence of a logical Database unit.
IOODatabase * db()
Access technology implementations.
virtual StatusCode initialize()
IService implementation override: Initilize Service.
virtual StatusCode setDomainOption(const DbOption &opt) override final
Set options for a given database domain.
virtual StatusCode allocate(FileDescriptor &refDB, const std::string &refCont, int technology, const void *object, ShapeH shapeH, Token *&refpTok) override final
Register object for write.
virtual StatusCode finalize()
IService implementation override: Finalize Service.
int m_ageLimit
Property: AgeLimit indicating the maximal allowed age of files.
virtual unsigned int addRef() override final
IInterface implementation: Reference Interface instance.
DbDomain m_domH
Database domain handle.
virtual StatusCode openMode(FileDescriptor &refDB, int &mode) override final
Query the access mode of a Database unit.
virtual StatusCode disconnect(FileDescriptor &refDB) override final
Disconnect from a logical Database unit.
virtual ShapeH createShape(const Guid &shapeID) override final
Create a Shape representation based on a ShapeID.
DbStorageSvc & operator=(const DbStorageSvc &)=delete
DbStorageSvc()
Standard Constructor: Constructs an object of type DbStorageSvc.
virtual StatusCode getDomainOption(DbOption &opt) override final
Access options for a given database domain.
virtual StatusCode read(const FileDescriptor &refDB, const Token &persToken, ShapeH shapeH, void **object) override final
Read a persistent object from the medium.
IOODatabase * m_implementation
Loaded StorageSvc implementation type (for m_type)
std::string m_name
Service Name.
virtual unsigned int release() override final
IInterface implementation: Release Interface instance.
DbType m_type
Technology type.
virtual ~DbStorageSvc()
Standard destructor.
DbStorageSvc(const DbStorageSvc &)=delete
virtual StatusCode endTransaction(FileDescriptor &refDB, Transaction::Action typ) override final
End/Finish an existing Transaction sequence.
DbStorageSvc(const std::string &name)
Initializing Constructor: Constructs an object of type DbStorageSvc.
unsigned int m_refCount
Reference counter.
std::vector< const Token * > TokenVec
virtual const std::string & name() const
IService implementation: Retrieve name of the service.
The IStorageSvc interface is able to handle user request for.
const class Shape * ShapeH