Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BdbCondDatabaseMgr Class Reference
[BdbCond]

#include <BdbCondDatabaseMgr.hh>

List of all members.

Public Types

enum  LevelType { LEVEL_DEEP, LEVEL_TOPMOST, LEVEL_BASELINE, LEVEL_REVISION }

Public Methods

 BdbCondDatabaseMgr (bool supressVTableWarnings=true)
virtual ~BdbCondDatabaseMgr ()
BdbStatus copyIntervalContainer (const char *theInTLA, const char *theInContName, const char *theOutTLA, const char *theOutContName, LevelType level=LEVEL_DEEP, d_ULong theRevId=BdbCondRevision::BASELINE, bool copyCondObjects=false, bool copyToLocalDb=false, const char *theContName="_CONDITIONS_DATA_")
BdbStatus removeIntervalContainer (const char *theTLA, const char *theContName, bool removeContainerLinkFlag=false)
BdbStatus createIntervalContainerLink (const char *theLinkTLA, const char *theLinkContName, const char *theOrigin, const char *theTLA, const char *theContName, bool verifyRealContainer)
BdbStatus removeIntervalContainerLink (const char *theLinkTLA, const char *theLinkContName, bool removeIntervalContainerFlag=false)
BdbStatus lockIntervalContainerLink (const char *theLinkTLA, const char *theLinkContName)
BdbStatus unlockIntervalContainerLink (const char *theLinkTLA, const char *theLinkContName)
BdbStatus deleteObjects (const char *theTLA, const char *theContName)
BdbStatus evaluateIntervalContainer (const char *theTLA, const char *theContName, bool &exists)
BdbStatus createCheckpoint (const char *theTLA, const char *theContName)
BdbStatus resetRevisions (const char *theTLA, const char *theContName)
BdbStatus createHistory (const char *theTLA, const char *theContName, bool makeContainerBackup=true)
BdbStatus removeHistory (const char *theTLA, const char *theContName)
BdbStatus commentHistory (const char *theTLA, const char *theContName, const char *theRcsid, const char *theComment)
BdbStatus evaluateIntervalDatabase (const char *theTLA, bool &exists)
BdbStatus getDatabasesForContainer (std::vector< std::string > &theList, const char *theTLA, const char *theContName)
BdbStatus getDatabases (std::vector< std::string > &theList, const std::vector< std::string > &theKeywordsList, const std::vector< std::string > &theDetectorsList, bool theExcludeFlag)
BdbStatus getContainers (std::map< std::string, std::vector< std::string > > &theDict, const std::vector< std::string > &theKeywordsList, const std::vector< std::string > &theDetectorsList, bool theExcludeFlag)
BdbStatus getClasses (std::map< std::string, int > &theDict, const char *theTLA, const char *theContName)
BdbStatus validateContainer (std::vector< BdbHandle(BdbInterval)> &theList, const char *theTLA, const char *theContName)
BdbStatus selectDetectors (std::vector< std::string > &theFinalDetectorsList, const std::vector< std::string > &theDetectorsList, bool theExcludeFlag)
BdbStatus mergeIntervalContainers (const char *theInTLA, const char *theInContName, const char *theOutTLA, const char *theOutContName, const BdbTime &theMergeTime, bool mergeToLeft=true, bool verifyOnly=false)
BdbStatus mergeIntervalContainers (const char *theInTLA, const char *theInContName, const char *theOutTLA, const char *theOutContName, const BdbTime &theBeginMergeTime, const BdbTime &theEndMergeTime, bool mergeInner=true, bool verifyOnly=false)
BdbStatus purgeIntervalContainer (const char *theTLA, const char *theContName, const BdbTime &theBeginTime, const BdbTime &theEndTime, bool keepRevisedIntervals=true, d_ULong maxNumOfTopLayers=1, d_ULong maxNumOfLayersUnderRevisedInterval=1)
BdbStatus nanoCorrection (const char *theTLA, const char *theContName, const BdbTime &theBeginTime, const BdbTime &theEndTime, std::vector< ooId > &theFoundIntervalsList, bool verifyOnly=false)

Private Methods

