cqosdb::TempParamSet Class Reference

#include <TempParamSet.hxx>

Inheritance diagram for cqosdb::TempParamSet:

cqosdb::ParameterSet

List of all members.

Public Member Functions

 TempParamSet ()
 TempParamSet (const TempParamSet &other)
 ~TempParamSet ()
string getClassName ()
 Return class name.
void setFieldTypes (vector< string > fieldNameVec, vector< int > fieldTypeVec)
void setFieldTypeOps (vector< string > fieldOpVec)
void setTBName (string tbName)
void addARelatedParamSet (ParameterSet &aParamSet)
int getRelatedParamSetCount ()
ParameterSetgetRelatedParamSetAt (int index)
string getOpAtField (int index)
int getNumOfParameters ()
 Get count of parameters in the set.
string getTBName ()
 Get table where the set is store in database.
void addAParameter (Parameter &aParam)
 Add a parameter to the set.
ParametergetParameterAt (string name)
 Get a parameter in the set.
ParametergetParameterAt (int index)
 Get a parameter in the set.
void setParameterValueAt (string name, int value)
void setParameterValueAt (string name, long value)
void setParameterValueAt (string name, double value)
void setParameterValueAt (string name, string value)
void setParameterValueAt (int index, int value)
void setParameterValueAt (int index, long value)
void setParameterValueAt (int index, double value)
void setParameterValueAt (int index, string value)
bool compareWith (ParameterSet &another, map< string, double > tMap, map< string, int > rMap)
 Compare with another parameter set of the same type.
string getDBConditions (int *tbIndices, map< string, double > tMap, map< string, int > rMap)
 Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.
string getCrossJoinConditions ()
TempParamSetoperator= (const TempParamSet &other)
ParameterSetclone ()

Public Attributes

string tbName
vector< ParameterSet * > relatedParamSets
vector< string > fieldOpVec
vector< FieldType > paramVec


Constructor & Destructor Documentation

cqosdb::TempParamSet::TempParamSet (  )  [inline]

cqosdb::TempParamSet::TempParamSet ( const TempParamSet other  ) 

cqosdb::TempParamSet::~TempParamSet (  ) 


Member Function Documentation

string cqosdb::TempParamSet::getClassName (  )  [virtual]

Return class name.

Implements cqosdb::ParameterSet.

void cqosdb::TempParamSet::setFieldTypes ( vector< string >  fieldNameVec,
vector< int >  fieldTypeVec 
)

void cqosdb::TempParamSet::setFieldTypeOps ( vector< string >  fieldOpVec  ) 

void cqosdb::TempParamSet::setTBName ( string  tbName  ) 

void cqosdb::TempParamSet::addARelatedParamSet ( ParameterSet aParamSet  ) 

int cqosdb::TempParamSet::getRelatedParamSetCount (  ) 

ParameterSet * cqosdb::TempParamSet::getRelatedParamSetAt ( int  index  ) 

string cqosdb::TempParamSet::getOpAtField ( int  index  ) 

int cqosdb::TempParamSet::getNumOfParameters (  )  [virtual]

Get count of parameters in the set.

Implements cqosdb::ParameterSet.

string cqosdb::TempParamSet::getTBName (  )  [virtual]

Get table where the set is store in database.

Implements cqosdb::ParameterSet.

void cqosdb::TempParamSet::addAParameter ( Parameter aParam  )  [virtual]

Add a parameter to the set.

Implements cqosdb::ParameterSet.

Parameter * cqosdb::TempParamSet::getParameterAt ( string  name  )  [virtual]

Get a parameter in the set.

Parameters:
name Parameter name

Implements cqosdb::ParameterSet.

Parameter * cqosdb::TempParamSet::getParameterAt ( int  index  )  [virtual]

Get a parameter in the set.

Parameters:
index Parameter index in the set

Implements cqosdb::ParameterSet.

void cqosdb::TempParamSet::setParameterValueAt ( string  name,
int  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( string  name,
long  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( string  name,
double  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( string  name,
string  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( int  index,
int  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( int  index,
long  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( int  index,
double  value 
)

void cqosdb::TempParamSet::setParameterValueAt ( int  index,
string  value 
)

bool cqosdb::TempParamSet::compareWith ( ParameterSet another,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Compare with another parameter set of the same type.

Parameters:
another another parameter set
tMap comparison tolerance values
rMap comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT
Returns:
true if every pair of parameters comparison is true false otherwise

Implements cqosdb::ParameterSet.

string cqosdb::TempParamSet::getDBConditions ( int *  tbIndices,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.

Parameters:
tbIndices indices of tables storing the parameter set
tMap comparison tolerance values
rMap comparison relations, either L, LTEQ, EQ, NEQ, GT, GTEQ, or BT

Implements cqosdb::ParameterSet.

string cqosdb::TempParamSet::getCrossJoinConditions (  ) 

TempParamSet & cqosdb::TempParamSet::operator= ( const TempParamSet other  ) 

ParameterSet * cqosdb::TempParamSet::clone (  )  [virtual]

Implements cqosdb::ParameterSet.


Member Data Documentation

vector<FieldType> cqosdb::TempParamSet::paramVec


The documentation for this class was generated from the following files:

Generated on Fri May 9 19:59:44 2008 for CQoS Database Library by  doxygen 1.5.5