Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rdbModel::Set Class Reference

#include <Set.h>

List of all members.

Public Member Functions

Visitor::VisitorState accept (Visitor *v)
Visitor::VisitorState accept (Visitor *v)
const std::string & getDestColName () const
const std::string & getDestColName () const
FIELDTYPE getDestType () const
FIELDTYPE getDestType () const
const std::string & getInterp () const
const std::string & getInterp () const
FIELDTYPE getSrcType () const
FIELDTYPE getSrcType () const
const std::string & getSrcValue () const
const std::string & getSrcValue () const
bool hasInterp () const
bool hasInterp () const
 Set (Table *table, const std::string &destColName, FIELDTYPE destType, const std::string &srcValue, FIELDTYPE srcType, const std::string &interp=std::string(""))
 Set (Table *table, const std::string &destColName, FIELDTYPE destType, const std::string &srcValue, FIELDTYPE srcType, const std::string &interp=std::string(""))
 ~Set ()
 ~Set ()

Private Attributes

std::string m_destCol
FIELDTYPE m_destType
std::string m_interp
Tablem_myTable
Tablem_myTable
FIELDTYPE m_srcType
 Describes how to interpret m_srcValue.
std::string m_srcValue
 source value may be literal string or column name or empty


Detailed Description

Describe update to be made to a single column. Must be to an existing row. Value can be any of the three possible FIELDTYPEs.

column to get updated defines whether dest row is existing or proposed string for value to go into dest column may be literal, old column or proposed column


Constructor & Destructor Documentation

rdbModel::Set::Set Table table,
const std::string &  destColName,
FIELDTYPE  destType,
const std::string &  srcValue,
FIELDTYPE  srcType,
const std::string &  interp = std::string("")
[inline]
 

00026                                                  : 
00027       m_myTable(table), m_destCol(destColName), m_destType(destType),
00028       m_srcValue(srcValue), m_srcType(srcType), m_interp(interp) {}

rdbModel::Set::~Set  )  [inline]
 

Normally, operator associated with the assertion will be deleted when the assertion itself is deleted, but this won't happen if keepOp is set to true.

00035 {}

rdbModel::Set::Set Table table,
const std::string &  destColName,
FIELDTYPE  destType,
const std::string &  srcValue,
FIELDTYPE  srcType,
const std::string &  interp = std::string("")
[inline]
 

00026                                                  : 
00027       m_myTable(table), m_destCol(destColName), m_destType(destType),
00028       m_srcValue(srcValue), m_srcType(srcType), m_interp(interp) {}

rdbModel::Set::~Set  )  [inline]
 

Normally, operator associated with the assertion will be deleted when the assertion itself is deleted, but this won't happen if keepOp is set to true.

00035 {}


Member Function Documentation

Visitor::VisitorState rdbModel::Set::accept Visitor v  ) 
 

Visitor::VisitorState rdbModel::Set::accept Visitor v  ) 
 

00009                                             {    
00010     Visitor::VisitorState state = v->visitSet(this);
00011     if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE;
00012     return state;
00013   }

const std::string& rdbModel::Set::getDestColName  )  const [inline]
 

00038 {return m_destCol;}

const std::string& rdbModel::Set::getDestColName  )  const [inline]
 

00038 {return m_destCol;}

FIELDTYPE rdbModel::Set::getDestType  )  const [inline]
 

00039 {return m_destType;}

FIELDTYPE rdbModel::Set::getDestType  )  const [inline]
 

00039 {return m_destType;}

const std::string& rdbModel::Set::getInterp  )  const [inline]
 

00043 {return m_interp;}

const std::string& rdbModel::Set::getInterp  )  const [inline]
 

00043 {return m_interp;}

FIELDTYPE rdbModel::Set::getSrcType  )  const [inline]
 

00042 {return m_srcType;}

FIELDTYPE rdbModel::Set::getSrcType  )  const [inline]
 

00042 {return m_srcType;}

const std::string& rdbModel::Set::getSrcValue  )  const [inline]
 

00041 {return m_srcValue;}

const std::string& rdbModel::Set::getSrcValue  )  const [inline]
 

00041 {return m_srcValue;}

bool rdbModel::Set::hasInterp  )  const [inline]
 

00045 {return (m_interp.size() > 0);}

bool rdbModel::Set::hasInterp  )  const [inline]
 

00045 {return (m_interp.size() > 0);}


Member Data Documentation

std::string rdbModel::Set::m_destCol [private]
 

FIELDTYPE rdbModel::Set::m_destType [private]
 

std::string rdbModel::Set::m_interp [private]
 

Table* rdbModel::Set::m_myTable [private]
 

Table* rdbModel::Set::m_myTable [private]
 

FIELDTYPE rdbModel::Set::m_srcType [private]
 

Describes how to interpret m_srcValue.

std::string rdbModel::Set::m_srcValue [private]
 

source value may be literal string or column name or empty


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:22:41 2011 for BOSS6.5.5 by  doxygen 1.3.9.1