 |
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef POOL_IDBCONTAINER_H
12 #define POOL_IDBCONTAINER_H
34 typedef const class Shape *
ShapeH;
57 virtual std::string
name()
const = 0;
81 const std::string& nam,
86 const std::string& nam)
const = 0;
105 bool any_next=
false) = 0;
111 #endif // POOL_IDBCONTAINER_H
virtual DbStatus transAct(Transaction::Action)=0
Execute Transaction Action.
virtual uint64_t size()=0
Access to container size.
virtual void useNextRecordId(uint64_t)=0
Suggest next Record ID for tbe next object written - used only with synced indexes.
virtual DbStatus allocate(DbContainer &cntH, const void *object, ShapeH shape, Token::OID_t &oid)=0
In place allocation of object location.
virtual DbStatus close()=0
Close the container.
virtual uint64_t nextRecordId()=0
Number of next record in the container (=size if no delete is allowed)
virtual DbStatus load(void **ptr, ShapeH shape, const Token::OID_t &lnkH, Token::OID_t &oid, bool any_next=false)=0
Find object within the container and load it into memory.
virtual DbStatus select(DbSelect &sel)=0
Define selection.
virtual DbStatus getOption(DbOption &refOpt)=0
Access options.
const class Shape * ShapeH
virtual DbStatus setOption(const DbOption &refOpt)=0
Set options.
virtual DbStatus checkAccess(DbDatabase &dbH, const std::string &nam) const =0
Check if we can access the container for reading with the given type.
virtual std::string name() const =0
Get container name.
virtual ~IDbContainer()
Destructor (called only by sub-classes)
virtual DbStatus fetch(DbSelect &sel)=0
Fetch next object address of the selection to set token.
virtual void release()=0
Release the technology specific implementation.
virtual DbStatus open(DbDatabase &dbH, const std::string &nam, const DbTypeInfo *info, DbAccessMode mode)=0
Open the container.
virtual DbStatus store(const void *object, DbContainer &cntH, ShapeH shape)=0
Store object in location.
This file contains the class definition for the Token class (migrated from POOL).