ATLAS Offline Software
Transaction.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //====================================================================
6 // Transaction definition file
7 //--------------------------------------------------------------------
8 //
9 // Author : M.Frank
10 //====================================================================
11 #ifndef POOL_TRANSACTION_H
12 #define POOL_TRANSACTION_H
13 
14 /*
15  * POOL namespace declaration
16  */
17 namespace pool {
18 
26  class Transaction {
27  public:
28  enum Type {
29  TRANSACT_DOM = 1<<0,
30  TRANSACT_DB = 1<<1,
31  TRANSACT_CNT = 1<<2,
32  TRANSACT_NONE = 1<<4
33  };
34  enum Action {
37  TRANSACT_COMMIT = 1<<10,
38  TRANSACT_FLUSH = 1<<11,
40  TRANSACT_ENDED = 1<<13
41  };
42  enum Mode {
43  AUTOCOMMIT_OFF = 1<<16,
44  AUTOCOMMIT_ON = 1<<17
45  };
46  protected:
49  private:
55  bool operator==(const Transaction& c) const;
56  protected:
60  virtual ~Transaction() { }
61  public:
63  int technology() const { return m_technology; }
65  virtual Action state() const = 0;
67  virtual Type type() const = 0;
68 
70  static const char* actionAsString(Action action);
71 
72  };
73 } // End namespace pool
74 #endif // POOL_TRANSACTION_H
pool::Transaction::AUTOCOMMIT_OFF
@ AUTOCOMMIT_OFF
Definition: Transaction.h:43
pool::Transaction::Mode
Mode
Definition: Transaction.h:42
pool::Transaction::technology
int technology() const
Access to the technology type.
Definition: Transaction.h:63
pool::Transaction::state
virtual Action state() const =0
Access to the state of the transaction.
pool::Transaction::type
virtual Type type() const =0
Access to the transaction type.
pool::Transaction::TRANSACT_ENDED
@ TRANSACT_ENDED
Definition: Transaction.h:40
pool::Transaction::m_technology
int m_technology
Technology type.
Definition: Transaction.h:48
pool::Transaction::TRANSACT_CNT
@ TRANSACT_CNT
Definition: Transaction.h:31
pool
pool namespace
Definition: libname.h:15
pool::Transaction::TRANSACT_DB
@ TRANSACT_DB
Definition: Transaction.h:30
pool::Transaction::actionAsString
static const char * actionAsString(Action action)
Translate Action to string.
pool::Transaction::TRANSACT_COMMIT
@ TRANSACT_COMMIT
Definition: Transaction.h:37
pool::Transaction::Transaction
Transaction()
Standard empty constructor.
Definition: Transaction.h:58
pool::Transaction::~Transaction
virtual ~Transaction()
Destructor (called only by sub-classes)
Definition: Transaction.h:60
xAODType
Definition: ObjectType.h:13
pool::Transaction::operator==
bool operator==(const Transaction &c) const
No equals operator.
pool::Transaction::TRANSACT_START
@ TRANSACT_START
Definition: Transaction.h:35
pool::Transaction
Definition: Transaction.h:26
pool::Transaction::operator=
Transaction & operator=(const Transaction &c)
No assignment.
pool::Transaction::Action
Action
Definition: Transaction.h:34
pool::Transaction::TRANSACT_ROLLBACK
@ TRANSACT_ROLLBACK
Definition: Transaction.h:39
pool::Transaction::TRANSACT_FLUSH
@ TRANSACT_FLUSH
Definition: Transaction.h:38
pool::Transaction::AUTOCOMMIT_ON
@ AUTOCOMMIT_ON
Definition: Transaction.h:44
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
pool::Transaction::TRANSACT_DOM
@ TRANSACT_DOM
Definition: Transaction.h:29
pool::Transaction::Transaction
Transaction(const Transaction &c)
No copy constructor.
pool::Transaction::TRANSACT_ACTIVE
@ TRANSACT_ACTIVE
Definition: Transaction.h:36
pool::Transaction::TRANSACT_NONE
@ TRANSACT_NONE
Definition: Transaction.h:32
python.compressB64.c
def c
Definition: compressB64.py:93