CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::DeleteOperation Class Reference

#include <RelationalOperation.h>

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

List of all members.

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

Detailed Description

Definition at line 143 of file RelationalOperation.h.


Constructor & Destructor Documentation

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.

                                    {
}

Member Function Documentation

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]

Implements ora::IRelationalOperation.

Definition at line 238 of file RelationalOperation.cc.

                              {
}

Member Data Documentation

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.