CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::UpdateOperation Class Reference

#include <RelationalOperation.h>

Inheritance diagram for ora::UpdateOperation:
ora::InputRelationalData ora::IRelationalOperation ora::IRelationalData

List of all members.

Public Member Functions

bool execute ()
bool isRequired ()
void reset ()
 UpdateOperation (const std::string &tableName, coral::ISchema &schema)
 ~UpdateOperation ()

Private Attributes

coral::ISchema & m_schema
std::string m_tableName

Detailed Description

Definition at line 126 of file RelationalOperation.h.


Constructor & Destructor Documentation

ora::UpdateOperation::UpdateOperation ( const std::string &  tableName,
coral::ISchema &  schema 
) [explicit]

Definition at line 185 of file RelationalOperation.cc.

                                                             :
  InputRelationalData(),
  m_tableName( tableName ),
  m_schema( schema ){
}
ora::UpdateOperation::~UpdateOperation ( )

Definition at line 192 of file RelationalOperation.cc.

                                    {
}

Member Function Documentation

bool ora::UpdateOperation::execute ( ) [virtual]

Implements ora::IRelationalOperation.

Definition at line 200 of file RelationalOperation.cc.

References AlCaHLTBitMon_QueryRunRegistry::data, runTheMatrix::ret, findQualityFiles::size, and asciidump::table.

                                {
  bool ret = false;
  if( updateClause().size() && whereClause().size() ){
    coral::ITable& table = m_schema.tableHandle( m_tableName );
    long nr = table.dataEditor().updateRows( updateClause(), whereClause(), data() );
    ret = nr > 0;
  }
  return ret;
}
bool ora::UpdateOperation::isRequired ( ) [virtual]

Implements ora::IRelationalOperation.

Definition at line 196 of file RelationalOperation.cc.

                              {
  return true;
}
void ora::UpdateOperation::reset ( void  ) [virtual]

Implements ora::IRelationalOperation.

Definition at line 210 of file RelationalOperation.cc.

                              {
}

Member Data Documentation

coral::ISchema& ora::UpdateOperation::m_schema [private]

Definition at line 138 of file RelationalOperation.h.

std::string ora::UpdateOperation::m_tableName [private]

Definition at line 137 of file RelationalOperation.h.