ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace pool {
10
18
77
78}
79
80#include "DatabaseConnectionPolicy.inl"
81
82#endif
Mode writeModeForNonExisting() const
Retrieves the opening mode when a non existing database is opened for writing.
bool setReadMode(Mode mode)
Sets the opening mode of a database in an update transaction, when opened for reading.
Mode readMode() const
Retrieves the opening mode of a database in an update transaction, when opened for reading.
Mode writeModeForExisting() const
Retrieves the opening mode when an 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.
DatabaseConnectionPolicy()
Default constructor. Initializes the data members with their default values.
bool setWriteModeForExisting(Mode mode)
Sets the opening mode when an existing database is opened for writing.
Mode
Opening modes for a database.
Mode m_writeModeForExisting
The opening mode when an existing database is opened for writing. Default is UPDATE.
bool setWriteModeForNonExisting(Mode mode)
Sets the opening mode when a non existing database is opened for writing Acceptable values are RAISE_...
DatabaseConnectionPolicy & operator=(const DatabaseConnectionPolicy &rhs)
Assignment operator.
Mode m_readMode
The opening mode of a database in an update transaction, when opened for reading. Default is READ.
pool namespace
Definition libname.h:15