BdbStatus initOutputContainer (BdbObsoleteDatabase &theInDb, const char *theInContName, BdbObsoleteDatabase &theOutDb, const char *theOutContName)
BdbStatus copyRevisions (const BdbHandle(BdbCondRegistry)&theInRegistryH, const BdbHandle(BdbCondRegistry)&theOutRegistryH)
BdbStatus deepCopy (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb)
BdbStatus baselineOrTopmostCopy (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, bool baselineFlag)
BdbStatus revisionCopy (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, d_ULong theRevId)
BdbStatus locateBorderIntervals (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbInterval)&theInFirstIntervalH, BdbHandle(BdbInterval)&theInLastIntervalH, BdbHandle(BdbInterval)&theOutFirstIntervalH, BdbHandle(BdbInterval)&theOutLastIntervalH)
BdbStatus matchRevision (const BdbHandle(BdbIntervalR)&theInNextIntervalH, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbCondRevision)&theOutRevisionH)
BdbStatus linkTopIntervalsInSubTree (const BdbHandle(BdbIntervalR)&theIntervalH, BdbHandle(BdbIntervalR)&thePreviousIntervalH)
BdbStatus copySubTree (const BdbHandle(BdbIntervalR)&theInIntervalH, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbIntervalR)&theOutIntervalH)
BdbStatus copyObjects (BdbObsoleteDatabase &theDb, bool copyToLocalDb, const char *theContName)
BdbStatus copyObjectsInSubTree (BdbHandle(BdbInterval)&theIntervalH, bool copyToLocalDb, const BdbHandle(BdbContObj)&theLocalContH, BdbCondClusteringHint *theHint, BdbCondCache< BdbRefAny > *theCache)
void deleteIntervalsInSubTree (BdbHandle(BdbIntervalR)&theIntervalH, bool deleteGeneObject=false)
void deleteObjectsInSubTree (BdbHandle(BdbInterval)&theIntervalH)
BdbStatus scanContainer (std::map< std::string, BdbRef(ooDBObj)> &theDict, BdbObsoleteDatabase &theDb, const char *theContName)
BdbStatus evaluateMergePoint (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, const BdbTime &theMergeTime, BdbHandle(BdbIntervalR)&theInLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theInRightBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutRightBaselineIntervalH)
BdbStatus locateBaselineIntervals (BdbHandle(BdbIntervalR)&theLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theRightBaselineIntervalH, BdbObsoleteDatabase &theDb, const BdbTime &theMergeTime)
BdbStatus compareRevisions (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, bool exactEquivalence=true, bool equalContensVsStructure=true)
BdbStatus mergeLeftFromBaseline (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbIntervalR)&theInLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theInRightBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutRightBaselineIntervalH)
BdbStatus mergeInnerFromBaseline (BdbObsoleteDatabase &theInDb, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbIntervalR)&theInBeginLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theInBeginRightBaselineIntervalH, BdbHandle(BdbIntervalR)&theInEndLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theInEndRightBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutBeginLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutBeginRightBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutEndLeftBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutEndRightBaselineIntervalH)
BdbStatus copySubSequenceOfBaselineIntervals (BdbObsoleteDatabase &theInDb, const BdbHandle(BdbIntervalR)&theInBeginBaselineIntervalH, const BdbHandle(BdbIntervalR)&theInEndBaselineIntervalH, BdbObsoleteDatabase &theOutDb, BdbHandle(BdbIntervalR)&theOutBeginBaselineIntervalH, BdbHandle(BdbIntervalR)&theOutEndBaselineIntervalH)
BdbStatus copyTopIntervalsInSubTree (BdbObsoleteDatabase &theDb, const BdbHandle(BdbIntervalR)&theInBaseIntervalH, BdbHandle(BdbIntervalR)&theOutBaseIntervalH, bool keepRevisedIntervals, d_ULong maxNumOfTopLayers, d_ULong maxNumOfLayersUnderRevisedInterval)
bool hasAnyTopIntervalAsCloaseAs (const BdbHandle(BdbIntervalR)&theIntervalH, d_ULong maxNumOfTopLayers)
bool hasAnyRevisedIntervalAsCloaseAs (const BdbHandle(BdbIntervalR)&theIntervalH, d_ULong maxNumOfLayersUnderRevisedInterval)
bool hasRevisedIntervalInSubTree (const BdbHandle(BdbIntervalR)&theIntervalH)
void nanoCorrectionInSubTree (const BdbHandle(BdbIntervalR)&theBaseIntervalH, std::vector< ooId > &theFoundIntervalsList, bool verifyOnly)
const char * getOID (const BdbHandle(BdbPersObj)&thePersObjH)

