#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 196 of file RelationalOperation.cc.
: InputRelationalData(), m_tableName( tableName ), m_schema( schema ){ }
ora::DeleteOperation::~DeleteOperation | ( | ) |
Definition at line 203 of file RelationalOperation.cc.
{ }
bool ora::DeleteOperation::execute | ( | ) | [virtual] |
Implements ora::IRelationalOperation.
Definition at line 211 of file RelationalOperation.cc.
References runTheMatrix::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 207 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.