ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | List of all members
pool::ITransaction Class Referenceabstract

#include <PersistencySvc/ITransaction.h>

Inheritance diagram for pool::ITransaction:
Collaboration diagram for pool::ITransaction:

Public Types

enum  Type { UNDEFINED, READ, UPDATE }
 Transaction type enumeration. More...
 

Public Member Functions

virtual bool start (Type type=READ)=0
 Starts a new transaction. Returns the success of the operation. More...
 
virtual bool commit ()=0
 Commits the transaction. More...
 
virtual bool commitAndHold ()=0
 Commits the holds transaction. More...
 
virtual void rollback ()=0
 Rolls back the transaction. More...
 
virtual bool isActive () const =0
 Checks if the transaction is active. More...
 
virtual void update ()=0
 Reverts to update mode. More...
 
virtual Type type () const =0
 Returns the transaction type. More...
 

Protected Member Functions

virtual ~ITransaction ()
 Default destructor. More...
 

Detailed Description

ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool storage system should be performed within a transaction. It is up to the specific implementation to perform proper transaction handling (rollbacks, locking, etc...)

Definition at line 21 of file ITransaction.h.

Member Enumeration Documentation

◆ Type

Transaction type enumeration.

Enumerator
UNDEFINED 
READ 
UPDATE 

Definition at line 28 of file ITransaction.h.

28  { UNDEFINED,
29  READ,
30  UPDATE } Type;

Constructor & Destructor Documentation

◆ ~ITransaction()

virtual pool::ITransaction::~ITransaction ( )
inlineprotectedvirtual

Default destructor.

Definition at line 24 of file ITransaction.h.

24 {}

Member Function Documentation

◆ commit()

virtual bool pool::ITransaction::commit ( )
pure virtual

Commits the transaction.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ commitAndHold()

virtual bool pool::ITransaction::commitAndHold ( )
pure virtual

Commits the holds transaction.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ isActive()

virtual bool pool::ITransaction::isActive ( ) const
pure virtual

Checks if the transaction is active.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ rollback()

virtual void pool::ITransaction::rollback ( )
pure virtual

Rolls back the transaction.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ start()

virtual bool pool::ITransaction::start ( Type  type = READ)
pure virtual

Starts a new transaction. Returns the success of the operation.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ type()

virtual Type pool::ITransaction::type ( ) const
pure virtual

Returns the transaction type.

Implemented in pool::PersistencySvc::GlobalTransaction.

◆ update()

virtual void pool::ITransaction::update ( )
pure virtual

Reverts to update mode.

Implemented in pool::PersistencySvc::GlobalTransaction.


The documentation for this class was generated from the following file:
pool::ITransaction::UPDATE
@ UPDATE
Definition: ITransaction.h:30
pool::ITransaction::Type
Type
Transaction type enumeration.
Definition: ITransaction.h:28
pool::ITransaction::READ
@ READ
Definition: ITransaction.h:29
pool::ITransaction::UNDEFINED
@ UNDEFINED
Definition: ITransaction.h:28