#include <TestFunct.h>
Public Member Functions | |
bool | CreateMetaTable () |
bool | DropItem (std::string mappingName) |
bool | DropTables (std::string connStr) |
std::pair< int, int > | GetMetadata (std::string mappingName) |
bool | Read (std::string mappingName) |
bool | ReadAll () |
bool | ReadWithIOV (std::string mappingName, int seed, int runValidity) |
TestFunct () | |
bool | Write (std::string mappingName, int payloadID) |
bool | WriteWithIOV (std::string mappingName, int payloadID, int runValidity, bool updateTestMetadata) |
Public Attributes | |
cond::DbSession | s |
Definition at line 36 of file TestFunct.h.
TestFunct::TestFunct | ( | ) |
Definition at line 8 of file TestFunct.cc.
bool TestFunct::CreateMetaTable | ( | ) |
Definition at line 204 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, idDealer::description, cond::DbSession::nominalSchema(), s, python.IdGenerator::schema, cond::DbScopedTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and table.
bool TestFunct::DropItem | ( | std::string | mappingName | ) |
Definition at line 252 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::MetaData::deleteEntryByTag(), cond::DbSession::deleteObject(), cond::MetaData::getToken(), s, cond::DbScopedTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
bool TestFunct::DropTables | ( | std::string | connStr | ) |
Definition at line 231 of file TestFunct.cc.
References ora::SchemaUtils::cleanUp(), gather_cfg::cout, and cppFunctionSkipper::exception.
std::pair< int, int > TestFunct::GetMetadata | ( | std::string | mappingName | ) |
Definition at line 10 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::DbSession::nominalSchema(), o2o::query, run_regression::ret, s, cond::DbScopedTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
bool TestFunct::Read | ( | std::string | mappingName | ) |
Definition at line 41 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::MetaData::getToken(), cond::DbSession::getTypedObject(), cond::DbSession::nominalSchema(), o2o::query, run_regression::ret, s, cond::DbScopedTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
Referenced by ReadAll().
bool TestFunct::ReadAll | ( | ) |
Definition at line 116 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, i, cond::MetaData::listAllTags(), Read(), run_regression::ret, s, cond::DbScopedTransaction::start(), and cms::Exception::what().
bool TestFunct::ReadWithIOV | ( | std::string | mappingName, |
int | seed, | ||
int | runValidity | ||
) |
Definition at line 82 of file TestFunct.cc.
References cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::IOVProxy::end(), cond::IOVProxy::find(), cond::MetaData::getToken(), cond::DbSession::getTypedObject(), o2o::iov, run_regression::ret, s, cond::DbScopedTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
bool TestFunct::Write | ( | std::string | mappingName, |
int | payloadID | ||
) |
Definition at line 138 of file TestFunct.cc.
References cond::MetaData::addMapping(), cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::DbSession::createDatabase(), cond::DbSession::nominalSchema(), s, cond::DbScopedTransaction::start(), cond::DbSession::storeObject(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
bool TestFunct::WriteWithIOV | ( | std::string | mappingName, |
int | payloadID, | ||
int | runValidity, | ||
bool | updateTestMetadata | ||
) |
Definition at line 168 of file TestFunct.cc.
References cond::MetaData::addMapping(), cond::IOVEditor::append(), cond::DbScopedTransaction::commit(), gather_cfg::cout, cond::IOVEditor::create(), cond::DbSession::createDatabase(), o2o::iov, cond::DbSession::nominalSchema(), cond::runnumber, s, cond::DbScopedTransaction::start(), cond::DbSession::storeObject(), AlCaHLTBitMon_QueryRunRegistry::string, cond::IOVEditor::token(), and cms::Exception::what().
cond::DbSession TestFunct::s |
Definition at line 38 of file TestFunct.h.
Referenced by CreateMetaTable(), DropItem(), GetMetadata(), Read(), ReadAll(), ReadWithIOV(), Write(), and WriteWithIOV().