CMS 3D CMS Logo

Namespaces | Classes | Enumerations | Functions
cond::persistency Namespace Reference

Namespaces

 GLOBAL_TAG
 
 GLOBAL_TAG_MAP
 
 IOV
 
 PAYLOAD
 
 RUN_INFO
 
 TAG
 
 TAG_LOG
 

Classes

struct  AttributeTypeName
 
struct  AttributeTypeName< boost::posix_time::ptime >
 
struct  AttributeTypeName< cond::Binary >
 
struct  AttributeTypeName< cond::SynchronizationType >
 
struct  AttributeTypeName< cond::TimeType >
 
class  BasePayloadProxy
 
class  BulkInserter
 
class  CondDBTransaction
 
class  CondGetter
 
class  ConnectionPool
 
struct  DefineQueryOutput
 
struct  DefineQueryOutput< boost::posix_time::ptime >
 
struct  DefineQueryOutput< cond::Binary >
 
struct  DefineQueryOutput< cond::SynchronizationType >
 
struct  DefineQueryOutput< cond::TimeType >
 
struct  DefineQueryOutput< std::array< char, n > >
 
class  DeleteBuffer
 
class  Exception
 Base exception class for the object to relational access. More...
 
struct  GetFromRow
 
struct  GetFromRow< boost::posix_time::ptime >
 
struct  GetFromRow< cond::Binary >
 
struct  GetFromRow< cond::SynchronizationType >
 
struct  GetFromRow< cond::TimeType >
 
struct  GetFromRow< std::array< char, n > >
 
class  GTEditor
 
class  GTEditorData
 
class  GTProxy
 
class  GTProxyData
 
class  GTSchema
 
class  IGTMapTable
 
class  IGTSchema
 
class  IGTTable
 
class  IIOVSchema
 
class  IIOVTable
 
struct  IOVComp
 
class  IOVEditor
 
class  IOVEditorData
 
class  IOVProxy
 
class  IOVProxyData
 
struct  IOVRunComp
 
class  IOVSchema
 
struct  IOVTimeComp
 
class  IPayloadMigrationTable
 
class  IPayloadTable
 
class  IRunInfoSchema
 
class  IRunInfoTable
 
class  ITagLogTable
 
class  ITagMigrationTable
 
class  ITagTable
 
class  ITransaction
 
class  KeyList
 
class  PayloadProxy
 
class  PayloadProxy< cond::persistency::KeyList >
 
class  PayloadReader
 
class  Query
 
class  QueryIterator
 
class  RowBuffer
 
class  RunInfoEditor
 
class  RunInfoEditorData
 
class  RunInfoProxy
 
class  RunInfoProxyData
 
class  RunInfoSchema
 
class  Session
 
class  SessionImpl
 
class  TableDescription
 
class  Transaction
 
class  TransactionScope
 
class  UpdateBuffer
 

Enumerations

enum  DbAuthenticationSystem { UndefinedAuthentication = 0, CondDbKey, CoralXMLFile }
 

Functions

std::string convertoToOracleConnection (const std::string &input)
 
bool copyIov (Session &session, const std::string &sourceTag, const std::string &destTag, cond::Time_t souceSince, cond::Time_t destSince, const std::string &description)
 
unsigned int countslash (const std::string &input)
 
template<typename T >
void f_add_attribute (coral::AttributeList &data, const std::string &attributeName, const T &param, bool init=true)
 
template<>
void f_add_attribute (coral::AttributeList &data, const std::string &attributeName, const cond::Binary &param, bool init)
 
template<>
void f_add_attribute (coral::AttributeList &data, const std::string &attributeName, const boost::posix_time::ptime &param, bool init)
 
template<>
void f_add_attribute (coral::AttributeList &data, const std::string &attributeName, const cond::TimeType &param, bool init)
 
template<>
void f_add_attribute (coral::AttributeList &data, const std::string &attributeName, const cond::SynchronizationType &param, bool init)
 
template<typename Column , typename P >
void f_add_column_data (coral::AttributeList &data, const P &param, bool init=true)
 
template<typename T >
void f_add_column_description (coral::TableDescription &table, const std::string &columnName, size_t size=0, bool notNull=true)
 
template<typename C1 , typename C2 >
void f_add_condition (std::string &whereClause, const std::string condition="=")
 
template<typename Column , typename P >
void f_add_condition_data (coral::AttributeList &data, std::string &whereClause, const P &value, const std::string condition="=")
 
std::pair< std::string, std::shared_ptr< void > > fetch (const cond::Hash &payloadId, Session &session)
 
std::pair< std::string, std::shared_ptr< void > > fetchIfExists (const cond::Hash &payloadId, Session &session, bool &exists)
 
std::pair< std::string, std::shared_ptr< void > > fetchOne (const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, std::shared_ptr< void > payloadPtr)
 
std::string fullyQualifiedTag (const std::string &tag, const std::string &connectionString)
 
std::pair< std::string, std::string > getConnectionParams (const std::string &connectionString, const std::string &transactionId, const std::string &signature)
 
std::string getConnectionProtocol (const std::string &connectionString)
 
cond::Hash import (Session &source, const cond::Hash &sourcePayloadId, const std::string &inputTypeName, const void *inputPtr, Session &destination)
 
size_t importIovs (const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, cond::Time_t begin, cond::Time_t end, const std::string &description, const std::string &editingNote, bool override, bool serialize, bool forceInsert)
 
cond::Hash importPayload (Session &sourceSession, const cond::Hash &sourcePayloadId, Session &destSession, bool reserialize)
 
bool iovSorter (const std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > &f, const std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > &s)
 
template<typename T , typename Arg1 >
bool is_same_any ()
 
template<typename T , typename Arg1 , typename Arg2 , typename... Args>
bool is_same_any ()
 
