#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 () |
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 | 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 |
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 14 of file TransactionCache.cc.
void ora::TransactionCache::addContainer | ( | int | id, |
const std::string & | name, | ||
Handle< DatabaseContainer > & | contPtr | ||
) |
Definition at line 45 of file TransactionCache.cc.
|
private |
Definition at line 96 of file TransactionCache.cc.
References python.multivaluedict::map().
void ora::TransactionCache::clear | ( | void | ) |
Definition at line 18 of file TransactionCache.cc.
References python.multivaluedict::map().
Referenced by python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
const std::map< int, ora::Handle< ora::DatabaseContainer > > & ora::TransactionCache::containers | ( | ) |
Definition at line 76 of file TransactionCache.cc.
bool ora::TransactionCache::dbExists | ( | ) |
Definition at line 41 of file TransactionCache.cc.
bool ora::TransactionCache::dbExistsLoaded | ( | ) |
Definition at line 37 of file TransactionCache.cc.
void ora::TransactionCache::eraseContainer | ( | int | id, |
const std::string & | name | ||
) |
Definition at line 52 of file TransactionCache.cc.
ora::Handle< ora::DatabaseContainer > ora::TransactionCache::getContainer | ( | int | id | ) |
Definition at line 58 of file TransactionCache.cc.
ora::Handle< ora::DatabaseContainer > ora::TransactionCache::getContainer | ( | const std::string & | name | ) |
Definition at line 67 of file TransactionCache.cc.
boost::shared_ptr< void > ora::TransactionCache::getNamedReference | ( | const std::string & | name | ) |
Definition at line 113 of file TransactionCache.cc.
References runTheMatrix::ret.
bool ora::TransactionCache::isLoaded | ( | ) |
Definition at line 88 of file TransactionCache.cc.
void ora::TransactionCache::setDbExists | ( | bool | exists | ) |
Definition at line 32 of file TransactionCache.cc.
void ora::TransactionCache::setLoaded | ( | ) |
Definition at line 92 of file TransactionCache.cc.
void ora::TransactionCache::setNamedReference | ( | const std::string & | name, |
boost::shared_ptr< void > & | data | ||
) |
Definition at line 108 of file TransactionCache.cc.
void ora::TransactionCache::setUtility | ( | Handle< DatabaseUtilitySession > & | utility | ) |
Definition at line 80 of file TransactionCache.cc.
ora::Handle< ora::DatabaseUtilitySession > ora::TransactionCache::utility | ( | ) |
Definition at line 84 of file TransactionCache.cc.
|
private |
Definition at line 59 of file TransactionCache.h.
|
private |
Definition at line 58 of file TransactionCache.h.
|
private |
Definition at line 57 of file TransactionCache.h.
|
private |
Definition at line 61 of file TransactionCache.h.
|
private |
Definition at line 62 of file TransactionCache.h.
|
private |
Definition at line 60 of file TransactionCache.h.