ATLAS Offline Software
Loading...
Searching...
No Matches
ITransaction.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INCLUDE_PERSISTENCYSVC_ITRANSACTION_H
6#define INCLUDE_PERSISTENCYSVC_ITRANSACTION_H
7
8#include "StorageSvc/pool.h"
9
10/*
11 * POOL namespace declaration
12 */
13namespace pool {
14
20
22 public:
24 virtual bool start( Io::IoFlag type = Io::READ ) = 0;
25
27 virtual bool commit() = 0;
28
30 virtual bool commitAndHold() = 0;
31
33 virtual bool isActive() const = 0;
34
36 virtual Io::IoFlag type() const = 0;
37
38 protected:
40 virtual ~ITransaction() = default;
41 };
42
43}
44
45#endif
46
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...
virtual bool commitAndHold()=0
Commits the holds transaction.
virtual Io::IoFlag type() const =0
Returns the transaction type.
virtual bool commit()=0
Commits the transaction.
virtual bool start(Io::IoFlag type=Io::READ)=0
Starts a new transaction. Returns the success of the operation.
virtual ~ITransaction()=default
Default destructor.
virtual bool isActive() const =0
Checks if the transaction is active.
Framework include files.
Definition libname.h:15