12#ifndef POOL_DBCONTAINEROBJ_H
13#define POOL_DBCONTAINEROBJ_H 1
73 const std::string& nam,
This file contains the class definition for the Token class (migrated from POOL).
This class provides a token that identifies in a unique way objects on the persistent storage.
APRMessaging(const std::string &name)
DbAccessMode mode() const
DbAccessObj(const std::string &n, DbAccessMode m, const DbType &t, IOODatabase *s=0)
DbStatus open(const DbTypeInfo *typ)
Open the container.
bool hasAccess()
Check database access.
DbStatus setOption(const DbOption &opt)
Pass options to the implementation.
DbContainerObj(DbDatabase &dbH, const std::string &nam, const DbType &dbtyp, DbAccessMode mod)
Standard constructor of a container object using the Database handle as a clustering hint.
DbStatus load(void **ptr, ShapeH shape, const Token::OID_t &linkH, Token::OID_t &oid, bool any_next)
Select object in the container identified by its handle.
bool m_isOpen
Flag indication DbStatus of technology dependent container.
const IDbContainer * info() const
Access to internals.
DbStatus checkAccess()
Check if we can access the container.
DbStatus transAct(Transaction::Action)
Execute Database Transaction Action.
DbStatus select(DbSelect &sel)
Perform selection. The statement belongs to the container afterwards.
const DbTypeInfo * objectShape(const Guid &nam)
Retrieve persistent type information by name.
const Token * m_tokH
Container token.
bool isOpen() const
Flag if container was opened.
const Token * token() const
Access the token of the container object.
DbStatus retire()
Retire the container.
DbStatus fetch(DbSelect &sel)
Fetch next object address of the selection to set token.
virtual ~DbContainerObj()
Standard destructor.
DbDatabase m_dbH
Handle to hosting Database.
DbDatabase & database()
Handle to Database (CONST)
void cancelTransaction()
Cancel transaction flag.
bool isReadOnly() const
Check if database is in read-only mode.
uint64_t size()
Size of the Database container (=# of objects)
DbStatus close()
Close the container.
DbStatus allocate(DbContainer &cntH, const void *object, ShapeH shape, Token::OID_t &oid)
In place allocation of object location.
IDbContainer * m_info
Pointer to interface of the technology dependent part.
DbStatus getOption(DbOption &refOpt)
Access options.
DbStatus store(const void *object, DbContainer &cntH, ShapeH shape)
Store object in location.
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Description: Handle managing a DbDatabaseObj, a generic Database object.
Description: Definition an option to be supplied to database objects.
Definition of the DbSelect class.
This class is highly inspired by the error code distribution system as it is used in DEC/VMS or MS/WN...
Definition of class DbTypeInfo.
const class Shape * ShapeH
DbObjectHolder(DbObject *p)