Private Attributes

bool _supressVTableWarnings


Member Enumeration Documentation

enum BdbCondDatabaseMgr::LevelType
 

Enumeration values:
LEVEL_DEEP 
LEVEL_TOPMOST 
LEVEL_BASELINE 
LEVEL_REVISION 

Definition at line 69 of file BdbCondDatabaseMgr.hh.

Referenced by cmd_copy(), main(), and translateCopyLevelType().


Constructor & Destructor Documentation

BdbCondDatabaseMgr::BdbCondDatabaseMgr bool    supressVTableWarnings = true
 

Definition at line 117 of file BdbCondDatabaseMgr.cc.

References oldErrorHandlerPtr, and vtableWarningsHandler().

BdbCondDatabaseMgr::~BdbCondDatabaseMgr   [virtual]
 

Definition at line 142 of file BdbCondDatabaseMgr.cc.

References oldErrorHandlerPtr.


Member Function Documentation

BdbStatus BdbCondDatabaseMgr::baselineOrTopmostCopy BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
bool    baselineFlag
[private]
 

Definition at line 3524 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::getBaselineRevisionH(), BdbCondDatabaseBase::getIntervalContH(), and locateBorderIntervals().

Referenced by copyIntervalContainer(), deepCopy(), and revisionCopy().

BdbStatus BdbCondDatabaseMgr::commentHistory const char *    theTLA,
const char *    theContName,
const char *    theRcsid,
const char *    theComment
 

Definition at line 1163 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::findHistory(), and BdbCondDatabaseBase::historyComment().

Referenced by cmd_comment().

BdbStatus BdbCondDatabaseMgr::compareRevisions BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
bool    exactEquivalence = true,
bool    equalContensVsStructure = true
[private]
 

Definition at line 2190 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, and BdbCondDatabaseBase::getRegistryH().

Referenced by mergeIntervalContainers().

BdbStatus BdbCondDatabaseMgr::copyIntervalContainer const char *    theInTLA,
const char *    theInContName,
const char *    theOutTLA,
const char *    theOutContName,
LevelType    level = LEVEL_DEEP,
d_ULong    theRevId = BdbCondRevision::BASELINE,
bool    copyCondObjects = false,
bool    copyToLocalDb = false,
const char *    theContName = "_CONDITIONS_DATA_"
 

Definition at line 154 of file BdbCondDatabaseMgr.cc.

References baselineOrTopmostCopy(), BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, copyObjects(), deepCopy(), BdbCondDatabaseBase::getHistoryH(), BdbCondDatabaseBase::historyCCopy(), initOutputContainer(), LEVEL_BASELINE, LEVEL_DEEP, LEVEL_REVISION, LEVEL_TOPMOST, rcsid, revisionCopy(), and BdbCondDatabaseBase::subsystemTLA().

Referenced by cmd_copy(), createCheckpoint(), createHistory(), BdbCondUaOprMerge::operation(), BdbCondUaOprCreate::operation(), BdbCondDdOprImport::operation(), and BdbCondDdOprExport::operation().

BdbStatus BdbCondDatabaseMgr::copyObjects BdbObsoleteDatabase   theDb,
bool    copyToLocalDb,
const char *    theContName
[private]
 

Definition at line 3947 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcNoOpen, BdbContObj, BdbcSuccess, BdbcUpdate, BdbDBObj, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::containerName(), copyObjectsInSubTree(), d_True, BdbDatabase::firstInterval(), BdbIntervalR::getBaselineNext(), and BdbCondDatabaseBase::getIntervalDBH().

Referenced by copyIntervalContainer().

BdbStatus BdbCondDatabaseMgr::copyObjectsInSubTree BdbHandle(BdbInterval)&    theIntervalH,
bool    copyToLocalDb,
const BdbHandle(BdbContObj)&    theLocalContH,
BdbCondClusteringHint   theHint,
BdbCondCache< BdbRefAny > *    theCache
[private]
 

Definition at line 4062 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbRef, BdbStatus, BdbInterval::getObject(), BdbInterval::setObject(), and BdbAbsRegularClustH::updatedHint().

Referenced by copyObjects().

BdbStatus BdbCondDatabaseMgr::copyRevisions const BdbHandle(BdbCondRegistry)&    theInRegistryH,
const BdbHandle(BdbCondRegistry)&    theOutRegistryH
[private]
 

