|
|
Go to the documentation of this file.
7 namespace persistency {
38 : m_session(sessionImpl), m_transaction(*m_session) {}
57 return m_session->transaction->iovDbExists;
97 throwException(
"The specified tag \"" +
tag +
"\" already exist in the database.",
"Session::createIov");
109 throwException(
"The specified tag \"" +
tag +
"\" already exist in the database.",
"Session::createIov");
120 throwException(
"The specified tag \"" +
tag +
"\" already exist in the database.",
121 "Session::createIovForPayload");
124 throwException(
"The specified payloadId \"" + payloadHash +
"\" does not exist in the database.",
125 "Session::createIovForPayload");
150 throwException(
"The specified Global Tag \"" +
name +
"\" already exist in the database.",
151 "Session::createGlobalTag");
178 const std::pair<Binary, Binary>& payloadAndStreamerInfoData,
181 return m_session->iovSchema().payloadTable().insertIfNew(
182 payloadObjectType, payloadAndStreamerInfoData.first, payloadAndStreamerInfoData.second,
creationTime);
190 return m_session->iovSchema().payloadTable().select(payloadHash,
payloadType, payloadData, streamerInfoData);
195 throwException(
"The transaction is not active.",
"Session::getRunInfo");
203 throwException(
"The transaction is not active.",
"Session::getRunInfo");
206 ret.run =
m_session->runInfoSchema().runInfoTable().getLastInserted(
ret.start,
ret.end);
220 throwException(
"The session is not active.",
"Session::coralSession");
ret
prodAgent to be discontinued
void load(Time_t low, Time_t up)
bool existsIov(const std::string &tag)
void clearIov(const std::string &tag)
void start(bool readOnly=true)
GTProxy readGlobalTag(const std::string &name)
void rollbackTransaction()
void load(const std::string &tag)
void load(const std::string >Name)
cond::RunInfo_t getLastRun()
Transaction m_transaction
Transaction & m_transaction
RunInfoProxy getRunInfo(cond::Time_t start, cond::Time_t end)
IOVProxy readIov(const std::string &tag)
cond::Hash storePayloadData(const std::string &payloadObjectType, const std::pair< Binary, Binary > &payloadAndStreamerInfoData, const boost::posix_time::ptime &creationTime)
IOVEditor editIov(const std::string &tag)
Transaction(SessionImpl &session)
coral::ISchema & nominalSchema()
unsigned long long Time_t
std::string connectionString()
void startTransaction(bool readOnly=true)
GTEditor editGlobalTag(const std::string &name)
coral::ISessionProxy & coralSession()
bool fetchPayloadData(const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
IOVEditor createIovForPayload(const Hash &payloadHash, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
void load(const std::string >Name, const std::string &preFix="", const std::string &postFix="")
bool isTransactionActive(bool deep=true) const
Transaction & transaction()
void start(bool readOnly=true)
std::shared_ptr< SessionImpl > m_session
IOVEditor createIov(const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
void throwException(const std::string &message, const std::string &methodName)
bool existsGlobalTag(const std::string &name)
GTEditor createGlobalTag(const std::string &name)
Transaction & operator=(const Transaction &rhs)
RunInfoEditor editRunInfo()
TransactionScope(Transaction &transaction)
Session & operator=(const Session &rhs)
void load(const std::string &tag)