|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_DATABASECONNECTIONPOLICY_H
6 #define INCLUDE_PERSISTENCYSVC_DATABASECONNECTIONPOLICY_H
80 #include "DatabaseConnectionPolicy.inl"
DatabaseConnectionPolicy()
Default constructor. Initializes the data members with their default values.
bool setWriteModeForNonExisting(Mode mode)
Sets the opening mode when a non existing database is opened for writing Acceptable values are RAISE_...
~DatabaseConnectionPolicy()
Destructor.
Mode m_readMode
The opening mode of a database in an update transaction, when opened for reading. Default is READ.
Mode readMode() const
Retrieves the opening mode of a database in an update transaction, when opened for reading.
DatabaseConnectionPolicy & operator=(const DatabaseConnectionPolicy &rhs)
Assignment operator.
Mode m_writeModeForExisting
The opening mode when an existing database is opened for writing. Default is UPDATE.
bool setWriteModeForExisting(Mode mode)
Sets the opening mode when an existing database is opened for writing.
Mode writeModeForExisting() const
Retrieves the opening mode when an existing database is opened for writing.
Mode writeModeForNonExisting() const
Retrieves the opening mode when a non existing database is opened for writing.
DatabaseConnectionPolicy(const DatabaseConnectionPolicy &rhs)
Copy constructor.
Mode m_writeModeForNonExisting
The opening mode when a non existing database is opened for writing. Default is RAISE_ERROR.
Mode
Opening modes for a database.
bool setReadMode(Mode mode)
Sets the opening mode of a database in an update transaction, when opened for reading.