#include <TempParamSet.hxx>
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 () |
ParameterSet * | getRelatedParamSetAt (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. | |
Parameter * | getParameterAt (string name) |
Get a parameter in the set. | |
Parameter * | getParameterAt (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 () |
TempParamSet & | operator= (const TempParamSet &other) |
ParameterSet * | clone () |
Public Attributes | |
string | tbName |
vector< ParameterSet * > | relatedParamSets |
vector< string > | fieldOpVec |
vector< FieldType > | paramVec |
cqosdb::TempParamSet::TempParamSet | ( | ) | [inline] |
cqosdb::TempParamSet::TempParamSet | ( | const TempParamSet & | other | ) |
cqosdb::TempParamSet::~TempParamSet | ( | ) |
string cqosdb::TempParamSet::getClassName | ( | ) | [virtual] |
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] |
string cqosdb::TempParamSet::getTBName | ( | ) | [virtual] |
void cqosdb::TempParamSet::addAParameter | ( | Parameter & | aParam | ) | [virtual] |
Parameter * cqosdb::TempParamSet::getParameterAt | ( | string | name | ) | [virtual] |
Parameter * cqosdb::TempParamSet::getParameterAt | ( | int | index | ) | [virtual] |
Get a parameter in the set.
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.
another | another parameter set | |
tMap | comparison tolerance values | |
rMap | comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT |
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.
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.
string cqosdb::TempParamSet::tbName |
vector<string> cqosdb::TempParamSet::fieldOpVec |
vector<FieldType> cqosdb::TempParamSet::paramVec |