#include <TransactionCache.h>
Public Member Functions | |
void | addContainer (int id, const std::string &name, Handle< DatabaseContainer > &contPtr) |
void | clear () |
const std::map< int, Handle < DatabaseContainer > > & | containers () |
bool | dbExists () |
bool | dbExistsLoaded () |
std::map< std::string, std::string > & | dbParams () |
void | dropDatabase () |
bool | dropPermission () |
bool | dropPermissionLoaded () |
void | eraseContainer (int id, const std::string &name) |
Handle< DatabaseContainer > | getContainer (int id) |
Handle< DatabaseContainer > | getContainer (const std::string &name) |
boost::shared_ptr< void > | getNamedReference (const std::string &name) |
bool | isLoaded () |
void | setDbExists (bool exists) |
void | setDropPermission (bool allowed) |
void | setLoaded () |
void | setNamedReference (const std::string &name, boost::shared_ptr< void > &data) |
void | setUtility (Handle< DatabaseUtilitySession > &utility) |
TransactionCache () | |
Handle< DatabaseUtilitySession > | utility () |
virtual | ~TransactionCache () |
Private Member Functions | |
void | cleanUpNamedRefCache () |
Private Attributes | |
std::map< int, Handle < DatabaseContainer > > | m_containersById |
std::map< std::string, int > | m_containersByName |
std::pair< bool, bool > | m_dbExists |
std::map< std::string, std::string > | m_dbParams |
std::pair< bool, bool > | m_dropPermission |
bool | m_loaded |
std::map< std::string, boost::weak_ptr< void > > | m_namedRefCache |
Handle< DatabaseUtilitySession > | m_utility |
Definition at line 16 of file TransactionCache.h.
ora::TransactionCache::TransactionCache | ( | ) |
Definition at line 5 of file TransactionCache.cc.
|
virtual |
Definition at line 16 of file TransactionCache.cc.
References hitfit::clear().
void ora::TransactionCache::addContainer | ( | int | id, |
const std::string & | name, | ||
Handle< DatabaseContainer > & | contPtr | ||
) |
Definition at line 50 of file TransactionCache.cc.
|
private |
Definition at line 116 of file TransactionCache.cc.
References python.multivaluedict::map(), and AlCaHLTBitMon_QueryRunRegistry::string.
void ora::TransactionCache::clear | ( | void | ) |
Definition at line 20 of file TransactionCache.cc.
References python.multivaluedict::map().
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
const std::map< int, ora::Handle< ora::DatabaseContainer > > & ora::TransactionCache::containers | ( | ) |
Definition at line 81 of file TransactionCache.cc.
bool ora::TransactionCache::dbExists | ( | ) |
Definition at line 46 of file TransactionCache.cc.
bool ora::TransactionCache::dbExistsLoaded | ( | ) |
Definition at line 42 of file TransactionCache.cc.
std::map< std::string, std::string > & ora::TransactionCache::dbParams | ( | ) |
Definition at line 96 of file TransactionCache.cc.
void ora::TransactionCache::dropDatabase | ( | ) |
Definition at line 85 of file TransactionCache.cc.
bool ora::TransactionCache::dropPermission | ( | ) |
Definition at line 152 of file TransactionCache.cc.
bool ora::TransactionCache::dropPermissionLoaded | ( | ) |
Definition at line 148 of file TransactionCache.cc.
void ora::TransactionCache::eraseContainer | ( | int | id, |
const std::string & | name | ||
) |
Definition at line 57 of file TransactionCache.cc.
ora::Handle< ora::DatabaseContainer > ora::TransactionCache::getContainer | ( | int | id | ) |
Definition at line 63 of file TransactionCache.cc.
References instance.
ora::Handle< ora::DatabaseContainer > ora::TransactionCache::getContainer | ( | const std::string & | name | ) |
Definition at line 72 of file TransactionCache.cc.
References instance.
boost::shared_ptr< void > ora::TransactionCache::getNamedReference | ( | const std::string & | name | ) |
Definition at line 133 of file TransactionCache.cc.
References run_regression::ret.
bool ora::TransactionCache::isLoaded | ( | ) |
Definition at line 108 of file TransactionCache.cc.
void ora::TransactionCache::setDbExists | ( | bool | exists | ) |
Definition at line 37 of file TransactionCache.cc.
void ora::TransactionCache::setDropPermission | ( | bool | allowed | ) |
Definition at line 143 of file TransactionCache.cc.
void ora::TransactionCache::setLoaded | ( | ) |
Definition at line 112 of file TransactionCache.cc.
void ora::TransactionCache::setNamedReference | ( | const std::string & | name, |
boost::shared_ptr< void > & | data | ||
) |
Definition at line 128 of file TransactionCache.cc.
void ora::TransactionCache::setUtility | ( | Handle< DatabaseUtilitySession > & | utility | ) |
Definition at line 100 of file TransactionCache.cc.
ora::Handle< ora::DatabaseUtilitySession > ora::TransactionCache::utility | ( | ) |
Definition at line 104 of file TransactionCache.cc.
|
private |
Definition at line 66 of file TransactionCache.h.
|
private |
Definition at line 65 of file TransactionCache.h.
|
private |
Definition at line 64 of file TransactionCache.h.
|
private |
Definition at line 67 of file TransactionCache.h.
|
private |
Definition at line 71 of file TransactionCache.h.
|
private |
Definition at line 69 of file TransactionCache.h.
|
private |
Definition at line 70 of file TransactionCache.h.
|
private |
Definition at line 68 of file TransactionCache.h.