CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
cond::persistency::UpdateBuffer Class Reference

#include <DbCore.h>

Public Member Functions

template<typename Column , typename P >
void addWhereCondition (const P &param, const std::string condition="=")
 
template<typename Column1 , typename Column2 >
void addWhereCondition (const std::string condition="=")
 
const coral::AttributeList & get () const
 
const std::string & setClause () const
 
template<typename... Columns, typename Params >
void setColumnData (const Params &params)
 
template<typename Column1 , typename Column2 >
void setColumnMatch ()
 
 UpdateBuffer ()
 
const std::string & whereClause () const
 

Private Member Functions

template<typename Params , int n>
void _set (const Params &)
 
template<typename Params , int n, typename C1 , typename... Cs>
void _set (const Params &params)
 

Private Attributes

coral::AttributeList m_data
 
std::string m_setClause
 
std::string m_whereClause
 

Detailed Description

Definition at line 601 of file DbCore.h.

Constructor & Destructor Documentation

◆ UpdateBuffer()

cond::persistency::UpdateBuffer::UpdateBuffer ( )
inline

Definition at line 616 of file DbCore.h.

616 : m_data(), m_setClause(""), m_whereClause("") {}

Member Function Documentation

◆ _set() [1/2]

template<typename Params , int n>
void cond::persistency::UpdateBuffer::_set ( const Params &  )
inlineprivate

Definition at line 613 of file DbCore.h.

613 {}

◆ _set() [2/2]

template<typename Params , int n, typename C1 , typename... Cs>
void cond::persistency::UpdateBuffer::_set ( const Params &  params)
inlineprivate

Definition at line 604 of file DbCore.h.

604  {
605  f_add_column_data<C1>(m_data, std::get<n>(params));
606  if (!m_setClause.empty())
607  m_setClause += ", ";
609  _set<Params, n + 1, Cs...>(params);
610  }

References m_data, m_setClause, dqmiodumpmetadata::n, Skims_PA_cff::name, CalibrationSummaryClient_cfi::params, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by setColumnData().

◆ addWhereCondition() [1/2]

template<typename Column , typename P >
void cond::persistency::UpdateBuffer::addWhereCondition ( const P param,
const std::string  condition = "=" 
)
inline

Definition at line 631 of file DbCore.h.

631  {
632  f_add_condition_data<Column>(m_data, m_whereClause, param, condition);
633  }

References goodZToMuMu_cfi::condition, m_data, and m_whereClause.

◆ addWhereCondition() [2/2]

template<typename Column1 , typename Column2 >
void cond::persistency::UpdateBuffer::addWhereCondition ( const std::string  condition = "=")
inline

Definition at line 636 of file DbCore.h.

636  {
637  f_add_condition<Column1, Column2>(m_whereClause, condition);
638  }

References goodZToMuMu_cfi::condition, and m_whereClause.

◆ get()

const coral::AttributeList& cond::persistency::UpdateBuffer::get ( ) const
inline

◆ setClause()

const std::string& cond::persistency::UpdateBuffer::setClause ( ) const
inline

Definition at line 642 of file DbCore.h.

642 { return m_setClause; }

References m_setClause.

◆ setColumnData()

template<typename... Columns, typename Params >
void cond::persistency::UpdateBuffer::setColumnData ( const Params &  params)
inline

Definition at line 619 of file DbCore.h.

619  {
620  _set<Params, 0, Columns...>(params);
621  }

References _set(), and CalibrationSummaryClient_cfi::params.

◆ setColumnMatch()

template<typename Column1 , typename Column2 >
void cond::persistency::UpdateBuffer::setColumnMatch ( )
inline

Definition at line 624 of file DbCore.h.

624  {
625  if (!m_setClause.empty())
626  m_setClause += ", ";
628  }

References m_setClause, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ whereClause()

const std::string& cond::persistency::UpdateBuffer::whereClause ( ) const
inline

Definition at line 644 of file DbCore.h.

644 { return m_whereClause; }

References m_whereClause.

Member Data Documentation

◆ m_data

coral::AttributeList cond::persistency::UpdateBuffer::m_data
private

Definition at line 647 of file DbCore.h.

Referenced by _set(), addWhereCondition(), and get().

◆ m_setClause

std::string cond::persistency::UpdateBuffer::m_setClause
private

Definition at line 648 of file DbCore.h.

Referenced by _set(), setClause(), and setColumnMatch().

◆ m_whereClause

std::string cond::persistency::UpdateBuffer::m_whereClause
private

Definition at line 649 of file DbCore.h.

Referenced by addWhereCondition(), and whereClause().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
cond::persistency::UpdateBuffer::m_whereClause
std::string m_whereClause
Definition: DbCore.h:649
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::persistency::UpdateBuffer::m_setClause
std::string m_setClause
Definition: DbCore.h:648
cond::persistency::UpdateBuffer::m_data
coral::AttributeList m_data
Definition: DbCore.h:647
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37
cond::persistency::UpdateBuffer::_set
void _set(const Params &params)
Definition: DbCore.h:604
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17