cond::Hash makeHash (const std::string &objectType, const cond::Binary &data)
 
std::tuple< std::string, std::string, std::string > parseConnectionString (const std::string &connectionString)
 
std::string parseFipConnectionString (const std::string &fipConnect)
 
std::pair< std::string, std::string > parseTag (const std::string &tag)
 
template<typename T >
std::vector< T >::const_iterator search (const cond::Time_t &val, const std::vector< T > &container)
 
template<>
cond::Hash Session::storePayload< std::string > (const std::string &payload, const boost::posix_time::ptime &creationTime)
 
template<typename T , typename P >
void static_assert_is_same_decayed ()
 
void throwException (const std::string &message, const std::string &methodName)
 

Enumeration Type Documentation

Enumerator
UndefinedAuthentication 
CondDbKey 
CoralXMLFile 

Definition at line 28 of file ConnectionPool.h.

Function Documentation

std::string cond::persistency::convertoToOracleConnection ( const std::string &  input)
inline

Definition at line 121 of file Utils.h.

References match(), patCandidatesForDimuonsSequences_cff::matches, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by CondDBESSource::CondDBESSource().

121  {
122  // leave the connection string unmodified for sqlite
123  if (input.find("sqlite") == 0 || input.find("oracle") == 0)
124  return input;
125 
126  //static const boost::regex trivial("oracle://(cms_orcon_adg|cms_orcoff_prep)/([_[:alnum:]]+?)");
127  static const boost::regex short_frontier("frontier://([[:alnum:]]+?)/([_[:alnum:]]+?)");
128  static const boost::regex long_frontier("frontier://((\\([-[:alnum:]]+?=[^\\)]+?\\))+)/([_[:alnum:]]+?)");
129  static const boost::regex long_frontier_serverurl("\\(serverurl=[^\\)]+?/([[:alnum:]]+?)\\)");
130 
131  static const std::map<std::string, std::string> frontierMap = {
132  {"PromptProd", "cms_orcon_adg"},
133  {"FrontierProd", "cms_orcon_adg"},
134  {"FrontierArc", "cms_orcon_adg"},
135  {"FrontierOnProd", "cms_orcon_adg"},
136  {"FrontierPrep", "cms_orcoff_prep"},
137  };
138 
139  boost::smatch matches;
140 
141  static const std::string technology("oracle://");
142  std::string service("");
143  std::string account("");
144 
145  bool match = false;
146  if (boost::regex_match(input, matches, short_frontier)) {
147  service = matches[1];
148  account = matches[2];
149  match = true;
150  }
151 
152  if (boost::regex_match(input, matches, long_frontier)) {
153  std::string frontier_config(matches[1]);
154  boost::smatch matches2;
155  if (not boost::regex_search(frontier_config, matches2, long_frontier_serverurl))
156  throwException("No serverurl in matched long frontier", "convertoToOracleConnection");
157  service = matches2[1];
158  account = matches[3];
159  match = true;
160  }
161 
162  if (!match)
163  throwException("Connection string " + input + " can't be converted to oracle connection.",
164  "convertoToOracleConnection");
165 
166  if (service == "FrontierArc") {
167  size_t len = account.size() - 5;
168  account = account.substr(0, len);
169  }
170 
171  auto it = frontierMap.find(service);
172  if (it == frontierMap.end())
173  throwException("Connection string can't be converted.", "convertoToOracleConnection");
174  service = it->second;
175 
176  return technology + service + "/" + account;
177  }
static std::string const input
Definition: EdmProvDump.cc:48
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
bool cond::persistency::copyIov ( Session session,
const std::string &  sourceTag,
const std::string &  destTag,
cond::Time_t  souceSince,
cond::Time_t  destSince,
const std::string &  description 
)

Definition at line 165 of file CondDBTools.cc.