Definition at line 3294 of file BdbCondDatabaseMgr.cc.

References BdbCondRegistry::addRevision(), BdbCondRevision::BASELINE, BdbcError, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbItr, BdbStatus, BdbCondRegistry::getRevision(), and BdbCondRegistry::setRevisionItr().

Referenced by initOutputContainer().

BdbStatus BdbCondDatabaseMgr::copySubSequenceOfBaselineIntervals BdbObsoleteDatabase   theInDb,
const BdbHandle(BdbIntervalR)&    theInBeginBaselineIntervalH,
const BdbHandle(BdbIntervalR)&    theInEndBaselineIntervalH,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbIntervalR)&    theOutBeginBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutEndBaselineIntervalH
[private]
 

Definition at line 4373 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::getBaselineRevisionH(), BdbCondDatabaseBase::getIntervalContH(), and BdbInterval::setVersionTime().

Referenced by purgeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::copySubTree const BdbHandle(BdbIntervalR)&    theInIntervalH,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbIntervalR)&    theOutIntervalH
[private]
 

Definition at line 3794 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, and matchRevision().

Referenced by deepCopy(), mergeInnerFromBaseline(), and mergeLeftFromBaseline().

BdbStatus BdbCondDatabaseMgr::copyTopIntervalsInSubTree BdbObsoleteDatabase   theDb,
const BdbHandle(BdbIntervalR)&    theInBaseIntervalH,
BdbHandle(BdbIntervalR)&    theOutBaseIntervalH,
bool    keepRevisedIntervals,
d_ULong    maxNumOfTopLayers,
d_ULong    maxNumOfLayersUnderRevisedInterval
[private]
 

Definition at line 4484 of file BdbCondDatabaseMgr.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbRef, BdbStatus, BdbIntervalBase::getBeginTime(), BdbIntervalBase::getEndTime(), BdbInterval::getObject(), BdbIntervalR::getRevision(), BdbInterval::getTag(), BdbInterval::getVersionTime(), hasAnyRevisedIntervalAsCloaseAs(), and hasAnyTopIntervalAsCloaseAs().

Referenced by purgeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::createCheckpoint const char *    theTLA,
const char *    theContName
 

Definition at line 865 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbStatus, copyIntervalContainer(), BdbCondDatabaseBase::findHistory(), BdbTime::getGmtSec(), BdbCondDatabaseBase::historyCPoint(), and rcsid.

Referenced by cmd_checkpoint().

BdbStatus BdbCondDatabaseMgr::createHistory const char *    theTLA,
const char *    theContName,
bool    makeContainerBackup = true
 

Definition at line 955 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbStatus, copyIntervalContainer(), BdbCondDatabaseBase::findHistory(), BdbCondDatabaseBase::findIntervalCont(), BdbCondDatabaseBase::getHistoryH(), BdbCondDatabaseBase::historyHCreate(), and rcsid.

Referenced by cmd_create_history().

BdbStatus BdbCondDatabaseMgr::createIntervalContainerLink const char *    theLinkTLA,
const char *    theLinkContName,
const char *    theOrigin,
const char *    theTLA,
const char *    theContName,
bool    verifyRealContainer
 

Definition at line 359 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::findIntervalCont(), BdbCondContainerLink::getLinkName(), BdbCondDatabaseBase::isLink(), BdbCondContainerLink::isValid(), BdbAbsBaseClustH::newContainerCreated(), removeIntervalContainerLink(), and BdbCustomClustH::updatedHint().

Referenced by cmd_create_link(), and BdbCondDdOprMergeLinks::operation().

BdbStatus BdbCondDatabaseMgr::deepCopy BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb
[private]
 

Definition at line 3425 of file BdbCondDatabaseMgr.cc.

References baselineOrTopmostCopy(), BdbcError, BdbcSuccess, BdbHandle, BdbStatus, copySubTree(), linkTopIntervalsInSubTree(), and locateBorderIntervals().

Referenced by copyIntervalContainer().

void BdbCondDatabaseMgr::deleteIntervalsInSubTree BdbHandle(BdbIntervalR)&    theIntervalH,
bool    deleteGeneObject = false
[private]
 

Definition at line 4122 of file BdbCondDatabaseMgr.cc.

References BdbDelete, BdbHandle, and BdbItr.

