|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef POOL_IDBCONTAINER_H
12 #define POOL_IDBCONTAINER_H
35 typedef const class Shape *
ShapeH;
58 virtual std::string
name()
const = 0;
87 const std::string& nam,
112 bool any_next=
false) = 0;
166 #endif // POOL_IDBCONTAINER_H
virtual DbStatus update(DbContainer &cntH, const void *object, ShapeH shape, const Token::OID_t &linkH)=0
Update existing object in the container.
virtual DbStatus transAct(Transaction::Action)=0
Execute Transaction Action.
virtual uint64_t size()=0
Access to container size.
virtual DbStatus free(void *ptr, DbContainer &cntH)=0
In place deletion of raw memory.
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 DbStatus update(DbContainer &cntH, const void *object, ShapeH shape, const DbObjectHandle< DbObject > &objH)=0
Update existing object in 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 bool updatesPending() const =0
Query the pending transaction stack.
virtual DbStatus getOption(DbOption &refOpt)=0
Access options.
virtual DbStatus destroy(DbSelect &sel)=0
Perform DELETE select.
virtual DbStatus update(DbSelect &sel)=0
Perform UPDATE select.
const class Shape * ShapeH
virtual DbStatus save(DbObjectHandle< DbObject > &objH)=0
Add object to the container.
virtual DbStatus setOption(const DbOption &refOpt)=0
Set options.
virtual DbStatus save(DbContainer &cntH, const void *object, ShapeH shape, Token::OID_t &linkH)=0
Save new object in the container and return its handle.
virtual DbStatus isShapeSupported(const DbTypeInfo *typ) const =0
Ask if a given shape is supported.
virtual std::string name() const =0
Get container name.
virtual DbStatus destroy(const Token::OID_t &linkH)=0
Destroy an object in a container.
virtual DbStatus select(DbSelect &criteria)=0
Define selection criteria.
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 void * allocate(unsigned long siz, DbContainer &cntH, ShapeH shape)=0
In place allocation of raw memory.
This file contains the class definition for the Token class (migrated from POOL).