CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::InsertOperation Class Reference

#include <RelationalOperation.h>

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

Public Member Functions

bool execute ()
 
 InsertOperation (const std::string &tableName, coral::ISchema &schema)
 
bool isRequired ()
 
void reset ()
 
 ~InsertOperation ()
 
- Public Member Functions inherited from ora::InputRelationalData
void addBlobData (const std::string &columnName)
 
void addData (const std::string &columnName, const std::type_info &columnType)
 
void addId (const std::string &columnName)
 
void addWhereId (const std::string &columnName)
 
void addWhereId (const std::string &columnName, ConditionType cond)
 
coral::AttributeList & data ()
 
 InputRelationalData ()
 
std::string & updateClause ()
 
std::string & whereClause ()
 
coral::AttributeList & whereData ()
 
virtual ~InputRelationalData ()
 
- Public Member Functions inherited from ora::IRelationalData
virtual ~IRelationalData ()
 
- Public Member Functions inherited from ora::IRelationalOperation
virtual ~IRelationalOperation ()
 

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 99 of file RelationalOperation.cc.

100  :
102  m_tableName( tableName ),
103  m_schema( schema ){
104 }
coral::ISchema & m_schema
ora::InsertOperation::~InsertOperation ( )

Definition at line 106 of file RelationalOperation.cc.

106  {
107 }

Member Function Documentation

bool ora::InsertOperation::execute ( )
virtual

Implements ora::IRelationalOperation.

Definition at line 114 of file RelationalOperation.cc.

References runTheMatrix::data, and asciidump::table.

114  {
115  coral::ITable& table = m_schema.tableHandle( m_tableName );
116  table.dataEditor().insertRow( data() );
117  return true;
118 }
list table
Definition: asciidump.py:386
coral::AttributeList & data()
coral::ISchema & m_schema
bool ora::InsertOperation::isRequired ( )
virtual

Implements ora::IRelationalOperation.

Definition at line 110 of file RelationalOperation.cc.

110  {
111  return false;
112 }
void ora::InsertOperation::reset ( void  )
virtual

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.