#include <RelationalOperation.h>
Public Member Functions | |
DeleteOperation (const std::string &tableName, coral::ISchema &schema) | |
bool | execute () |
bool | isRequired () |
void | reset () |
~DeleteOperation () | |
Private Attributes | |
coral::ISchema & | m_schema |
std::string | m_tableName |
Definition at line 143 of file RelationalOperation.h.
ora::DeleteOperation::DeleteOperation | ( | const std::string & | tableName, |
coral::ISchema & | schema | ||
) | [explicit] |
Definition at line 213 of file RelationalOperation.cc.
: InputRelationalData(), m_tableName( tableName ), m_schema( schema ){ }
ora::DeleteOperation::~DeleteOperation | ( | ) |
Definition at line 220 of file RelationalOperation.cc.
{ }
bool ora::DeleteOperation::execute | ( | ) | [virtual] |
Implements ora::IRelationalOperation.
Definition at line 228 of file RelationalOperation.cc.
References run_regression::ret, findQualityFiles::size, and asciidump::table.
{ bool ret = false; if( whereClause().size() ){ coral::ITable& table = m_schema.tableHandle( m_tableName ); long nr = table.dataEditor().deleteRows( whereClause(), whereData() ); ret = nr > 0; } return ret; }
bool ora::DeleteOperation::isRequired | ( | ) | [virtual] |
Implements ora::IRelationalOperation.
Definition at line 224 of file RelationalOperation.cc.
{ return false; }
void ora::DeleteOperation::reset | ( | void | ) | [virtual] |
coral::ISchema& ora::DeleteOperation::m_schema [private] |
Definition at line 154 of file RelationalOperation.h.
std::string ora::DeleteOperation::m_tableName [private] |
Definition at line 153 of file RelationalOperation.h.