ATLAS Offline Software
DatabaseConnectionPolicy.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INCLUDE_PERSISTENCYSVC_DATABASECONNECTIONPOLICY_H
6 #define INCLUDE_PERSISTENCYSVC_DATABASECONNECTIONPOLICY_H
7 
8 
9 namespace pool {
10 
20  public:
22  typedef enum { RAISE_ERROR,
27 
30 
33 
36 
39 
42 
48 
51 
57 
59  Mode readMode() const;
60 
66 
67  private:
70 
73 
76  };
77 
78 }
79 
80 #include "DatabaseConnectionPolicy.inl"
81 
82 #endif
pool::DatabaseConnectionPolicy::READ
@ READ
Definition: DatabaseConnectionPolicy.h:26
pool::DatabaseConnectionPolicy::DatabaseConnectionPolicy
DatabaseConnectionPolicy()
Default constructor. Initializes the data members with their default values.
pool::DatabaseConnectionPolicy::setWriteModeForNonExisting
bool setWriteModeForNonExisting(Mode mode)
Sets the opening mode when a non existing database is opened for writing Acceptable values are RAISE_...
pool::DatabaseConnectionPolicy::~DatabaseConnectionPolicy
~DatabaseConnectionPolicy()
Destructor.
Definition: DatabaseConnectionPolicy.h:32
pool::DatabaseConnectionPolicy::m_readMode
Mode m_readMode
The opening mode of a database in an update transaction, when opened for reading. Default is READ.
Definition: DatabaseConnectionPolicy.h:75
pool
pool namespace
Definition: libname.h:15
pool::DatabaseConnectionPolicy::readMode
Mode readMode() const
Retrieves the opening mode of a database in an update transaction, when opened for reading.
pool::DatabaseConnectionPolicy::RAISE_ERROR
@ RAISE_ERROR
Definition: DatabaseConnectionPolicy.h:22
pool::DatabaseConnectionPolicy::operator=
DatabaseConnectionPolicy & operator=(const DatabaseConnectionPolicy &rhs)
Assignment operator.
pool::DatabaseConnectionPolicy::UPDATE
@ UPDATE
Definition: DatabaseConnectionPolicy.h:25
pool::DatabaseConnectionPolicy::m_writeModeForExisting
Mode m_writeModeForExisting
The opening mode when an existing database is opened for writing. Default is UPDATE.
Definition: DatabaseConnectionPolicy.h:69
pool::DatabaseConnectionPolicy::OVERWRITE
@ OVERWRITE
Definition: DatabaseConnectionPolicy.h:24
pool::DatabaseConnectionPolicy::setWriteModeForExisting
bool setWriteModeForExisting(Mode mode)
Sets the opening mode when an existing database is opened for writing.
Preparation.mode
mode
Definition: Preparation.py:94
pool::DatabaseConnectionPolicy::writeModeForExisting
Mode writeModeForExisting() const
Retrieves the opening mode when an existing database is opened for writing.
pool::DatabaseConnectionPolicy::writeModeForNonExisting
Mode writeModeForNonExisting() const
Retrieves the opening mode when a non existing database is opened for writing.
pool::DatabaseConnectionPolicy::DatabaseConnectionPolicy
DatabaseConnectionPolicy(const DatabaseConnectionPolicy &rhs)
Copy constructor.
pool::DatabaseConnectionPolicy::CREATE
@ CREATE
Definition: DatabaseConnectionPolicy.h:23
pool::DatabaseConnectionPolicy::m_writeModeForNonExisting
Mode m_writeModeForNonExisting
The opening mode when a non existing database is opened for writing. Default is RAISE_ERROR.
Definition: DatabaseConnectionPolicy.h:72
pool::DatabaseConnectionPolicy::Mode
Mode
Opening modes for a database.
Definition: DatabaseConnectionPolicy.h:22
pool::DatabaseConnectionPolicy
Definition: DatabaseConnectionPolicy.h:19
pool::DatabaseConnectionPolicy::setReadMode
bool setReadMode(Mode mode)
Sets the opening mode of a database in an update transaction, when opened for reading.