CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::InsertOperation Class Reference

#include <RelationalOperation.h>

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

List of all members.

Public Member Functions

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

Private Attributes

coral::ISchema & m_schema
std::string m_tableName

Detailed Description

Definition at line 95 of file RelationalOperation.h.


Constructor & Destructor Documentation

ora::InsertOperation::InsertOperation ( const std::string &  tableName,
coral::ISchema &  schema 
)

Definition at line 116 of file RelationalOperation.cc.

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

Definition at line 123 of file RelationalOperation.cc.

                                    {
}

Member Function Documentation

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

Implements ora::IRelationalOperation.

Definition at line 131 of file RelationalOperation.cc.

References data, and asciidump::table.

                                {
  coral::ITable& table = m_schema.tableHandle( m_tableName );
  table.dataEditor().insertRow( data() );
  return true;
}
bool ora::InsertOperation::isRequired ( ) [virtual]

Implements ora::IRelationalOperation.

Definition at line 127 of file RelationalOperation.cc.

                              {
  return false;
}
void ora::InsertOperation::reset ( void  ) [virtual]

Implements ora::IRelationalOperation.

Definition at line 137 of file RelationalOperation.cc.

                              {
}

Member Data Documentation

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

Definition at line 107 of file RelationalOperation.h.

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

Definition at line 106 of file RelationalOperation.h.