#include <Session.h>
Public Member Functions | |
void | addToMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, const std::string &destinationTag) |
bool | checkMigrationLog (const std::string &sourceAccount, const std::string &sourceTag, std::string &destinationTag) |
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 | 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) |
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 () |
virtual | ~Session () |
Private Member Functions | |
cond::Hash | storePayloadData (const std::string &payloadObjectType, const cond::Binary &payloadData, 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 | ||
) |
Definition at line 180 of file Session.cc.
References m_session.
bool Session::checkMigrationLog | ( | const std::string & | sourceAccount, |
const std::string & | sourceTag, | ||
std::string & | destinationTag | ||
) |
Definition at line 174 of file Session.cc.
References m_session.
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 186 of file Session.cc.
References m_session.
Referenced by PCLMetadataWriter::endRun(), and popcon::PopCon::initialize().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 190 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.
GTEditor Session::createGlobalTag | ( | const std::string & | name | ) |
Definition at line 127 of file Session.cc.
References idDealer::editor, m_session, and cond::persistency::throwException().
|
inline |
Definition at line 151 of file Session.h.
References ora::ClassUtils::demangledName().
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 135 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.
bool Session::existsDatabase | ( | ) |
Definition at line 71 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
bool Session::existsIov | ( | const std::string & | tag | ) |
Definition at line 88 of file Session.cc.
References m_session.
|
inline |
Definition at line 161 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 | ||
) |
Definition at line 163 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 170 of file Session.cc.
References m_session.
Referenced by fetchPayload(), cond::persistency::KeyList::load(), and storePayload().
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 195 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 142 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 149 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::BasePayloadProxy::loadTag(), and l1t::DataWriter::payloadToken().
|
inline |
Definition at line 155 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 156 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 CondDBESSource::fillTagCollectionFromGT(), DTKeyedConfigHandler::getNewObjects(), DTUserKeyedConfigHandler::getNewObjects(), 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().
|
private |
Definition at line 147 of file Session.h.
Referenced by addToMigrationLog(), checkMigrationLog(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), existsDatabase(), existsIov(), fetchPayloadData(), iovProxy(), isOraSession(), operator=(), readGlobalTag(), readIov(), and storePayloadData().
|
private |
Definition at line 148 of file Session.h.
Referenced by operator=(), and transaction().