Referenced by mergeInnerFromBaseline(), mergeLeftFromBaseline(), and purgeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::deleteObjects const char *    theTLA,
const char *    theContName
 

Definition at line 756 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, deleteObjectsInSubTree(), BdbIntervalItr::next(), and BdbIntervalItr::setBaseline().

void BdbCondDatabaseMgr::deleteObjectsInSubTree BdbHandle(BdbInterval)&    theIntervalH [private]
 

Definition at line 4155 of file BdbCondDatabaseMgr.cc.

References BdbDelete, BdbHandle, BdbIsNull, BdbItr, BdbRef, BdbInterval::getObject(), and BdbInterval::setObject().

Referenced by deleteObjects().

BdbStatus BdbCondDatabaseMgr::evaluateIntervalContainer const char *    theTLA,
const char *    theContName,
bool &    exists
 

Definition at line 812 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, and BdbCondDatabaseBase::findIntervalCont().

Referenced by BdbCondDdOprImport::operation().

BdbStatus BdbCondDatabaseMgr::evaluateIntervalDatabase const char *    theTLA,
bool &    exists
 

Definition at line 1225 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcNoOpen, BdbcSuccess, BdbDBObj, BdbHandle, BdbStatus, COUT1, and BdbCondDatabaseBase::linkDatabaseName().

Referenced by BdbCondUaOprMerge::operation(), and BdbCondUaOprCreate::operation().

BdbStatus BdbCondDatabaseMgr::evaluateMergePoint BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
const BdbTime   theMergeTime,
BdbHandle(BdbIntervalR)&    theInLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theInRightBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutRightBaselineIntervalH
[private]
 

Definition at line 2086 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbIsNull, BdbStatus, locateBaselineIntervals(), BdbTime::minusInfinity, and BdbTime::plusInfinity.

Referenced by mergeIntervalContainers().

BdbStatus BdbCondDatabaseMgr::getClasses std::map< std::string, int > &    theDict,
const char *    theTLA,
const char *    theContName
 

Definition at line 1495 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbDatabase::firstInterval(), BdbDatabase::getTree(), BdbTime::minusInfinity, and BdbCondDatabaseBase::subsystemTLA().

Referenced by cmd_composites(), and cmd_print_classes().

BdbStatus BdbCondDatabaseMgr::getContainers std::map< std::string, std::vector< std::string > > &    theDict,
const std::vector< std::string > &    theKeywordsList,
const std::vector< std::string > &    theDetectorsList,
bool    theExcludeFlag
 

Definition at line 1402 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbStatus, getDatabasesForContainer(), BdbCondDatabaseBase::listAllClasses(), and selectDetectors().

Referenced by BdbCondDdOprReverseDatabases::operation().

BdbStatus BdbCondDatabaseMgr::getDatabases std::vector< std::string > &    theList,
const std::vector< std::string > &    theKeywordsList,
const std::vector< std::string > &    theDetectorsList,
bool    theExcludeFlag
 

Definition at line 1306 of file BdbCondDatabaseMgr.cc.

References BdbcSuccess, BdbRef, BdbStatus, BdbCondDatabaseBase::listAllClasses(), scanContainer(), and selectDetectors().

Referenced by BdbCondDdOprDatabases::operation().

BdbStatus BdbCondDatabaseMgr::getDatabasesForContainer std::vector< std::string > &    theList,
const char *    theTLA,
const char *    theContName
 

Definition at line 1257 of file BdbCondDatabaseMgr.cc.

References BdbcSuccess, BdbRef, BdbStatus, and scanContainer().

Referenced by getContainers(), and BdbCondDdOprDatabasesForOne::operation().

const char * BdbCondDatabaseMgr::getOID const BdbHandle(BdbPersObj)&    thePersObjH [private]
 

Definition at line 4844 of file BdbCondDatabaseMgr.cc.

Referenced by mergeIntervalContainers().

bool BdbCondDatabaseMgr::hasAnyRevisedIntervalAsCloaseAs const BdbHandle(BdbIntervalR)&    theIntervalH,
d_ULong    maxNumOfLayersUnderRevisedInterval
[private]
 

Definition at line 4720 of file BdbCondDatabaseMgr.cc.

References BdbHandle, BdbIsNull, BdbItr, and BdbRef.

Referenced by copyTopIntervalsInSubTree().

