![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members BdbCondDatabaseBase Class Reference
[BdbCond]#include <BdbCondDatabaseBase.hh>
Inheritance diagram for BdbCondDatabaseBase:
List of all members.
Public Methods
const char * subsystemTLA () const const char * containerName () const const BdbHandle (BdbDBObj)&intervalDBH() const const BdbHandle (BdbContObj)&intervalContH() const const BdbHandle (BdbCondRegistry)®istryH() const const BdbHandle (BdbCondRevision)&baselineRevisionH() const const BdbHandle (BdbCondRevision)&reviseAfterStoreRevisionH() const const BdbHandle (BdbCondHistory)&historyH() const BdbHandle (BdbDBObj) getIntervalDBH() const BdbHandle (BdbContObj) getIntervalContH() const BdbHandle (BdbCondRegistry) getRegistryH() const BdbHandle (BdbCondRevision) getBaselineRevisionH() const BdbHandle (BdbCondRevision) getReviseAfterStoreRevisionH() const BdbHandle (BdbCondHistory) getHistoryH() const void getIntervalDBH (BdbHandle(BdbDBObj)&theIntervalDBH) const void getIntervalContH (BdbHandle(BdbContObj)&theIntervalContH) const void getRegistryH (BdbHandle(BdbCondRegistry)&theRegistryH) const void getBaselineRevisionH (BdbHandle(BdbCondRevision)&theRevisionH) const void getReviseAfterStoreRevisionH (BdbHandle(BdbCondRevision)&theRevisionH) const void getHistoryH (BdbHandle(BdbCondHistory)&theHistoryH) const bool isLink () const bool isWriteLocked () const BdbCondContainerLink getContainerLink () const BdbHandle (BdbDBObj) getLinkDBH() const BdbHandle (BdbContObj) getLinkContH() const void getContainerLink (BdbCondContainerLink &theLink) const void getLinkDBH (BdbHandle(BdbDBObj)&theLinkDBH) const void getLinkContH (BdbHandle(BdbContObj)&theLinkContH) const bool isLink (const char *theContainerName) bool isWriteLocked (const char *theContainerName) BdbStatus findRegistry (BdbHandle(BdbCondRegistry)&theRegistryH, const char *theContainerName) BdbStatus findHistory (BdbHandle(BdbCondHistory)&theHistoryH, const char *theContainerName) BdbStatus findContainerLink (BdbCondContainerLink &theLink, const char *theContainerName) BdbStatus listClasses (std::vector< std::string > &theList, bool useOldIndexes=false, bool useLinksOnly=true, const char *theOriginName=0) BdbStatus listAllClasses (std::vector< std::string > &theList, bool useOldIndexes=false, bool useLinksOnly=true, const char *theOriginName=0) Protected Methods
BdbCondDatabaseBase () BdbCondDatabaseBase (const char *theTLA) BdbCondDatabaseBase (const BdbCondDatabaseBase &theDB) virtual ~BdbCondDatabaseBase () BdbCondDatabaseBase & operator= (const BdbCondDatabaseBase &theDB) BdbStatus findIntervalCont (BdbHandle(BdbContObj)&theIntervalContH, const char *theContainerName, bool followLinkFlag=true) BdbStatus createIntervalCont (const char *theContainerName, const BdbHandle(BdbObject)&theObjectH, const BdbTime &theBeginTime, const BdbTime &theEndTime=BdbTime::plusInfinity, d_ULong theTag=0, const BdbTime &theVersionTime=BdbTime::minusInfinity) void historyCCreate (const char *theCode) void historyHCreate (const char *theCode, const char *theBackupContName) void historyStore (const char *theCode, const BdbHandle(BdbObject)&theObjectH, const BdbTime &theBeginTime, const BdbTime &theEndTime, d_ULong theTag) void historyTStore (const char *theCode, const BdbHandle(BdbObject)&theObjectH, const BdbTime &theStoreTime, const BdbTime &theTruncateTime, d_ULong theTag) void historyIRemove (const char *theCode, const BdbHandle(BdbInterval)&theIntervalH) void historyRCreate (const char *theCode, const std::vector< BdbHandle(BdbInterval)> &theList, d_ULong theRevisionBaseId, d_ULong theRevisionId, const char *theRevisionSite, const char *theRevisionDescription) void historyRUpdate (const char *theCode, const std::vector< BdbHandle(BdbInterval)> &theList, d_ULong theRevisionId) void historyRDelete (const char *theCode, d_ULong theRevisionId) void historyCCopy (const char *theCode, d_ULong theLastIndex, const char *theDetector, const char *theContainer, d_ULong theLevel, d_ULong theRevId, d_Boolean copyObjects, d_Boolean copyToLocalDb, const char *theObjectContainer) void historyComment (const char *theCode, const char *theComment) void historyCPoint (const char *theCode, const BdbTime &theBackupTime, const char *theBackupContName) void historySplit (const char *theCode, const BdbTime &theSplitTime, d_ULong theTag) void historyStoreVector (const char *theCode, const std::vector< BdbCondStoreTime > &theVector) void historyCMerge (const char *theCode, const BdbTime &theBeginTime, const BdbTime &theEndTime, const char *theMergeMethod="Direct Structural Merge") void historyCPurge (const char *theCode, const BdbTime &theBeginTime, const BdbTime &theEndTime, d_Boolean keepRevisedIntervals, d_ULong maxNumOfTopLayers, d_ULong maxNumOfLayersUnderRevisedInterval) void historyNCorrection (const char *theCode, const BdbTime &theBeginTime, const BdbTime &theEndTime) std::string correctedContainerName (const char *theOriginalContainerName) std::string correctedSubsystemName (const char *theOriginalContainerName) std::string linkDatabaseName (const char *theDetector) const std::string indexDatabaseName (const char *theDetectorName, const char *theOriginName=0) const std::string buildDatabaseName (bool useOldIndexes, bool useLinksOnly, const char *theOriginName) const bool isValidCacheForContainer (const char *theContainerName) const virtual void resetCacheHandler ()=0 void setCache (const char *theContainerName, const BdbHandle(BdbDBObj)&theIntervalDBH, const BdbHandle(BdbContObj)&theIntervalContH, const BdbHandle(BdbCondRegistry)&theRegistryH, const BdbHandle(BdbCondRevision)&theBaselineRevisionH, const BdbHandle(BdbCondRevision)&theReviseAfterStoreRevisionH, const BdbHandle(BdbCondHistory)&theHistoryH, bool isLink, bool isWriteLocked, const BdbCondContainerLink &link, const BdbHandle(BdbDBObj)&theLinkDBH, const BdbHandle(BdbContObj)&theLinkContH) void resetCache () Private Methods
bool isValidCache () const BdbHandle (BdbDBObj) _intervalDBH BdbHandle (BdbContObj) _intervalContH BdbHandle (BdbCondRegistry) _registryH BdbHandle (BdbCondRevision) _baselineRevisionH BdbHandle (BdbCondRevision) _reviseAfterStoreRevisionH BdbHandle (BdbCondHistory) _historyH BdbHandle (BdbDBObj) _linkDBH BdbHandle (BdbContObj) _linkContH Static Private Methods
BdbStatus initializeOriginName () Private Attributes
std::string _subsystemTLA std::string _containerNameCache bool _isLink bool _isWriteLocked BdbCondContainerLink _link Static Private Attributes
std::string _originName = "" Constructor & Destructor Documentation
BdbCondDatabaseBase::BdbCondDatabaseBase ( ) [protected]
All the constructors, destructor and assignment operator are protected from a direct use by client's application.
Definition at line 152 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, and _subsystemTLA.
BdbCondDatabaseBase::BdbCondDatabaseBase ( const char * theTLA ) [protected]
Definition at line 179 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, and _subsystemTLA.
BdbCondDatabaseBase::BdbCondDatabaseBase ( const BdbCondDatabaseBase & theDB ) [protected]
Definition at line 214 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, and _subsystemTLA.
BdbCondDatabaseBase::~BdbCondDatabaseBase ( ) [protected, virtual]
Definition at line 240 of file BdbCondDatabaseBase.cc.
Member Function Documentation
BdbCondDatabaseBase::BdbHandle ( BdbContObj ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbDBObj ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondHistory ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRegistry ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbContObj ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbDBObj ) [private]
Reimplemented in BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbContObj ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbDBObj ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondHistory ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbCondRegistry ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbContObj ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
BdbCondDatabaseBase::BdbHandle ( BdbDBObj ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbCondHistory ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbCondRevision ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbCondRegistry ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbContObj ) const [inline]
Reimplemented in BdbDatabase, and BdbDatabase.
const BdbCondDatabaseBase::BdbHandle ( BdbDBObj ) const [inline]
string BdbCondDatabaseBase::buildDatabaseName ( bool useOldIndexes, bool useLinksOnly, const char * theOriginName ) const [protected]
Definition at line 1927 of file BdbCondDatabaseBase.cc.
References _originName, BdbcSuccess, BdbStatus, indexDatabaseName(), initializeOriginName(), linkDatabaseName(), and subsystemTLA().
Referenced by listAllClasses(), and listClasses().
const char * BdbCondDatabaseBase::containerName ( ) [inline]
string BdbCondDatabaseBase::correctedContainerName ( const char * theOriginalContainerName ) [protected]
The methods return the "corrected" subsystem and container names if so called USER AREA is being in use for specified container. The corrected subsystem & container names might point out into a container in the different (USER AREA) database.
Definition at line 1807 of file BdbCondDatabaseBase.cc.
References _subsystemTLA, BdbcSuccess, BdbStatus, BdbCondPath::getOwner(), and BdbCondPath::instance().
Referenced by createIntervalCont(), findContainerLink(), and findIntervalCont().
string BdbCondDatabaseBase::correctedSubsystemName ( const char * theOriginalContainerName ) [protected]
Definition at line 1854 of file BdbCondDatabaseBase.cc.
References _subsystemTLA, BdbcSuccess, BdbStatus, BdbCondPath::getOwner(), and BdbCondPath::instance().
Referenced by createIntervalCont(), findContainerLink(), findIntervalCont(), and BdbDatabase::verifyAuthLevelOnly().
BdbStatus BdbCondDatabaseBase::createIntervalCont ( const char * theContainerName, const BdbHandle(BdbObject)& theObjectH, const BdbTime & theBeginTime, const BdbTime & theEndTime = BdbTime::plusInfinity, d_ULong theTag = 0, const BdbTime & theVersionTime = BdbTime::minusInfinity ) [protected]
BdbStatus BdbCondDatabaseBase::findContainerLink ( BdbCondContainerLink & theLink, const char * theContainerName )
Obtain the link description if specified interval container is a link container. This function would return the success status even if specified interval container is not the container link.
Definition at line 442 of file BdbCondDatabaseBase.cc.
References BdbcError, BdbcNoOpen, BdbContObj, BdbcRead, BdbcSuccess, BdbDBObj, BdbHandle(), BdbIsNull, BdbStatus, correctedContainerName(), correctedSubsystemName(), COUT1, d_True, linkDatabaseName(), and subsystemTLA().
Referenced by cmd_print_containers(), cmd_revise_top_many(), cmd_show_link(), createIntervalCont(), BdbCondDdOprPurgeIContainers::operation(), BdbCondDdOprNCorrection::operation(), BdbCondDdOprMergeLinks::operation(), BdbCondDdOprMergeIContainers2::operation(), and BdbCondDdOprMergeIContainers::operation().
BdbStatus BdbCondDatabaseBase::findHistory ( BdbHandle(BdbCondHistory)& theHistoryH, const char * theContainerName )
Locate a history object (if any) for a particular interval container. This history object may not exist for some interval containers.
MAY RELOAD THE CACHE.
Definition at line 413 of file BdbCondDatabaseBase.cc.
References BdbContObj, BdbcSuccess, BdbHandle(), BdbIsNull, BdbStatus, and findIntervalCont().
Referenced by cmd_history(), cmd_print_containers(), BdbCondDatabaseMgr::commentHistory(), BdbCondDatabaseMgr::createCheckpoint(), BdbCondDatabaseMgr::createHistory(), and BdbCondRInfoLoader::load().
BdbStatus BdbCondDatabaseBase::findIntervalCont ( BdbHandle(BdbContObj)& theIntervalContH, const char * theContainerName, bool followLinkFlag = true ) [protected]
BdbStatus BdbCondDatabaseBase::findRegistry ( BdbHandle(BdbCondRegistry)& theRegistryH, const char * theContainerName )
Locate a registry object for specified container. This object should always exist in a correct interval container.
MAY RELOAD THE CACHE.
Definition at line 387 of file BdbCondDatabaseBase.cc.
References BdbContObj, BdbcSuccess, BdbHandle(), BdbIsNull, BdbStatus, and findIntervalCont().
Referenced by cmd_delete_revision(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_registry(), cmd_print_revision(), BdbDatabase::deleteRevision(), CdbBdbWCondition::findRevision(), CdbBdbWView::get(), BdbDatabase::getMostRecentRevisionId(), BdbCondRInfoLoader::load(), CdbBdbWRevisionNameItr::loadListOfRevisions(), and CdbBdbWRevisionIdItr::loadListOfRevisions().
void BdbCondDatabaseBase::getBaselineRevisionH ( BdbHandle(BdbCondRevision)& theRevisionH ) const [inline]
void BdbCondDatabaseBase::getContainerLink ( BdbCondContainerLink & theLink ) const [inline]
Definition at line 539 of file BdbCondDatabaseBase.hh.
References _link.
BdbCondContainerLink BdbCondDatabaseBase::getContainerLink ( ) [inline]
Definition at line 527 of file BdbCondDatabaseBase.hh.
References _link.
Referenced by BdbCondDebug::getOriginName(), and BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::getHistoryH ( BdbHandle(BdbCondHistory)& theHistoryH ) const [inline]
Definition at line 515 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseMgr::copyIntervalContainer(), BdbCondDatabaseMgr::createHistory(), BdbCondDatabaseMgr::removeHistory(), and BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::getIntervalContH ( BdbHandle(BdbContObj)& theIntervalContH ) const [inline]
void BdbCondDatabaseBase::getIntervalDBH ( BdbHandle(BdbDBObj)& theIntervalDBH ) const [inline]
Definition at line 495 of file BdbCondDatabaseBase.hh.
References BdbDBObj.
Referenced by BdbCondDatabaseMgr::copyObjects(), and BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::getLinkContH ( BdbHandle(BdbContObj)& theLinkContH ) const [inline]
Definition at line 547 of file BdbCondDatabaseBase.hh.
References BdbContObj.
Referenced by BdbCondDatabaseMgr::removeHistory(), and BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::getLinkDBH ( BdbHandle(BdbDBObj)& theLinkDBH ) const [inline]
Definition at line 543 of file BdbCondDatabaseBase.hh.
References BdbDBObj.
Referenced by BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::getRegistryH ( BdbHandle(BdbCondRegistry)& theRegistryH ) const [inline]
void BdbCondDatabaseBase::getReviseAfterStoreRevisionH ( BdbHandle(BdbCondRevision)& theRevisionH ) const [inline]
Definition at line 511 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondROIDServerLoader::updateEntry().
void BdbCondDatabaseBase::historyCCopy ( const char * theCode, d_ULong theLastIndex, const char * theDetector, const char * theContainer, d_ULong theLevel, d_ULong theRevId, d_Boolean copyObjects, d_Boolean copyToLocalDb, const char * theObjectContainer ) [protected]
Definition at line 1559 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbCondDatabaseMgr::copyIntervalContainer().
void BdbCondDatabaseBase::historyCCreate ( const char * theCode ) [protected]
Interface to the container History system. The following methods are ment to write records about differecnt types of activities affecting the contents of an interval container into the Historian.
Definition at line 1348 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by createIntervalCont().
void BdbCondDatabaseBase::historyCMerge ( const char * theCode, const BdbTime & theBeginTime, const BdbTime & theEndTime, const char * theMergeMethod = "Direct Structural Merge" ) [protected]
Definition at line 1692 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbCondDatabaseMgr::mergeIntervalContainers().
void BdbCondDatabaseBase::historyComment ( const char * theCode, const char * theComment ) [protected]
Definition at line 1593 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbCondDatabaseMgr::commentHistory().
void BdbCondDatabaseBase::historyCPoint ( const char * theCode, const BdbTime & theBackupTime, const char * theBackupContName ) [protected]
Definition at line 1613 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbCondDatabaseMgr::createCheckpoint().
void BdbCondDatabaseBase::historyCPurge ( const char * theCode, const BdbTime & theBeginTime, const BdbTime & theEndTime, d_Boolean keepRevisedIntervals, d_ULong maxNumOfTopLayers, d_ULong maxNumOfLayersUnderRevisedInterval ) [protected]
Definition at line 1716 of file BdbCondDatabaseBase.cc.
References containerName(), and subsystemTLA().
Referenced by BdbCondDatabaseMgr::purgeIntervalContainer().
void BdbCondDatabaseBase::historyHCreate ( const char * theCode, const char * theBackupContName ) [protected]
Definition at line 1366 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbCondDatabaseMgr::createHistory().
void BdbCondDatabaseBase::historyIRemove ( const char * theCode, const BdbHandle(BdbInterval)& theIntervalH ) [protected]
Definition at line 1438 of file BdbCondDatabaseBase.cc.
References BdbHandle(), BdbIsNull, BdbIntervalBase::getBeginTime(), and BdbIntervalBase::getEndTime().
void BdbCondDatabaseBase::historyNCorrection ( const char * theCode, const BdbTime & theBeginTime, const BdbTime & theEndTime ) [protected]
Definition at line 1765 of file BdbCondDatabaseBase.cc.
References containerName(), and subsystemTLA().
Referenced by BdbCondDatabaseMgr::nanoCorrection().
void BdbCondDatabaseBase::historyRCreate ( const char * theCode, const std::vector< BdbHandle(BdbInterval)> & theList, d_ULong theRevisionBaseId, d_ULong theRevisionId, const char * theRevisionSite, const char * theRevisionDescription ) [protected]
Definition at line 1470 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbDatabase::createRevision().
void BdbCondDatabaseBase::historyRDelete ( const char * theCode, d_ULong theRevisionId ) [protected]
Definition at line 1520 of file BdbCondDatabaseBase.cc.
References containerName(), and subsystemTLA().
Referenced by BdbDatabase::deleteRevision().
void BdbCondDatabaseBase::historyRUpdate ( const char * theCode, const std::vector< BdbHandle(BdbInterval)> & theList, d_ULong theRevisionId ) [protected]
Definition at line 1498 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbDatabase::updateRevision().
void BdbCondDatabaseBase::historySplit ( const char * theCode, const BdbTime & theSplitTime, d_ULong theTag ) [protected]
Definition at line 1635 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbDatabase::split().
void BdbCondDatabaseBase::historyStore ( const char * theCode, const BdbHandle(BdbObject)& theObjectH, const BdbTime & theBeginTime, const BdbTime & theEndTime, d_ULong theTag ) [protected]
Definition at line 1386 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by createIntervalCont(), and BdbDatabase::store().
void BdbCondDatabaseBase::historyStoreVector ( const char * theCode, const std::vector< BdbCondStoreTime > & theVector ) [protected]
Definition at line 1657 of file BdbCondDatabaseBase.cc.
References BdbHandle(), BdbIsNull, and ooVArray().
Referenced by BdbDatabase::storeVector().
void BdbCondDatabaseBase::historyTStore ( const char * theCode, const BdbHandle(BdbObject)& theObjectH, const BdbTime & theStoreTime, const BdbTime & theTruncateTime, d_ULong theTag ) [protected]
Definition at line 1412 of file BdbCondDatabaseBase.cc.
References BdbHandle(), and BdbIsNull.
Referenced by BdbDatabase::storeAndTruncate().
string BdbCondDatabaseBase::indexDatabaseName ( const char * theDetectorName, const char * theOriginName = 0 ) const [protected]
Definition at line 1911 of file BdbCondDatabaseBase.cc.
References result.
Referenced by buildDatabaseName(), and findIntervalCont().
BdbStatus BdbCondDatabaseBase::initializeOriginName ( ) [static, private]
Definition at line 112 of file BdbCondDatabaseBase.cc.
References BdbDomain::activeInstance(), BdbcError, BdbcSuccess, BdbSession::BdbHandle(), BdbStatus, BdbDomainOODB::commitNested(), BdbStandardDbIdMgr::findKey(), and BdbDomainOODB::startNestedRead().
Referenced by buildDatabaseName(), and createIntervalCont().
bool BdbCondDatabaseBase::isLink ( const char * theContainerName )
Check if the current container is served via a container link.
The function would work silently even if it does not find a link.
The function will always return FALSE for non-linked containers and also if specified container does not exist yet.
MAY DESTROY THE CACHE.
Definition at line 282 of file BdbCondDatabaseBase.cc.
References _isLink, BdbContObj, BdbcSuccess, BdbHandle(), BdbIsNull, BdbStatus, findIntervalCont(), isValidCacheForContainer(), resetCache(), and result.
bool BdbCondDatabaseBase::isLink ( ) [inline]
bool BdbCondDatabaseBase::isValidCache ( ) [private]
Check if the cache is valid.
NOTE: The cache is considered "valid" if all the data members have reasonable contents. See the code for the definition of "reasonable contents".
Definition at line 2004 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _link, _subsystemTLA, BdbIsNull, and BdbCondContainerLink::isValid().
Referenced by isValidCacheForContainer().
bool BdbCondDatabaseBase::isValidCacheForContainer ( const char * theContainerName ) const [protected]
Verify if the current cache is set for specified container. This function provides more strong checcking than just "reasonable" check.
Definition at line 1964 of file BdbCondDatabaseBase.cc.
References _containerNameCache, and isValidCache().
Referenced by BdbDatabase::findInterval(), findIntervalCont(), isLink(), isWriteLocked(), and BdbDatabase::setAuthLevel().
bool BdbCondDatabaseBase::isWriteLocked ( const char * theContainerName )
Check if the current container is available for writing.
The function will return TRUE if it's a linked container and if this container is locked for wruting.
The function will always return FALSE for non-linked containers and also if specified container does not exist yet.
MAY DESTROY THE CACHE.
Definition at line 322 of file BdbCondDatabaseBase.cc.
References _isLink, _isWriteLocked, BdbContObj, BdbcSuccess, BdbHandle(), BdbIsNull, BdbStatus, findIntervalCont(), isValidCacheForContainer(), resetCache(), and result.
bool BdbCondDatabaseBase::isWriteLocked ( ) [inline]
Definition at line 523 of file BdbCondDatabaseBase.hh.
References _isWriteLocked.
Referenced by cmd_print_containers(), createIntervalCont(), BdbCondDatabaseMgr::removeIntervalContainer(), BdbCondDatabaseMgr::removeIntervalContainerLink(), BdbDatabase::setAuthLevel(), setCache(), and BdbCondROIDServerLoader::updateEntry().
string BdbCondDatabaseBase::linkDatabaseName ( const char * theDetector ) const [protected]
Build the system name of the link database for specified detector.
Specifying the NULL pointer for the origin name would build the "old"-style name for the interval database, which does not contain the origin as their part.
Definition at line 1905 of file BdbCondDatabaseBase.cc.
Referenced by buildDatabaseName(), BdbCondDatabaseMgr::evaluateIntervalDatabase(), findContainerLink(), and findIntervalCont().
BdbStatus BdbCondDatabaseBase::listAllClasses ( std::vector< std::string > & theList, bool useOldIndexes = false, bool useLinksOnly = true, const char * theOriginName = 0 )
BdbStatus BdbCondDatabaseBase::listClasses ( std::vector< std::string > & theList, bool useOldIndexes = false, bool useLinksOnly = true, const char * theOriginName = 0 )
Return a list of classes with interval containers in this database. Note that his will NOT clear any existing list members. The listClasses() method will also ignore any [n] suffixes in the end of container names.
The input parameters are treated in the following way:
useOldIndexes useLinksOnly theOriginName
true - containers in old interval database false true - links in new link database false false 0 - containers in new interval database created in current federation. false false != 0 - containers in new interval database created in specified federation.
Definition at line 544 of file BdbCondDatabaseBase.cc.
References BdbcError, BdbcNoOpen, BdbContObj, BdbcRead, BdbcSuccess, BdbDBObj, BdbHandle(), BdbIsNull, BdbItr, BdbStatus, buildDatabaseName(), COUT1, and d_True.
BdbCondDatabaseBase & BdbCondDatabaseBase::operator= ( const BdbCondDatabaseBase & theDB ) [protected]
Definition at line 249 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, and _subsystemTLA.
Referenced by BdbDatabase::operator=().
void BdbCondDatabaseBase::resetCache ( ) [protected]
Reset the internal cache of the object.
Definition at line 1975 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, and resetCacheHandler().
Referenced by createIntervalCont(), findIntervalCont(), isLink(), and isWriteLocked().
virtual void BdbCondDatabaseBase::resetCacheHandler ( ) [protected, pure virtual]
Send a signal to a derived class about reset of the cache on this level. It's up to the derived class how to process this signal.
Implemented in BdbDatabase.
Referenced by resetCache(), and setCache().
void BdbCondDatabaseBase::setCache ( const char * theContainerName, const BdbHandle(BdbDBObj)& theIntervalDBH, const BdbHandle(BdbContObj)& theIntervalContH, const BdbHandle(BdbCondRegistry)& theRegistryH, const BdbHandle(BdbCondRevision)& theBaselineRevisionH, const BdbHandle(BdbCondRevision)& theReviseAfterStoreRevisionH, const BdbHandle(BdbCondHistory)& theHistoryH, bool isLink, bool isWriteLocked, const BdbCondContainerLink & link, const BdbHandle(BdbDBObj)& theLinkDBH, const BdbHandle(BdbContObj)& theLinkContH ) [protected]
Explicitly set the internal cache of the object using specified values. This will also force the cache handler of derived classe(s) to fire.
NOTE: This method provides a very fast way to establish the cache of this class's instances.
Definition at line 2035 of file BdbCondDatabaseBase.cc.
References _containerNameCache, _isLink, _isWriteLocked, _link, BdbContObj, BdbDBObj, isLink(), isWriteLocked(), and resetCacheHandler().
Referenced by BdbCondRemoteAccessor::translateResult().
const char * BdbCondDatabaseBase::subsystemTLA ( ) [inline]Member Data Documentation
std::string BdbCondDatabaseBase::_containerNameCache [private]
Definition at line 415 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseBase(), containerName(), createIntervalCont(), findIntervalCont(), isValidCache(), isValidCacheForContainer(), operator=(), resetCache(), and setCache().
bool BdbCondDatabaseBase::_isLink [private]
Definition at line 425 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseBase(), createIntervalCont(), findIntervalCont(), isLink(), isWriteLocked(), operator=(), resetCache(), and setCache().
bool BdbCondDatabaseBase::_isWriteLocked [private]
Definition at line 426 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseBase(), createIntervalCont(), findIntervalCont(), isWriteLocked(), operator=(), resetCache(), and setCache().
BdbCondContainerLink BdbCondDatabaseBase::_link [private]
Definition at line 428 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseBase(), createIntervalCont(), findIntervalCont(), getContainerLink(), isValidCache(), operator=(), resetCache(), and setCache().
string BdbCondDatabaseBase::_originName = "" [static, private]
Definition at line 105 of file BdbCondDatabaseBase.cc.
Referenced by buildDatabaseName(), and createIntervalCont().
std::string BdbCondDatabaseBase::_subsystemTLA [private]
Definition at line 414 of file BdbCondDatabaseBase.hh.
Referenced by BdbCondDatabaseBase(), correctedContainerName(), correctedSubsystemName(), isValidCache(), operator=(), and subsystemTLA().
The documentation for this class was generated from the following files:
- /BdbCond/BdbCondDatabaseBase.hh
- /BdbCond/BdbCondDatabaseBase.cc
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002