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, 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 492 of file DbCore.h.

Constructor & Destructor Documentation

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

Definition at line 508 of file DbCore.h.

508  :
509  m_data(),
510  m_setClause(""),
511  m_whereClause(""){
512  }
coral::AttributeList m_data
Definition: DbCore.h:544

Member Function Documentation

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

Definition at line 495 of file DbCore.h.

References cond::persistency::RowBuffer< Columns >::_set(), cond::persistency::RowBuffer< Columns >::m_data, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.

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

Definition at line 503 of file DbCore.h.

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

Definition at line 527 of file DbCore.h.

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

Definition at line 535 of file DbCore.h.

535  {
536  return m_setClause;
537  }
template<typename... Columns, typename Params >
void cond::persistency::UpdateBuffer::setColumnData ( const Params &  params)
inline
template<typename Column1 , typename Column2 >
void cond::persistency::UpdateBuffer::setColumnMatch ( )
inline
const std::string& cond::persistency::UpdateBuffer::whereClause ( ) const
inline

Definition at line 539 of file DbCore.h.

539  {
540  return m_whereClause;
541  }

Member Data Documentation

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

Definition at line 544 of file DbCore.h.

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

Definition at line 545 of file DbCore.h.

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

Definition at line 546 of file DbCore.h.