bool BdbCondDatabaseMgr::hasAnyTopIntervalAsCloaseAs const BdbHandle(BdbIntervalR)&    theIntervalH,
d_ULong    maxNumOfTopLayers
[private]
 

Definition at line 4640 of file BdbCondDatabaseMgr.cc.

References BdbHandle, and BdbItr.

Referenced by copyTopIntervalsInSubTree().

bool BdbCondDatabaseMgr::hasRevisedIntervalInSubTree const BdbHandle(BdbIntervalR)&    theIntervalH [private]
 

Definition at line 4808 of file BdbCondDatabaseMgr.cc.

References BdbHandle, BdbIsNull, BdbItr, and BdbRef.

Referenced by purgeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::initOutputContainer BdbObsoleteDatabase   theInDb,
const char *    theInContName,
BdbObsoleteDatabase   theOutDb,
const char *    theOutContName
[private]
 

Definition at line 3188 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcRead, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, copyRevisions(), BdbCondDatabaseBase::createIntervalCont(), BdbCondDatabaseBase::findIntervalCont(), BdbCondDatabaseBase::getRegistryH(), and BdbCondDatabaseBase::isLink().

Referenced by copyIntervalContainer().

BdbStatus BdbCondDatabaseMgr::linkTopIntervalsInSubTree const BdbHandle(BdbIntervalR)&    theIntervalH,
BdbHandle(BdbIntervalR)&    thePreviousIntervalH
[private]
 

Definition at line 3745 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, BdbIntervalR::setTopNext(), and BdbIntervalR::setTopPrevious().

Referenced by deepCopy(), mergeInnerFromBaseline(), mergeLeftFromBaseline(), and purgeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::locateBaselineIntervals BdbHandle(BdbIntervalR)&    theLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theRightBaselineIntervalH,
BdbObsoleteDatabase   theDb,
const BdbTime   theMergeTime
[private]
 

Definition at line 2157 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbStatus, BdbIntervalBase::beginTime(), BdbCondDatabaseBase::containerName(), BdbDatabase::getBaselineInterval(), and BdbIntervalR::getBaselinePrevious().

Referenced by evaluateMergePoint().

BdbStatus BdbCondDatabaseMgr::locateBorderIntervals BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbInterval)&    theInFirstIntervalH,
BdbHandle(BdbInterval)&    theInLastIntervalH,
BdbHandle(BdbInterval)&    theOutFirstIntervalH,
BdbHandle(BdbInterval)&    theOutLastIntervalH
[private]
 

Definition at line 3675 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbIsNull, BdbStatus, BdbCondDatabaseBase::containerName(), BdbDatabase::firstInterval(), and BdbDatabase::lastInterval().

Referenced by baselineOrTopmostCopy(), deepCopy(), mergeInnerFromBaseline(), and mergeLeftFromBaseline().

BdbStatus BdbCondDatabaseMgr::lockIntervalContainerLink const char *    theLinkTLA,
const char *    theLinkContName
 

Definition at line 589 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, and BdbCondDatabaseBase::findIntervalCont().

Referenced by cmd_lock_link().

BdbStatus BdbCondDatabaseMgr::matchRevision const BdbHandle(BdbIntervalR)&    theInNextIntervalH,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbCondRevision)&    theOutRevisionH
[private]
 

Definition at line 3718 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::getRegistryH(), BdbIntervalR::getRevision(), and BdbCondRevision::id().

Referenced by copySubTree().

BdbStatus BdbCondDatabaseMgr::mergeInnerFromBaseline BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbIntervalR)&    theInBeginLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theInBeginRightBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theInEndLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theInEndRightBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutBeginLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutBeginRightBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutEndLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutEndRightBaselineIntervalH
[private]
 

Definition at line 2464 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbStatus, BdbIntervalBase::beginTime(), BdbCondDatabaseBase::containerName(), copySubTree(), deleteIntervalsInSubTree(), BdbIntervalR::getBaselineNext(), BdbCondDatabaseBase::getBaselineRevisionH(), BdbCondDatabaseBase::getIntervalContH(), BdbDatabase::getTopmostInterval(), linkTopIntervalsInSubTree(), locateBorderIntervals(), and BdbIntervalR::setBaselinePrevious().

Referenced by mergeIntervalContainers().

