#include <Session.h>
Public Member Functions | |
void | addToMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, const std::string &destinationTag, cond::MigrationStatus status) |
bool | checkMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, std::string &destinationTag, cond::MigrationStatus &status) |
void | clearIov (const std::string &tag) |
void | close () |
std::string | connectionString () |
coral::ISessionProxy & | coralSession () |
void | createDatabase () |
GTEditor | createGlobalTag (const std::string &name) |
template<typename T > | |
IOVEditor | createIov (const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::OFFLINE) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::OFFLINE) |
IOVEditor | createIovForPayload (const Hash &payloadHash, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::OFFLINE) |
GTEditor | editGlobalTag (const std::string &name) |
IOVEditor | editIov (const std::string &tag) |
bool | existsDatabase () |
bool | existsGlobalTag (const std::string &name) |
bool | existsIov (const std::string &tag) |
template<typename T > | |
boost::shared_ptr< T > | fetchPayload (const cond::Hash &payloadHash) |
bool | fetchPayloadData (const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData) |
IOVProxy | iovProxy () |
bool | isOraSession () |
coral::ISchema & | nominalSchema () |
Session & | operator= (const Session &rhs) |
GTProxy | readGlobalTag (const std::string &name) |
GTProxy | readGlobalTag (const std::string &name, const std::string &preFix, const std::string &postFix) |
IOVProxy | readIov (const std::string &tag, bool full=false) |
Session () | |
Session (const std::shared_ptr< SessionImpl > &sessionImpl) | |
Session (const Session &rhs) | |
template<typename T > | |
cond::Hash | storePayload (const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time()) |
Transaction & | transaction () |
void | updateMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, cond::MigrationStatus status) |
virtual | ~Session () |
Private Member Functions | |
cond::Hash | storePayloadData (const std::string &payloadObjectType, const std::pair< Binary, Binary > &payloadAndStreamerInfoData, const boost::posix_time::ptime &creationTime) |
Private Attributes | |
std::shared_ptr< SessionImpl > | m_session |
Transaction | m_transaction |
Session::Session | ( | ) |
Definition at line 38 of file Session.cc.
|
explicit |
Definition at line 43 of file Session.cc.
Session::Session | ( | const Session & | rhs | ) |
Definition at line 48 of file Session.cc.
|
virtual |
Definition at line 53 of file Session.cc.
void Session::addToMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
const std::string & | destinationTag, | ||
cond::MigrationStatus | status | ||
) |
Definition at line 196 of file Session.cc.
References m_session.
bool Session::checkMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
std::string & | destinationTag, | ||
cond::MigrationStatus & | status | ||
) |
Definition at line 186 of file Session.cc.
References m_session.
void Session::clearIov | ( | const std::string & | tag | ) |
Definition at line 127 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyTag().
void Session::close | ( | void | ) |
Definition at line 62 of file Session.cc.
References m_session.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), DTUserKeyedConfigHandler::getNewObjects(), DTKeyedConfigHandler::getNewObjects(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
std::string Session::connectionString | ( | ) |
Definition at line 215 of file Session.cc.
References m_session.
Referenced by cond::persistency::compareTags(), cond::persistency::copyIov(), cond::persistency::copyTag(), PCLMetadataWriter::endRun(), cond::persistency::importIovs(), popcon::PopCon::initialize(), and cond::persistency::validateTag().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 219 of file Session.cc.
References m_session, and cond::persistency::throwException().
Referenced by nominalSchema().
void Session::createDatabase | ( | ) |
Definition at line 77 of file Session.cc.
References cond::persistency::SessionImpl::CREATE, and m_session.
Referenced by cond::persistency::copyTag(), and cond::persistency::importIovs().
GTEditor Session::createGlobalTag | ( | const std::string & | name | ) |
Definition at line 137 of file Session.cc.
References idDealer::editor, m_session, and cond::persistency::throwException().
|
inline |
Definition at line 178 of file Session.h.
References ora::ClassUtils::demangledName().
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), and cond::persistency::importIovs().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::OFFLINE |
||
) |
Definition at line 99 of file Session.cc.
References cond::persistency::SessionImpl::CREATE, idDealer::editor, m_session, and cond::persistency::throwException().
IOVEditor Session::createIovForPayload | ( | const Hash & | payloadHash, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::OFFLINE |
||
) |
Definition at line 108 of file Session.cc.
References cond::persistency::SessionImpl::CREATE, idDealer::editor, m_session, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
GTEditor Session::editGlobalTag | ( | const std::string & | name | ) |
Definition at line 145 of file Session.cc.
References idDealer::editor, cond::persistency::GTEditor::load(), and m_session.
IOVEditor Session::editIov | ( | const std::string & | tag | ) |
Definition at line 120 of file Session.cc.
References idDealer::editor, cond::persistency::IOVEditor::load(), and m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), and cond::persistency::importIovs().
bool Session::existsDatabase | ( | ) |
Definition at line 71 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
Referenced by cond::persistency::copyTag(), and cond::persistency::importIovs().
bool Session::existsGlobalTag | ( | const std::string & | name | ) |
Definition at line 132 of file Session.cc.
References m_session.
bool Session::existsIov | ( | const std::string & | tag | ) |
Definition at line 88 of file Session.cc.
References m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), and cond::persistency::importIovs().
|
inline |
Definition at line 188 of file Session.h.
References fetchPayloadData(), isOraSession(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), l1t::DataWriter::readObject(), and popcon::PopConSourceHandler< T >::Ref::Ref().
bool Session::fetchPayloadData | ( | const cond::Hash & | payloadHash, |
std::string & | payloadType, | ||
cond::Binary & | payloadData, | ||
cond::Binary & | streamerInfoData | ||
) |
Definition at line 174 of file Session.cc.
References m_session.
Referenced by cond::persistency::fetch(), fetchPayload(), and cond::persistency::KeyList::load().
IOVProxy Session::iovProxy | ( | ) |
Definition at line 93 of file Session.cc.
References m_session.
bool Session::isOraSession | ( | ) |
Definition at line 182 of file Session.cc.
References m_session.
Referenced by cond::persistency::fetch(), fetchPayload(), cond::persistency::KeyList::load(), and storePayload().
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 224 of file Session.cc.
References coralSession().
Referenced by DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), DTUserKeyedConfigHandler::getNewObjects(), and DTKeyedConfigHandler::getNewObjects().
Definition at line 56 of file Session.cc.
References m_session, and m_transaction.
GTProxy Session::readGlobalTag | ( | const std::string & | name | ) |
Definition at line 152 of file Session.cc.
References cond::persistency::GTProxy::load(), and m_session.
Referenced by CondDBESSource::fillTagCollectionFromGT().
GTProxy Session::readGlobalTag | ( | const std::string & | name, |
const std::string & | preFix, | ||
const std::string & | postFix | ||
) |
Definition at line 159 of file Session.cc.
References cond::persistency::GTProxy::load(), and m_session.
IOVProxy Session::readIov | ( | const std::string & | tag, |
bool | full = false |
||
) |
Definition at line 81 of file Session.cc.
References cond::persistency::IOVProxy::load(), and m_session.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), cond::persistency::importIovs(), cond::persistency::BasePayloadProxy::loadTag(), and l1t::DataWriter::payloadToken().
|
inline |
Definition at line 182 of file Session.h.
References ora::ClassUtils::demangledName(), isOraSession(), cond::serialize(), storePayloadData(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::createNewIOV(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriter::writeKeyList(), and cond::service::PoolDBOutputService::writeOne().
|
private |
Definition at line 166 of file Session.cc.
References cond::persistency::SessionImpl::CREATE, and m_session.
Referenced by storePayload().
Transaction & Session::transaction | ( | ) |
Definition at line 66 of file Session.cc.
References m_transaction.
Referenced by cond::persistency::copyIov(), cond::persistency::copyTag(), CondDBESSource::fillTagCollectionFromGT(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), cond::persistency::importIovs(), cond::persistency::KeyList::load(), cond::persistency::BasePayloadProxy::loadTag(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), l1t::DataWriter::payloadToken(), l1t::DataWriter::readObject(), l1t::WriterProxyT< Record, Type >::save(), cond::persistency::BasePayloadProxy::setIntervalFor(), and l1t::DataWriter::writeKeyList().
void Session::updateMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
cond::MigrationStatus | status | ||
) |
Definition at line 206 of file Session.cc.
References m_session, and cond::persistency::throwException().
|
private |
Definition at line 174 of file Session.h.
Referenced by addToMigrationLog(), checkMigrationLog(), clearIov(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), existsDatabase(), existsGlobalTag(), existsIov(), fetchPayloadData(), iovProxy(), isOraSession(), operator=(), readGlobalTag(), readIov(), storePayloadData(), and updateMigrationLog().
|
private |
Definition at line 175 of file Session.h.
Referenced by operator=(), and transaction().