CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, typename C1 , typename... Cs>
void _set (const Params &params)
 
template<typename Params , int n>
void _set (const Params &)
 

Private Attributes

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

Detailed Description

Definition at line 490 of file DbCore.h.

Constructor & Destructor Documentation

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

Definition at line 506 of file DbCore.h.

506  :
507  m_data(),
508  m_setClause(""),
509  m_whereClause(""){
510  }
coral::AttributeList m_data
Definition: DbCore.h:542

Member Function Documentation

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

Definition at line 493 of file DbCore.h.

References m_data, m_setClause, gen::n, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by setColumnData().

493  {
494  f_add_column_data<C1>( m_data, std::get<n>( params ) );
495  if( !m_setClause.empty() ) m_setClause += ", ";
497  _set<Params, n+1, Cs...>(params);
498  }
coral::AttributeList m_data
Definition: DbCore.h:542
void _set(const Params &params)
Definition: DbCore.h:493
template<typename Params , int n>
void cond::persistency::UpdateBuffer::_set ( const Params &  )
inlineprivate

Definition at line 501 of file DbCore.h.

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

Definition at line 521 of file DbCore.h.

References m_data, and m_whereClause.

Referenced by cond::persistency::GLOBAL_TAG::Table::update(), cond::persistency::TAG::Table::update(), and cond::persistency::TAG::Table::updateValidity().

521  {
522  f_add_condition_data<Column>( m_data, m_whereClause, param, condition );
523  }
coral::AttributeList m_data
Definition: DbCore.h:542
template<typename Column1 , typename Column2 >
void cond::persistency::UpdateBuffer::addWhereCondition ( const std::string  condition = "=")
inline

Definition at line 525 of file DbCore.h.

References m_whereClause.

525  {
526  f_add_condition<Column1,Column2>( m_whereClause, condition );
527  }
const coral::AttributeList& cond::persistency::UpdateBuffer::get ( ) const
inline
const std::string& cond::persistency::UpdateBuffer::setClause ( ) const
inline

Definition at line 533 of file DbCore.h.

References m_setClause.

533  {
534  return m_setClause;
535  }
template<typename... Columns, typename Params >
void cond::persistency::UpdateBuffer::setColumnData ( const Params &  params)
inline

Definition at line 512 of file DbCore.h.

References _set().

Referenced by cond::persistency::GLOBAL_TAG::Table::update(), cond::persistency::TAG::Table::update(), and cond::persistency::TAG::Table::updateValidity().

512  {
513  _set<Params,0,Columns...>( params );
514  }
void _set(const Params &params)
Definition: DbCore.h:493
template<typename Column1 , typename Column2 >
void cond::persistency::UpdateBuffer::setColumnMatch ( )
inline
const std::string& cond::persistency::UpdateBuffer::whereClause ( ) const
inline

Definition at line 537 of file DbCore.h.

References m_whereClause.

537  {
538  return m_whereClause;
539  }

Member Data Documentation

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

Definition at line 542 of file DbCore.h.

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

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

Definition at line 543 of file DbCore.h.

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

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

Definition at line 544 of file DbCore.h.

Referenced by addWhereCondition(), and whereClause().