BdbStatus BdbCondDatabaseMgr::mergeIntervalContainers const char *    theInTLA,
const char *    theInContName,
const char *    theOutTLA,
const char *    theOutContName,
const BdbTime   theBeginMergeTime,
const BdbTime   theEndMergeTime,
bool    mergeInner = true,
bool    verifyOnly = false
 

Definition at line 1893 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, compareRevisions(), evaluateMergePoint(), BdbCondDatabaseBase::findIntervalCont(), getOID(), BdbCondDatabaseBase::historyCMerge(), mergeInnerFromBaseline(), BdbTime::minusInfinity, BdbTime::plusInfinity, and rcsid.

BdbStatus BdbCondDatabaseMgr::mergeIntervalContainers const char *    theInTLA,
const char *    theInContName,
const char *    theOutTLA,
const char *    theOutContName,
const BdbTime   theMergeTime,
bool    mergeToLeft = true,
bool    verifyOnly = false
 

Definition at line 1736 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, compareRevisions(), evaluateMergePoint(), BdbCondDatabaseBase::findIntervalCont(), getOID(), BdbCondDatabaseBase::historyCMerge(), mergeLeftFromBaseline(), BdbTime::minusInfinity, and rcsid.

Referenced by cmd_merge(), cmd_merge2(), cmd_verify_merge(), cmd_verify_merge2(), BdbCondDdOprMergeIContainers2::operation(), and BdbCondDdOprMergeIContainers::operation().

BdbStatus BdbCondDatabaseMgr::mergeLeftFromBaseline BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
BdbHandle(BdbIntervalR)&    theInLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theInRightBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutLeftBaselineIntervalH,
BdbHandle(BdbIntervalR)&    theOutRightBaselineIntervalH
[private]
 

Definition at line 2279 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbIntervalBase::beginTime(), BdbCondDatabaseBase::containerName(), copySubTree(), deleteIntervalsInSubTree(), BdbIntervalR::getBaselinePrevious(), BdbCondDatabaseBase::getBaselineRevisionH(), BdbCondDatabaseBase::getIntervalContH(), BdbDatabase::getTopmostInterval(), linkTopIntervalsInSubTree(), locateBorderIntervals(), and BdbIntervalR::setBaselinePrevious().

Referenced by mergeIntervalContainers().

BdbStatus BdbCondDatabaseMgr::nanoCorrection const char *    theTLA,
const char *    theContName,
const BdbTime   theBeginTime,
const BdbTime   theEndTime,
std::vector< ooId > &    theFoundIntervalsList,
bool    verifyOnly = false
 

Definition at line 3039 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbStatus, BdbDatabase::firstInterval(), BdbTime::getGmtSec(), BdbCondDatabaseBase::historyNCorrection(), BdbDatabase::lastInterval(), nanoCorrectionInSubTree(), BdbIntervalItr::next(), rcsid, and BdbIntervalItr::setBaseline().

Referenced by cmd_nanocorrection(), and BdbCondDdOprNCorrection::operation().

void BdbCondDatabaseMgr::nanoCorrectionInSubTree const BdbHandle(BdbIntervalR)&    theBaseIntervalH,
std::vector< ooId > &    theFoundIntervalsList,
bool    verifyOnly
[private]
 

Definition at line 3148 of file BdbCondDatabaseMgr.cc.

References BdbHandle, BdbItr, BdbRef, BdbIntervalBase::beginTime(), BdbIntervalBase::endTime(), BdbTime::getGmtNsec(), BdbTime::getGmtSec(), BdbIntervalBase::setBeginTime(), and BdbIntervalBase::setEndTime().

Referenced by nanoCorrection().

BdbStatus BdbCondDatabaseMgr::purgeIntervalContainer const char *    theTLA,
const char *    theContName,
const BdbTime   theBeginTime,
const BdbTime   theEndTime,
bool    keepRevisedIntervals = true,
d_ULong    maxNumOfTopLayers = 1,
d_ULong    maxNumOfLayersUnderRevisedInterval = 1
 

Definition at line 2675 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, copySubSequenceOfBaselineIntervals(), copyTopIntervalsInSubTree(), deleteIntervalsInSubTree(), BdbDatabase::firstInterval(), BdbDatabase::getBaselineInterval(), BdbDatabase::getTopmostInterval(), hasRevisedIntervalInSubTree(), BdbCondDatabaseBase::historyCPurge(), BdbDatabase::lastInterval(), linkTopIntervalsInSubTree(), BdbTime::minusInfinity, BdbTime::plusInfinity, and rcsid.

