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/*
9 * POOL namespace declaration
10 */
11namespace pool {
12
18
20 public:
23
25 virtual bool start( Type type = READ ) = 0;
26
28 virtual bool commit() = 0;
29
31 virtual bool commitAndHold() = 0;
32
34 virtual bool isActive() const = 0;
35
37 virtual Type type() const = 0;
38
39 protected:
41 virtual ~ITransaction() = default;
42 };
43
44}
45
46#endif
47
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...
virtual bool commitAndHold()=0
Commits the holds transaction.
Type
Transaction type enumeration.
virtual bool commit()=0
Commits the transaction.
virtual Type type() const =0
Returns the transaction type.
virtual bool start(Type type=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