#include <TransactionCache.h>
Definition at line 16 of file TransactionCache.h.
ora::TransactionCache::TransactionCache |
( |
| ) |
|
Definition at line 5 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
std::map< std::string, std::string > m_dbParams
Handle< DatabaseUtilitySession > m_utility
std::pair< bool, bool > m_dbExists
std::pair< bool, bool > m_dropPermission
ora::TransactionCache::~TransactionCache |
( |
| ) |
|
|
virtual |
void ora::TransactionCache::addContainer |
( |
int |
id, |
|
|
const std::string & |
name, |
|
|
Handle< DatabaseContainer > & |
contPtr |
|
) |
| |
Definition at line 50 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
void ora::TransactionCache::cleanUpNamedRefCache |
( |
| ) |
|
|
private |
Definition at line 116 of file TransactionCache.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
117 std::vector<std::string> namesToDelete;
120 if( iEntry->second.expired() ) namesToDelete.push_back( iEntry->first );
122 for( std::vector<std::string>::const_iterator iName = namesToDelete.begin();
123 iName != namesToDelete.end(); iName++ ){
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
void ora::TransactionCache::clear |
( |
void |
| ) |
|
Definition at line 20 of file TransactionCache.cc.
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().
25 iCont->second.clear();
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
std::map< std::string, std::string > m_dbParams
Handle< DatabaseUtilitySession > m_utility
std::pair< bool, bool > m_dbExists
std::pair< bool, bool > m_dropPermission
Definition at line 81 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
bool ora::TransactionCache::dbExists |
( |
| ) |
|
bool ora::TransactionCache::dbExistsLoaded |
( |
| ) |
|
std::map< std::string, std::string > & ora::TransactionCache::dbParams |
( |
| ) |
|
void ora::TransactionCache::dropDatabase |
( |
| ) |
|
Definition at line 85 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
std::map< std::string, std::string > m_dbParams
std::pair< bool, bool > m_dbExists
std::pair< bool, bool > m_dropPermission
bool ora::TransactionCache::dropPermission |
( |
| ) |
|
bool ora::TransactionCache::dropPermissionLoaded |
( |
| ) |
|
void ora::TransactionCache::eraseContainer |
( |
int |
id, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 57 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
Definition at line 63 of file TransactionCache.cc.
References instance.
65 std::map<int, Handle<DatabaseContainer> >::iterator iCont =
m_containersById.find(
id );
67 instance = iCont->second;
std::map< int, Handle< DatabaseContainer > > m_containersById
static PFTauRenderPlugin instance
Definition at line 72 of file TransactionCache.cc.
References instance.
Handle< DatabaseContainer > getContainer(int id)
static PFTauRenderPlugin instance
std::map< std::string, int > m_containersByName
boost::shared_ptr< void > ora::TransactionCache::getNamedReference |
( |
const std::string & |
name | ) |
|
Definition at line 133 of file TransactionCache.cc.
References runTheMatrix::ret.
135 boost::shared_ptr<void>
ret;
136 std::map<std::string,boost::weak_ptr<void> >::const_iterator iEntry =
m_namedRefCache.find(
name );
138 ret = iEntry->second.lock();
tuple ret
prodAgent to be discontinued
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
void cleanUpNamedRefCache()
bool ora::TransactionCache::isLoaded |
( |
| ) |
|
void ora::TransactionCache::setDbExists |
( |
bool |
exists | ) |
|
void ora::TransactionCache::setDropPermission |
( |
bool |
allowed | ) |
|
void ora::TransactionCache::setLoaded |
( |
| ) |
|
void ora::TransactionCache::setNamedReference |
( |
const std::string & |
name, |
|
|
boost::shared_ptr< void > & |
data |
|
) |
| |
Definition at line 128 of file TransactionCache.cc.
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
char data[epos_bytes_allocation]
Definition at line 100 of file TransactionCache.cc.
Handle< DatabaseUtilitySession > utility()
Handle< DatabaseUtilitySession > m_utility
std::map<std::string, int> ora::TransactionCache::m_containersByName |
|
private |
std::pair<bool,bool> ora::TransactionCache::m_dbExists |
|
private |
std::map<std::string,std::string> ora::TransactionCache::m_dbParams |
|
private |
std::pair<bool,bool> ora::TransactionCache::m_dropPermission |
|
private |
bool ora::TransactionCache::m_loaded |
|
private |
std::map<std::string,boost::weak_ptr<void> > ora::TransactionCache::m_namedRefCache |
|
private |