|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef POOL_DBCONTAINER_H
13 #define POOL_DBCONTAINER_H
86 if ( &
copy !=
this ) {
100 const std::string&
name()
const;
130 const std::string& nam,
201 {
return _load(objH, linkH, typ,
false); }
210 #endif // POOL_DBCONTAINER_H
DbStatus close()
Close the container the handle points to.
void switchPtr(DbContainerObj *obj)
Assign transient object properly (including reference counting)
const IDbContainer * info() const
Let the implementation access the internals.
DbStatus setOption(const DbOption &refOpt)
Pass options to the implementation.
DbStatus select(DbSelect &sel)
Perform selection. The statement belongs to the container afterwards.
DbContainer(const DbType &typ=POOL_StorageType)
Constructor with initializing arguments.
DbContainer & operator=(const DbContainer ©)
Assignment operator.
DbStatus save(DbObjectHandle< T > &objH, const DbTypeInfo *typ)
Add an object to the container identified by its handle.
const Token * token() const
Access the token of the container object.
DbStatus destroy(const DbObjectHandle< T > &objH)
Destroy the persistent representation of the object.
DbStatus load(DbObjectHandle< T > &objH, const Token::OID_t &linkH, const DbTypeInfo *typ)
Load object in the container identified by its handle.
DbStatus remove(const DbObjectHandle< T > &objH)
Remove the transient representation of the object from memory.
DbStatus destroy(DbSelect &sel)
Access objects through select staements.
DbStatus _destroy(DbObjectHandle< DbObject > &objH)
Destroy the persistent representation of the object.
DbStatus loadNext(DbObjectHandle< T > &objH, Token::OID_t &linkH, const DbTypeInfo *typ)
Load object in the container identified by its handle.
DbStatus getOption(DbOption &refOpt)
Access options.
const DbTypeInfo * objectShape(const Guid &nam)
Retrieve persistent type information by name.
DbContainer & operator=(const int)
Assignment operator to reset the handle easily using 0.
DbStatus update(DbSelect &sel)
Perform UPDATE statement.
This class provides a token that identifies in a unique way objects on the persistent storage.
DbStatus _save(DbObjectHandle< DbObject > &objH, const DbTypeInfo *typ)
Internal add of an object entry identified by its handle.
const class Shape * ShapeH
DbContainer(DbContainerObj *ptr)
Constructor taking transient object.
uint64_t size()
Access to the size of the container.
bool isOpen() const
Check if the container was opened.
const T * ptr() const
Access to underlying object.
DbStatus allocate(const void *object, ShapeH shape, Token::OID_t &oid)
Access objects using pointer and shape.
DbStatus _loadNext(DbObjectHandle< DbObject > &objH, Token::OID_t &linkH, const DbTypeInfo *typ)
Load next object in the container identified by its link handle.
DbDatabase & containedIn()
Access to the Database the container resides in.
DbStatus fetch(DbSelect &sel)
Fetch next object address of the selection to set token.
DbStatus update(const void *object, ShapeH shape, const Token::OID_t &linkH)
Update an object to the container identified by its handle.
DbType m_type
Data member: Technology type. Sub-classes need access on re-assignment.
DbStatus update(const DbObjectHandle< T > &objH, const DbTypeInfo *typ)
Update an object to the container identified by its handle.
int refCount() const
Access reference counter.
DbStatus destroy(const Token::OID_t &linkH)
Destroy an existing persistent object identified by its handle.
DbStatus save(const void *object, ShapeH shape, Token::OID_t &linkH)
Save new object in the container and return its handle.
DbStatus _remove(DbObjectHandle< DbObject > &objH)
Remove the transient representation of the object from memory.
virtual ~DbContainer()
Standard Destructor.
DbStatus open(DbDatabase &dbH, const std::string &nam, const DbTypeInfo *typ, const DbType &dbtyp, DbAccessMode mod)
Open the container residing in <file> with given name and access mode.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
DbContainer(const DbContainer &c)
Copy constructor.
DbStatus _update(const DbObjectHandle< DbObject > &handle, const DbTypeInfo *typ)
Add object to the container.
IOODatabase * db()
Allow access to the Database implementation.
const std::string & name() const
Name of the container the handle is supposed to point to.
DbStatus load(void **ptr, ShapeH shape, const Token::OID_t &lH)
Select object in the container identified by its handle.
DbStatus free(void *ptr)
In place free of raw memory.
This file contains the class definition for the Token class (migrated from POOL).
DbStatus _load(DbObjectHandle< DbObject > &objH, const Token::OID_t &linkH, const DbTypeInfo *typ, bool any_next)
Load object in the container identified by its link handle.
DbAccessMode openMode() const
Mode of the handle (READ,WRITE,...)
DbStatus transAct(Transaction::Action action)
Execute Database Transaction Action.