Referenced by cmd_purge(), and BdbCondDdOprPurgeIContainers::operation().

BdbStatus BdbCondDatabaseMgr::removeHistory const char *    theTLA,
const char *    theContName
 

Definition at line 1075 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::findIntervalCont(), BdbCondDatabaseBase::getHistoryH(), BdbCondDatabaseBase::getLinkContH(), and BdbCondDatabaseBase::isLink().

Referenced by cmd_remove_history(), and cmd_removehistory().

BdbStatus BdbCondDatabaseMgr::removeIntervalContainer const char *    theTLA,
const char *    theContName,
bool    removeContainerLinkFlag = false
 

Definition at line 280 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbStatus, BdbCondDatabaseBase::findIntervalCont(), BdbCondDatabaseBase::isLink(), BdbCondDatabaseBase::isWriteLocked(), and removeIntervalContainerLink().

Referenced by cmd_delete(), cmd_delete_many(), BdbCondUaOprRemove::operation(), BdbCondUaOprDestroy::operation(), BdbCondUaOprCreate::operation(), BdbCondDdOprImport::operation(), and BdbCondDdOprExport::operation().

BdbStatus BdbCondDatabaseMgr::removeIntervalContainerLink const char *    theLinkTLA,
const char *    theLinkContName,
bool    removeIntervalContainerFlag = false
 

Definition at line 481 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbStatus, BdbCondDatabaseBase::findIntervalCont(), BdbCondDatabaseBase::isLink(), and BdbCondDatabaseBase::isWriteLocked().

Referenced by cmd_remove_link(), cmd_remove_link_many(), createIntervalContainerLink(), BdbCondDdOprMergeLinks::operation(), and removeIntervalContainer().

BdbStatus BdbCondDatabaseMgr::resetRevisions const char *    theTLA,
const char *    theContName
 

Definition at line 941 of file BdbCondDatabaseMgr.cc.

References BdbcError, and BdbStatus.

BdbStatus BdbCondDatabaseMgr::revisionCopy BdbObsoleteDatabase   theInDb,
BdbObsoleteDatabase   theOutDb,
d_ULong    theRevId
[private]
 

Definition at line 3651 of file BdbCondDatabaseMgr.cc.

References BdbCondRevision::BASELINE, baselineOrTopmostCopy(), BdbcError, and BdbStatus.

Referenced by copyIntervalContainer().

BdbStatus BdbCondDatabaseMgr::scanContainer std::map< std::string, BdbRef(ooDBObj)> &    theDict,
BdbObsoleteDatabase   theDb,
const char *    theContName
[private]
 

Definition at line 4267 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbIntervalBase::beginTime(), BdbIntervalBase::endTime(), BdbDatabase::firstInterval(), BdbInterval::getObject(), BdbDatabase::getTree(), BdbTime::minusInfinity, and BdbCondDatabaseBase::subsystemTLA().

Referenced by getDatabases(), and getDatabasesForContainer().

BdbStatus BdbCondDatabaseMgr::selectDetectors std::vector< std::string > &    theFinalDetectorsList,
const std::vector< std::string > &    theDetectorsList,
bool    theExcludeFlag
 

Definition at line 4183 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbDomainName::Conditions, BdbAuth::createGroupsItr(), BdbAuthItr::current(), BdbAuth::instance(), BdbAuthItr::isValid(), and BdbAuthItr::next().

Referenced by getContainers(), and getDatabases().

BdbStatus BdbCondDatabaseMgr::unlockIntervalContainerLink const char *    theLinkTLA,
const char *    theLinkContName
 

Definition at line 673 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbStatus, and BdbCondDatabaseBase::findIntervalCont().

Referenced by cmd_unlock_link().

BdbStatus BdbCondDatabaseMgr::validateContainer std::vector< BdbHandle(BdbInterval)> &    theList,
const char *    theTLA,
const char *    theContName
 

Definition at line 1624 of file BdbCondDatabaseMgr.cc.

References BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbDatabase::firstInterval(), BdbDatabase::getTree(), BdbTime::minusInfinity, and BdbCondDatabaseBase::subsystemTLA().

Referenced by cmd_validate().


Member Data Documentation

bool BdbCondDatabaseMgr::_supressVTableWarnings [private]
 

Definition at line 403 of file BdbCondDatabaseMgr.hh.


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002