#include <RelationalOperation.h>
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 |
Definition at line 126 of file RelationalOperation.h.
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.
{ }
bool ora::UpdateOperation::execute | ( | ) | [virtual] |
Implements ora::IRelationalOperation.
Definition at line 200 of file RelationalOperation.cc.
References data, run_regression::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] |
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.