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
int addBlobData (const std::string &columnName)
 
int addData (const std::string &columnName, const std::type_info &columnType)
 
int addId (const std::string &columnName)
 
int addWhereId (const std::string &columnName)
 
int 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 116 of file RelationalOperation.cc.

ora::InsertOperation::~InsertOperation ( )

Definition at line 123 of file RelationalOperation.cc.

123  {
124 }

Member Function Documentation

bool ora::InsertOperation::execute ( )
virtual

Implements ora::IRelationalOperation.

Definition at line 131 of file RelationalOperation.cc.

References data, and TableParser::table.

131  {
132  coral::ITable& table = m_schema.tableHandle( m_tableName );
133  table.dataEditor().insertRow( data() );
134  return true;
135 }
coral::AttributeList & data()
coral::ISchema & m_schema
bool ora::InsertOperation::isRequired ( )
virtual

Implements ora::IRelationalOperation.

Definition at line 127 of file RelationalOperation.cc.

127  {
128  return false;
129 }
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.