References gather_cfg::cout, cond::persistency::Session::createIov(), cond::persistency::Session::editIov(), cond::persistency::IOVProxy::end(), cond::persistency::Session::existsIov(), cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), cond::persistency::IOVProxy::loadedSize(), AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::IOVEditor::payloadType(), cond::persistency::Session::readIov(), cond::persistency::IOVEditor::setDescription(), cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), cond::persistency::IOVEditor::timeType(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().

170  {
171  persistency::TransactionScope ssc(session.transaction());
172  ssc.start(false);
173  std::cout << " Loading source iov..." << std::endl;
174  persistency::IOVProxy p = session.readIov(sourceTag, true);
175  if (p.loadedSize() == 0) {
176  std::cout << " Tag contains 0 iovs." << std::endl;
177  return false;
178  } else {
179  std::cout << " Iov size:" << p.loadedSize() << " timeType:" << p.timeType() << " payloadObjectType=\""
180  << p.payloadObjectType() << "\"" << std::endl;
181  }
182 
183  auto iiov = p.find(sourceSince);
184  if (iiov == p.end()) {
185  std::cout << "ERROR: No Iov valid found for target time " << sourceSince << std::endl;
186  return false;
187  }
188 
189  persistency::IOVEditor editor;
190  if (session.existsIov(destTag)) {
191  if (!description.empty())
192  std::cout << " INFO. Destination Tag " << destTag
193  << " already exists. Provided description will be ignored." << std::endl;
194  editor = session.editIov(destTag);
195  if (editor.timeType() != p.timeType())
196  throwException("TimeType of the destination tag does not match with the source tag timeType.", "importIovs");
197  if (editor.payloadType() != p.payloadObjectType())
198  throwException("PayloadType of the destination tag does not match with the source tag payloadType.",
199  "importIovs");
200  } else {
201  editor = session.createIov(p.payloadObjectType(), destTag, p.timeType(), p.synchronizationType());
202  if (description.empty())
203  editor.setDescription("Created copying iovs from tag " + sourceTag);
204  else
205  editor.setDescription(description);
206  }
207 
208  editor.insert(destSince, (*iiov).payloadId);
209 
210  std::cout << " Flushing changes..." << std::endl;
211  editor.flush();
212  ssc.commit();
213  return true;
214  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
unsigned int cond::persistency::countslash ( const std::string &  input)

Definition at line 13 of file DbConnectionString.cc.

References KineDebug3::count().

Referenced by getConnectionParams().

13  {
14  unsigned int count = 0;
15  std::string::size_type slashpos(0);
16  while (slashpos != std::string::npos) {
17  slashpos = input.find('/', slashpos);
18  if (slashpos != std::string::npos) {
19  ++count;
20  // start next search after this word
21  slashpos += 1;
22  }
23  }
24  return count;
25  }
uint16_t size_type
static std::string const input
Definition: EdmProvDump.cc:48
template<typename T >
void cond::persistency::f_add_attribute ( coral::AttributeList &  data,
const std::string &  attributeName,
const T param,
bool  init = true 
)
inline

Definition at line 90 of file DbCore.h.

Referenced by f_add_column_data(), and f_add_condition_data().

93  {
94  if (init)
95  data.extend<T>(attributeName);
96  data[attributeName].data<T>() = param;
97  }
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
long double T
template<>
void cond::persistency::f_add_attribute ( coral::AttributeList &  data,
const std::string &  attributeName,
const cond::Binary param,
bool  init 
)
inline

Definition at line 100 of file DbCore.h.

References cond::Binary::get().

103  {
104  if (init)
105  data.extend<coral::Blob>(attributeName);
106  data[attributeName].bind(param.get());
107  }
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
const coral::Blob & get() const
Definition: Binary.cc:30
template<>
void cond::persistency::f_add_attribute ( coral::AttributeList &  data,
const std::string &  attributeName,
const boost::posix_time::ptime &  param,
bool  init 
)
inline

Definition at line 110 of file DbCore.h.

113  {
114  if (init)
115  data.extend<coral::TimeStamp>(attributeName);
116  data[attributeName].data<coral::TimeStamp>() = coral::TimeStamp(param);
117  }
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
template<>
void cond::persistency::f_add_attribute ( coral::AttributeList &  data,
const std::string &  attributeName,
const cond::TimeType param,
bool  init 
)
inline

Definition at line 120 of file DbCore.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and cond::time::timeTypeName().

123  {
124  if (init)
125  data.extend<std::string>(attributeName);
126  data[attributeName].data<std::string>() = cond::time::timeTypeName(param);
127  }
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::string timeTypeName(TimeType type)
Definition: Time.cc:19
template<>
void cond::persistency::f_add_attribute ( coral::AttributeList &  data,
const std::string &  attributeName,
const cond::SynchronizationType param,
bool  init 
)
inline

Definition at line 130 of file DbCore.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and cond::synchronizationTypeNames().

133  {
134  if (init)
135  data.extend<std::string>(attributeName);
136  data[attributeName].data<std::string>() = synchronizationTypeNames(param);
137  }
std::string synchronizationTypeNames(SynchronizationType type)
Definition: Types.cc:44
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
template<typename Column , typename P >
void cond::persistency::f_add_column_data ( coral::AttributeList &  data,
const P param,
bool  init = true 
)
inline

Definition at line 141 of file DbCore.h.

References f_add_attribute(), and Skims_PA_cff::name.

141  {
142  static_assert_is_same_decayed<typename Column::type, P>();
144  }
Definition: init.py:1
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void f_add_attribute(coral::AttributeList &data, const std::string &attributeName, const cond::SynchronizationType &param, bool init)
Definition: DbCore.h:130
template<typename T >
void cond::persistency::f_add_column_description ( coral::TableDescription &  table,
const std::string &  columnName,
size_t  size = 0,
bool  notNull = true 
)

Definition at line 227 of file DbCore.h.

References findQualityFiles::size.

230  {
231  table.insertColumn(columnName, AttributeTypeName<T>()(), size);
232  if (notNull)
233  table.setNotNullConstraint(columnName);
234  }
size
Write out results.
template<typename C1 , typename C2 >
void cond::persistency::f_add_condition ( std::string &  whereClause,
const std::string  condition = "=" 
)
inline

Definition at line 164 of file DbCore.h.

References goodZToMuMu_cfi::condition.

164  {
165  if (!whereClause.empty())
166  whereClause += " AND ";
167  whereClause += C1::fullyQualifiedName() + " " + condition + " " + C2::fullyQualifiedName() + " ";
168  }
template<typename Column , typename P >
void cond::persistency::f_add_condition_data ( coral::AttributeList &  data,
std::string &  whereClause,
const P value,
const std::string  condition = "=" 
)
inline

Definition at line 148 of file DbCore.h.

References goodZToMuMu_cfi::condition, f_add_attribute(), triggerObjects_cff::id, Skims_PA_cff::name, and relativeConstraints::value.

151  {
152  static_assert_is_same_decayed<typename Column::type, P>();
153  std::stringstream varId;
154  unsigned int id = data.size();
155  varId << Column::name << "_" << id;
156  if (!whereClause.empty())
157  whereClause += " AND ";
158  whereClause += Column::fullyQualifiedName() + " " + condition + " :" + varId.str() + " ";
159  f_add_attribute(data, varId.str(), value);
160  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void f_add_attribute(coral::AttributeList &data, const std::string &attributeName, const cond::SynchronizationType &param, bool init)
Definition: DbCore.h:130
std::pair< std::string, std::shared_ptr< void > > cond::persistency::fetch ( const cond::Hash payloadId,
Session session 
)

Definition at line 335 of file CondDBFetch.cc.

References data, fetchOne(), cond::persistency::Session::fetchPayloadData(), newFWLiteAna::found, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by tensorflow::NTSession::CheckFetch(), and importPayload().

335  {
336  std::shared_ptr<void> payloadPtr;
338  cond::Binary streamerInfo;
339  std::string payloadTypeName;
340  bool found = session.fetchPayloadData(payloadId, payloadTypeName, data, streamerInfo);
341  if (!found)
343  "Payload with id " + boost::lexical_cast<std::string>(payloadId) + " has not been found in the database.",
344  "fetch");
345  return fetchOne(payloadTypeName, data, streamerInfo, payloadPtr);
346  }
std::pair< std::string, std::shared_ptr< void > > fetchOne(const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, std::shared_ptr< void > payloadPtr)
Definition: CondDBFetch.cc:23
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
std::pair<std::string, std::shared_ptr<void> > cond::persistency::fetchIfExists ( const cond::Hash payloadId,
Session session,
bool &  exists 
)

Definition at line 25 of file CondDBImport.cc.

References data, fetchOne(), cond::persistency::Session::fetchPayloadData(), and AlCaHLTBitMon_QueryRunRegistry::string.

27  {
28  std::shared_ptr<void> payloadPtr;
30  cond::Binary streamerInfo;
31  std::string payloadTypeName;
32  exists = session.fetchPayloadData(payloadId, payloadTypeName, data, streamerInfo);
33  if (exists) {
34  return fetchOne(payloadTypeName, data, streamerInfo, payloadPtr);
35  } else
36  return std::make_pair(std::string(""), std::shared_ptr<void>());
37  }
std::pair< std::string, std::shared_ptr< void > > fetchOne(const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, std::shared_ptr< void > payloadPtr)
Definition: CondDBFetch.cc:23
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::pair< std::string, std::shared_ptr< void > > cond::persistency::fetchOne ( const std::string &  payloadTypeName,
const cond::Binary data,
const cond::Binary streamerInfo,
std::shared_ptr< void >  payloadPtr 
)

Definition at line 23 of file CondDBFetch.cc.

References data, FETCH_PAYLOAD_CASE, match(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by fetch(), and fetchIfExists().

26  {
27  bool match = false;
29  FETCH_PAYLOAD_CASE(std::vector<unsigned long long>)
178  FETCH_PAYLOAD_CASE(JME::JetResolutionObject)
217  FETCH_PAYLOAD_CASE(l1t::CaloParams)
218  FETCH_PAYLOAD_CASE(l1t::CaloConfig)
233  FETCH_PAYLOAD_CASE(lumi::LumiSectionData)
238  FETCH_PAYLOAD_CASE(PhysicsTools::Calibration::MVAComputerContainer)
247  //FETCH_PAYLOAD_CASE( PerformancePayload )
302  FETCH_PAYLOAD_CASE(cond::BaseKeyed)
313 
314  //
315  if (payloadTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
316  payloadPtr = deserialize<PhysicsTools::Calibration::Histogram3D<double, double, double, double> >(
317  payloadTypeName, data, streamerInfo);
318  match = true;
319  }
320  if (payloadTypeName == "PhysicsTools::Calibration::Histogram2D<double,double,double>") {
321  payloadPtr = deserialize<PhysicsTools::Calibration::Histogram2D<double, double, double> >(
322  payloadTypeName, data, streamerInfo);
323  match = true;
324  }
325  if (payloadTypeName == "std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
326  payloadPtr = deserialize<std::vector<unsigned long long> >(payloadTypeName, data, streamerInfo);
327  match = true;
328  }
329 
330  if (!match)
331  throwException("Payload type \"" + payloadTypeName + "\" is unknown.", "fetch");
332  return std::make_pair(payloadTypeName, payloadPtr);
333  }
#define FETCH_PAYLOAD_CASE(TYPENAME)
Definition: CondDBFetch.cc:3
Definition: ESGain.h:7
delete x;
Definition: CaloConfig.h:22
Definition: DTT0.h:48
Histogram3D< double > HistogramD3D
Definition: Histogram3D.h:184
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
Channel-mask mapping.
Category structure: ranges associated with QGLikelihood histograms.
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
Definition: plugin.cc:23
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Collection of optical functions for two crossing angle values and various scoring planes...
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
The mapping between FramePosition and ROCInfo.
std::string cond::persistency::fullyQualifiedTag ( const std::string &  tag,
const std::string &  connectionString 
)

Definition at line 8 of file GTProxy.cc.

Referenced by CondDBESSource::CondDBESSource().

std::pair< std::string, std::string > cond::persistency::getConnectionParams ( const std::string &  connectionString,
const std::string &  transactionId,
const std::string &  signature 
)

Definition at line 39 of file DbConnectionString.cc.

References l1RCTOmdsFedVectorProducer_cfi::connectionString, countslash(), getConnectionProtocol(), edm::Service< T >::isAvailable(), cmsLHEtoEOSManager::l, edm::SiteLocalConfig::lookupCalibConnect(), parseFipConnectionString(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().

Referenced by cond::persistency::ConnectionPool::createCoralSession().

41  {
42  if (connectionString.empty())
43  cond::throwException("The connection string is empty.", "getConnectionParams");
45  std::string finalConn = connectionString;
46  std::string refreshConn("");
47  if (protocol == "frontier") {
48  std::string protocol("frontier://");
49  std::string::size_type fpos = connectionString.find(protocol);
50  unsigned int nslash = countslash(connectionString.substr(protocol.size(), connectionString.size() - fpos));
51  if (nslash == 1) {
52  edm::Service<edm::SiteLocalConfig> localconfservice;
53  if (!localconfservice.isAvailable()) {
54  cond::throwException("edm::SiteLocalConfigService is not available", "getConnectionParams");
55  }
56  finalConn = localconfservice->lookupCalibConnect(connectionString);
57  }
58  if (!transactionId.empty()) {
59  size_t l = finalConn.rfind('/');
60  finalConn.insert(l, "(freshkey=" + transactionId + ')');
61  }
62 
63  //When the signature parameter is set to sig, FroNTier requests that the server sends digital signatures on every response.
64  //We test here that the signature string, if defined, is actually set to sig, otherwise we throw an exception
65  std::string signatureParameter("sig");
66  if (!signature.empty()) {
67  if (signature == signatureParameter) {
68  std::string::size_type s = finalConn.rfind('/');
69  finalConn.insert(s, "(security=" + signature + ')');
70  } else {
71  cond::throwException("The FroNTier security option is invalid.", "getConnectionParams");
72  }
73  }
74 
75  std::string::size_type startRefresh = finalConn.find("://");
76  if (startRefresh != std::string::npos) {
77  startRefresh += 3;
78  }
79  std::string::size_type endRefresh = finalConn.rfind("/", std::string::npos);
80  if (endRefresh == std::string::npos) {
81  refreshConn = finalConn;
82  } else {
83  refreshConn = finalConn.substr(startRefresh, endRefresh - startRefresh);
84  if (refreshConn.substr(0, 1) != "(") {
85  //if the connect string is not a complicated parenthesized string,
86  // an http:// needs to be at the beginning of it
87  refreshConn.insert(0, "http://");
88  }
89  }
90  } else if (protocol == "sqlite_fip") {
92  }
93  return std::make_pair(finalConn, refreshConn);
94  }
virtual std::string const lookupCalibConnect(std::string const &input) const =0
std::string getConnectionProtocol(const std::string &connectionString)
Definition: Utils.h:87
std::string parseFipConnectionString(const std::string &fipConnect)
uint16_t size_type
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:18
bool isAvailable() const
Definition: Service.h:40
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined signature
Definition: Activities.doc:4
unsigned int countslash(const std::string &input)
std::string cond::persistency::getConnectionProtocol ( const std::string &  connectionString)
inline

Definition at line 87 of file Utils.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by getConnectionParams(), and parseConnectionString().

87  {
88  size_t techEnd = connectionString.find(':');
89  if (techEnd == std::string::npos)
90  throwException("Could not resolve the connection protocol on " + connectionString + ".",
91  "getConnectionProtocol");
92  std::string technology = connectionString.substr(0, techEnd);
93  return technology;
94  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
cond::Hash cond::persistency::import ( Session source,
const cond::Hash sourcePayloadId,
const std::string &  inputTypeName,
const void *  inputPtr,
Session destination 
)

Definition at line 39 of file CondDBImport.cc.

References HLTMuonOfflineAnalyzer_cff::destination, IMPORT_PAYLOAD_CASE, match(), getGTfromDQMFile::obj, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by edm::python3::initializePyBind11Module(), edm::python::initializePyBind11Module(), PyBind11ProcessDesc::prepareToRead(), cmspython3::PyBind11ProcessDesc::prepareToRead(), edm::cmspybind11_p3::readPSetsFrom(), and edm::cmspybind11::readPSetsFrom().

43  {
44  cond::Hash payloadId("");
45  bool newInsert = false;
46  bool match = false;
47  if (inputPtr) {
49  IMPORT_PAYLOAD_CASE(std::vector<unsigned long long>)
196  IMPORT_PAYLOAD_CASE(JME::JetResolutionObject)
235  IMPORT_PAYLOAD_CASE(l1t::CaloParams)
236  IMPORT_PAYLOAD_CASE(l1t::CaloConfig)
251  if (inputTypeName == "L1TriggerKeyList") {
252  match = true;
253  throwException("Import of \"L1TriggerKeyList\" type payloads is not supported.", "import");
254  }
255  //IMPORT_PAYLOAD_CASE( L1TriggerKeyList )
263  IMPORT_PAYLOAD_CASE(PhysicsTools::Calibration::MVAComputerContainer)
270  //IMPORT_PAYLOAD_CASE( PerformancePayload )
328  IMPORT_PAYLOAD_CASE(cond::BaseKeyed)
338  if (inputTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>") {
339  match = true;
342  payloadId = destination.storePayload(obj, boost::posix_time::microsec_clock::universal_time());
343  }
344  if (inputTypeName == "PhysicsTools::Calibration::Histogram2D<double,double,double>") {
345  match = true;
348  payloadId = destination.storePayload(obj, boost::posix_time::microsec_clock::universal_time());
349  }
350  if (inputTypeName == "std::vector<unsignedlonglong,std::allocator<unsignedlonglong>>") {
351  match = true;
352  const std::vector<unsigned long long>& obj = *static_cast<const std::vector<unsigned long long>*>(inputPtr);
353  payloadId = destination.storePayload(obj, boost::posix_time::microsec_clock::universal_time());
354  }
355 
356  if (!match)
357  throwException("Payload type \"" + inputTypeName + "\" is unknown.", "import");
358  }
359  return payloadId;
360  }
#define IMPORT_PAYLOAD_CASE(TYPENAME)
Definition: CondDBImport.cc:4
Definition: ESGain.h:7
delete x;
Definition: CaloConfig.h:22
Definition: DTT0.h:48
Histogram3D< double > HistogramD3D
Definition: Histogram3D.h:184
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
Channel-mask mapping.
std::string Hash
Definition: Types.h:43
Category structure: ranges associated with QGLikelihood histograms.
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
Definition: plugin.cc:23
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Collection of optical functions for two crossing angle values and various scoring planes...
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
The mapping between FramePosition and ROCInfo.
size_t cond::persistency::importIovs ( const std::string &  sourceTag,
Session sourceSession,
const std::string &  destTag,
Session destSession,
cond::Time_t  begin,
cond::Time_t  end,
const std::string &  description,
const std::string &  editingNote,
bool  override,
bool  serialize,
bool  forceInsert 
)

Definition at line 43 of file CondDBTools.cc.

References begin, cond::persistency::IOVProxy::begin(), cond::persistency::Session::connectionString(), gather_cfg::cout, cond::persistency::Session::createDatabase(), cond::persistency::Session::createIov(), Calorimetry_cff::dp, cond::persistency::Session::editIov(), end, cond::persistency::IOVProxy::end(), cond::persistency::Session::existsDatabase(), cond::persistency::Session::existsIov(), cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVProxy::getInterval(), importPayload(), cond::persistency::IOVEditor::insert(), cond::persistency::Session::iovProxy(), cond::persistency::IOVProxy::loadedSize(), cond::persistency::IOVProxy::loadRange(), AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::IOVEditor::payloadType(), cond::persistency::Session::readIov(), cond::persistency::IOVEditor::setDescription(), writeEcalDQMStatus::since, optionsL1T::skip, cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), cond::persistency::IOVEditor::timeType(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().

53  {
54  persistency::TransactionScope ssc(sourceSession.transaction());
55  ssc.start();
56  std::cout << " Loading source iov..." << std::endl;
57  persistency::IOVProxy p = sourceSession.readIov(sourceTag, true);
58  if (p.loadedSize() == 0) {
59  std::cout << " Tag contains 0 iovs." << std::endl;
60  return 0;
61  } else {
62  std::cout << " Iov size:" << p.loadedSize() << " timeType:" << p.timeType() << " payloadObjectType=\""
63  << p.payloadObjectType() << "\"" << std::endl;
64  }
65  if ((*p.begin()).since > begin)
66  begin = (*p.begin()).since;
67  if (end < begin) {
68  std::cout << " No Iov in the selected range." << std::endl;
69  return 0;
70  }
71  persistency::IOVEditor editor;
72  persistency::TransactionScope dsc(destSession.transaction());
73  dsc.start(false);
74  bool exists = false;
75  if (!destSession.existsDatabase()) {
76  destSession.createDatabase();
77  } else {
78  exists = destSession.existsIov(destTag);
79  }
80  persistency::IOVProxy dp;
81  if (exists) {
82  dp = destSession.readIov(destTag);
83  editor = destSession.editIov(destTag);
84  if (!description.empty())
85  std::cout << " INFO. Destination Tag " << destTag
86  << " already exists. Provided description will be ignored." << std::endl;
87  if (editor.timeType() != p.timeType())
88  throwException("TimeType of the destination tag does not match with the source tag timeType.", "importIovs");
89  if (editor.payloadType() != p.payloadObjectType())
90  throwException("PayloadType of the destination tag does not match with the source tag payloadType.",
91  "importIovs");
92  } else {
93  editor = destSession.createIov(p.payloadObjectType(), destTag, p.timeType(), p.synchronizationType());
94  if (description.empty())
95  editor.setDescription("Created copying tag " + sourceTag + " from " + sourceSession.connectionString());
96  else
97  editor.setDescription(description);
98  }
99  size_t niovs = 0;
100  std::set<cond::Hash> pids;
101  std::set<cond::Time_t> sinces;
102  auto iiov = p.find(begin);
103  cond::Time_t newSince = begin;
104  while (iiov != p.end()) {
105  // skip duplicated sinces
106  if (sinces.find(newSince) != sinces.end()) {
107  std::cout << " WARNING. Skipping duplicated since=" << newSince << std::endl;
108  continue;
109  }
110  // make sure that we import the payload _IN_USE_
111  auto usedIov = p.getInterval(newSince);
112  cond::Hash ph = importPayload(sourceSession, usedIov.payloadId, destSession, reserialize);
113  pids.insert(ph);
114  bool skip = false;
115  if (exists) {
116  // don't insert if the same entry is already there...
117  auto ie = dp.find(newSince);
118  if (ie != dp.end()) {
119  if (((*ie).since == newSince) && ((*ie).payloadId == usedIov.payloadId)) {
120  skip = true;
121  }
122  }
123  }
124  if (!skip) {
125  editor.insert(newSince, ph);
126  sinces.insert(newSince);
127  niovs++;
128  if (niovs && (niovs % 1000 == 0))
129  std::cout << " Total of iov inserted: " << niovs << " payloads: " << pids.size() << std::endl;
130  }
131  iiov++;
132  if (iiov == p.end() || (*iiov).since > end) {
133  break;
134  } else {
135  newSince = (*iiov).since;
136  }
137  }
138  if (exists && override) {
139  std::cout << " Adding overlying iovs..." << std::endl;
140  persistency::IOVProxy dp;
141  dp = destSession.iovProxy();
142  dp.loadRange(destTag, begin, end);
143  std::set<cond::Time_t> extraSinces;
144  for (auto iov : dp) {
145  auto siov = p.getInterval(iov.since);
146  if (siov.since != iov.since) {
147  if (extraSinces.find(iov.since) == extraSinces.end()) {
148  editor.insert(iov.since, siov.payloadId);
149  extraSinces.insert(iov.since);
150  niovs++;
151  if (niovs && (niovs % 1000 == 0))
152  std::cout << " Total of iov inserted: " << niovs << " payloads: " << pids.size() << std::endl;
153  }
154  }
155  }
156  }
157  std::cout << " Total of iov inserted: " << niovs << " payloads: " << pids.size() << std::endl;
158  std::cout << " Flushing changes..." << std::endl;
159  editor.flush(editingNote, forceInsert);
160  dsc.commit();
161  ssc.commit();
162  return niovs;
163  }
unsigned long long Time_t
Definition: Time.h:14
std::string Hash
Definition: Types.h:43
#define end
Definition: vmac.h:39
cond::Hash importPayload(Session &sourceSession, const cond::Hash &sourcePayloadId, Session &destSession, bool reserialize)
Definition: CondDBTools.cc:16
#define begin
Definition: vmac.h:32
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
cond::Hash cond::persistency::importPayload ( Session sourceSession,
const cond::Hash sourcePayloadId,
Session destSession,
bool  reserialize 
)

Definition at line 16 of file CondDBTools.cc.

References fetch(), cond::persistency::Session::fetchPayloadData(), fileCollector::now, HLT_2018_cff::payloadType, cond::persistency::Session::storePayloadData(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().

Referenced by importIovs().

19  {
20  if (reserialize) {
21  std::pair<std::string, std::shared_ptr<void> > readBackPayload = fetch(sourcePayloadId, sourceSession);
22  return import(sourceSession, sourcePayloadId, readBackPayload.first, readBackPayload.second.get(), destSession);
23  } else {
25  cond::Binary payloadData;
26  cond::Binary streamerInfoData;
27  if (!sourceSession.fetchPayloadData(sourcePayloadId, payloadType, payloadData, streamerInfoData)) {
28  cond::throwException("Payload with hash" + sourcePayloadId + " has not been found in the source database.",
29  "importPayload");
30  }
31  boost::posix_time::ptime now = boost::posix_time::microsec_clock::universal_time();
32  return destSession.storePayloadData(payloadType, std::make_pair(payloadData, streamerInfoData), now);
33  }
34  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:18
std::pair< std::string, std::shared_ptr< void > > fetch(const cond::Hash &payloadId, Session &session)
Definition: CondDBFetch.cc:335
bool cond::persistency::iovSorter ( const std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > &  f,
const std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > &  s 
)

Definition at line 151 of file IOVEditor.cc.

References f.

Referenced by cond::persistency::IOVEditor::flush().

152  {
153  return std::get<0>(f) < std::get<0>(s);
154  }
double f[11][100]
template<typename T , typename Arg1 >
bool cond::persistency::is_same_any ( )

Definition at line 237 of file DbCore.h.

References relativeConstraints::value.

template<typename T , typename Arg1 , typename Arg2 , typename... Args>
bool cond::persistency::is_same_any ( )

Definition at line 242 of file DbCore.h.

242  {
243  return is_same_any<T, Arg1>() || is_same_any<T, Arg2, Args...>();
244  };
cond::Hash cond::persistency::makeHash ( const std::string &  objectType,
const cond::Binary data 
)

Definition at line 10 of file IOVSchema.cc.

References cond::Binary::data(), cond::hash, mps_fire::i, cond::Binary::size(), throwException(), and createJobs::tmp.

Referenced by cond::persistency::PAYLOAD::Table::insertIfNew().

10  {
11  SHA_CTX ctx;
12  if (!SHA1_Init(&ctx)) {
13  throwException("SHA1 initialization error.", "IOVSchema::makeHash");
14  }
15  if (!SHA1_Update(&ctx, objectType.c_str(), objectType.size())) {
16  throwException("SHA1 processing error (1).", "IOVSchema::makeHash");
17  }
18  if (!SHA1_Update(&ctx, data.data(), data.size())) {
19  throwException("SHA1 processing error (2).", "IOVSchema::makeHash");
20  }
21  unsigned char hash[SHA_DIGEST_LENGTH];
22  if (!SHA1_Final(hash, &ctx)) {
23  throwException("SHA1 finalization error.", "IOVSchema::makeHash");
24  }
25 
26  char tmp[SHA_DIGEST_LENGTH * 2 + 1];
27  // re-write bytes in hex
28  for (unsigned int i = 0; i < 20; i++) {
29  ::sprintf(&tmp[i * 2], "%02x", hash[i]);
30  }
31  tmp[20 * 2] = 0;
32  return tmp;
33  }
size_t size() const
Definition: Binary.cc:48
const void * data() const
Definition: Binary.cc:37
tmp
align.sh
Definition: createJobs.py:716
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
std::tuple<std::string, std::string, std::string> cond::persistency::parseConnectionString ( const std::string &  connectionString)
inline

Definition at line 96 of file Utils.h.

References getConnectionProtocol(), serviceName, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().

Referenced by CondDBESSource::CondDBESSource(), and CondDBESSource::fillTagCollectionFromGT().

96  {
99  std::string databaseName("");
100  if (protocol == "sqlite" || protocol == "sqlite_file" || protocol == "sqlite_fip") {
101  databaseName = connectionString.substr(protocol.size() + 1);
102  } else if (protocol == "oracle" || protocol == "frontier") {
103  size_t ptr = protocol.size() + 1;
104  if (connectionString.substr(ptr, 2) != "//")
106  "Connection string " + connectionString + " is invalid format for technology \"" + protocol + "\".",
107  "parseConnectionString");
108  ptr += 2;
109  size_t serviceEnd = connectionString.find('/', ptr);
110  if (serviceEnd == std::string::npos)
111  throwException("Connection string " + connectionString + " is invalid.", "parseConnectionString");
112  serviceName = connectionString.substr(ptr, serviceEnd - ptr);
113  ptr = serviceEnd + 1;
114  databaseName = connectionString.substr(ptr);
115  } else
116  throwException("Technology " + protocol + " is not known.", "parseConnectionString");
117 
118  return std::make_tuple(protocol, serviceName, databaseName);
119  }
std::string getConnectionProtocol(const std::string &connectionString)
Definition: Utils.h:87
static const std::string serviceName
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
std::string cond::persistency::parseFipConnectionString ( const std::string &  fipConnect)

Definition at line 27 of file DbConnectionString.cc.

References DBConfiguration_cff::connect, edm::FileInPath::fullPath(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by getConnectionParams().

27  {
28  std::string connect("sqlite_file:");
29  std::string::size_type pos = fipConnect.find(':');
30  std::string fipLocation = fipConnect.substr(pos + 1);
31  edm::FileInPath fip(fipLocation);
32  connect.append(fip.fullPath());
33  return connect;
34  }
uint16_t size_type
std::pair< std::string, std::string > cond::persistency::parseTag ( const std::string &  tag)

Definition at line 14 of file GTProxy.cc.

References AlCaHLTBitMon_QueryRunRegistry::string, and OrderedSet::t.

Referenced by CondDBESSource::CondDBESSource(), and CondDBESSource::setIntervalFor().

14  {
15  std::string pfn("");
16  std::string t(tag);
17  size_t pos = tag.rfind("[");
18  if (pos != std::string::npos && tag.size() >= pos + 2) {
19  if (tag[pos - 1] == '@' && tag[tag.size() - 1] == ']') {
20  pfn = tag.substr(pos + 1, tag.size() - pos - 2);
21  t = tag.substr(0, pos - 1);
22  }
23  }
24  return std::make_pair(t, pfn);
25  }
template<typename T >
std::vector<T>::const_iterator cond::persistency::search ( const cond::Time_t val,
const std::vector< T > &  container 
)
template<>
cond::Hash cond::persistency::Session::storePayload< std::string > ( const std::string &  payload,
const boost::posix_time::ptime &  creationTime 
)
inline

Definition at line 210 of file Session.h.

References MillePedeFileConverter_cfg::e, runTheMatrix::ret, cond::serialize(), AlCaHLTBitMon_QueryRunRegistry::string, throwException(), and cms::Exception::what().

211  {
212  std::string payloadObjectType("std::string");
213  cond::Hash ret;
214  try {
215  ret = storePayloadData(payloadObjectType, serialize(payload), creationTime);
216  } catch (const cond::persistency::Exception& e) {
217  std::string em(e.what());
218  throwException("Payload of type " + payloadObjectType + " could not be stored. " + em, "Session::storePayload");
219  }
220  return ret;
221  }
Base exception class for the object to relational access.
Definition: Exception.h:11
std::pair< Binary, Binary > serialize(const T &payload)
Definition: Serialization.h:66
ret
prodAgent to be discontinued
char const * what() const override
Definition: Exception.cc:103
std::string Hash
Definition: Types.h:43
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
template<typename T , typename P >
void cond::persistency::static_assert_is_same_decayed ( )
inline

Definition at line 83 of file DbCore.h.

83  {
84  static_assert(std::is_same<typename std::decay<T>::type, typename std::decay<P>::type>::value,
85  "Parameter types don't match with the RowBuffer types");
86  };
type
Definition: HCALResponse.h:21
Definition: value.py:1
void cond::persistency::throwException ( const std::string &  message,
const std::string &  methodName 
)

Definition at line 12 of file Exception.cc.

References cond::persistency::Exception::Exception().

Referenced by L1CondDBPayloadWriterExt::analyze(), L1CondDBIOVWriterExt::analyze(), L1CondDBIOVWriter::analyze(), L1CondDBPayloadWriter::analyze(), cond::service::PoolDBOutputService::appendSinceTime(), MillePedeAlignmentAlgorithm::beginRun(), cond::persistency::RunInfoEditor::checkTransaction(), cond::persistency::GTEditor::checkTransaction(), cond::persistency::IOVEditor::checkTransaction(), cond::persistency::RunInfoProxy::checkTransaction(), cond::persistency::GTProxy::checkTransaction(), cond::persistency::IOVProxy::checkTransaction(), convertoToOracleConnection(), copyIov(), cond::persistency::Session::coralSession(), cond::persistency::GLOBAL_TAG::Table::create(), cond::persistency::TAG::Table::create(), cond::persistency::RUN_INFO::Table::create(), cond::persistency::GLOBAL_TAG_MAP::Table::create(), cond::persistency::PAYLOAD::Table::create(), cond::persistency::IOV::Table::create(), cond::persistency::TAG_LOG::Table::create(), cond::persistency::Session::createGlobalTag(), cond::persistency::Session::createIov(), cond::persistency::Session::createIovForPayload(), cond::service::PoolDBOutputService::createNewIOV(), cond::persistency::Query< Types... >::currentRow(), fetch(), fetchOne(), cond::persistency::Session::fetchPayload(), cond::persistency::RunInfoEditor::flush(), cond::persistency::GTEditor::flush(), cond::persistency::IOVEditor::flush(), cond::persistency::RunInfoProxy::get(), getConnectionProtocol(), cond::persistency::IOVProxy::getInterval(), cond::persistency::IOVProxy::getMetadata(), cond::persistency::Session::getRunInfo(), cond::persistency::KeyList::getUsingIndex(), import(), importIovs(), MillePedeAlignmentAlgorithm::initialize(), cond::persistency::GTEditor::load(), cond::persistency::GTProxy::load(), cond::persistency::IOVProxy::load(), cond::persistency::KeyList::loadFromDB(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), cond::persistency::IOVProxy::loadRange(), makeHash(), cond::persistency::Query< Types... >::next(), cond::persistency::SessionImpl::openDb(), cond::persistency::SessionImpl::openGTDb(), cond::persistency::SessionImpl::openIovDb(), cond::persistency::SessionImpl::openRunInfoDb(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::operator()(), cond::persistency::GetFromRow< std::array< char, n > >::operator()(), parseConnectionString(), Session::storePayload< std::string >(), cond::setPermissionData(), cond::CredentialStore::startSession(), cond::persistency::SessionImpl::startTransaction(), cond::persistency::Session::storePayload(), cond::updateConnectionData(), cond::updatePrincipalData(), cond::service::PoolDBOutputService::writeOne(), and cond::persistency::Exception::~Exception().

12  {
13  throw Exception(message, methodName);
14  }