ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
PersistencySvc
PersistencySvc
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
*/
13
namespace
pool
{
14
20
21
class
ITransaction
{
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
pool.h
pool::ITransaction
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...
Definition
ITransaction.h:21
pool::ITransaction::commitAndHold
virtual bool commitAndHold()=0
Commits the holds transaction.
pool::ITransaction::type
virtual Io::IoFlag type() const =0
Returns the transaction type.
pool::ITransaction::commit
virtual bool commit()=0
Commits the transaction.
pool::ITransaction::start
virtual bool start(Io::IoFlag type=Io::READ)=0
Starts a new transaction. Returns the success of the operation.
pool::ITransaction::~ITransaction
virtual ~ITransaction()=default
Default destructor.
pool::ITransaction::isActive
virtual bool isActive() const =0
Checks if the transaction is active.
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0