BOSS 7.0.4
BESIII Offline Software System
|
#include <Column.h>
Public Types | |
enum | FROM { FROMdefault = 1 , FROMautoIncrement , FROMnow , FROMprogram , FROMendUser , FROMdefault = 1 , FROMautoIncrement , FROMnow , FROMprogram , FROMendUser } |
enum | CONTENTS { CONTENTSunspecified = 0 , CONTENTSserviceName = 1 , CONTENTSusername = 2 , CONTENTSinsertTime = 3 , CONTENTSupdateTime = 4 , CONTENTSunspecified = 0 , CONTENTSserviceName = 1 , CONTENTSusername = 2 , CONTENTSinsertTime = 3 , CONTENTSupdateTime = 4 } |
Hints to program in case FROM field is FROMprogram. More... | |
enum | FROM { FROMdefault = 1 , FROMautoIncrement , FROMnow , FROMprogram , FROMendUser , FROMdefault = 1 , FROMautoIncrement , FROMnow , FROMprogram , FROMendUser } |
enum | CONTENTS { CONTENTSunspecified = 0 , CONTENTSserviceName = 1 , CONTENTSusername = 2 , CONTENTSinsertTime = 3 , CONTENTSupdateTime = 4 , CONTENTSunspecified = 0 , CONTENTSserviceName = 1 , CONTENTSusername = 2 , CONTENTSinsertTime = 3 , CONTENTSupdateTime = 4 } |
Hints to program in case FROM field is FROMprogram. More... | |
Public Member Functions | |
Column (Table *myTable=0) | |
~Column () | |
const std::string & | getName () const |
const std::string & | getComment () const |
const std::string & | getDefault () const |
const std::string & | getTableName () const |
Datatype * | getDatatype () const |
Enum * | getEnum () const |
bool | okValue (const std::string &val, bool set=true) const |
bool | isCompatible (const Column *otherCol) const |
Return true if otherCol and this have compatible datatypes. | |
bool | nullAllowed () const |
Returns true if column may take on value NULL. | |
bool | stickyInsert () const |
bool | isPrimaryKey () const |
bool | isAutoIncrement () const |
FROM | getSourceType () const |
CONTENTS | getContentsType () const |
bool | interpret (const std::string &interpType, std::string &val) |
Visitor::VisitorState | accept (Visitor *v) |
Column (Table *myTable=0) | |
~Column () | |
const std::string & | getName () const |
const std::string & | getComment () const |
const std::string & | getDefault () const |
const std::string & | getTableName () const |
Datatype * | getDatatype () const |
Enum * | getEnum () const |
bool | okValue (const std::string &val, bool set=true) const |
bool | isCompatible (const Column *otherCol) const |
Return true if otherCol and this have compatible datatypes. | |
bool | nullAllowed () const |
Returns true if column may take on value NULL. | |
bool | stickyInsert () const |
bool | isPrimaryKey () const |
bool | isAutoIncrement () const |
FROM | getSourceType () const |
CONTENTS | getContentsType () const |
bool | interpret (const std::string &interpType, std::string &val) |
Visitor::VisitorState | accept (Visitor *v) |
Friends | |
class | rdbModel::XercesBuilder |
rdbModel representation of a(n SQL-like) table description
Definition at line 23 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Hints to program in case FROM field is FROMprogram.
Enumerator | |
---|---|
CONTENTSunspecified | |
CONTENTSserviceName | |
CONTENTSusername | |
CONTENTSinsertTime | |
CONTENTSupdateTime | |
CONTENTSunspecified | |
CONTENTSserviceName | |
CONTENTSusername | |
CONTENTSinsertTime | |
CONTENTSupdateTime |
Definition at line 39 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Hints to program in case FROM field is FROMprogram.
Enumerator | |
---|---|
CONTENTSunspecified | |
CONTENTSserviceName | |
CONTENTSusername | |
CONTENTSinsertTime | |
CONTENTSupdateTime | |
CONTENTSunspecified | |
CONTENTSserviceName | |
CONTENTSusername | |
CONTENTSinsertTime | |
CONTENTSupdateTime |
Definition at line 39 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
Source of value. Note timestamp with value current time should be indicated by contents value CONTENTSupdateTime or (if only upon insert) CONTENTS enterTime
Enumerator | |
---|---|
FROMdefault | |
FROMautoIncrement | |
FROMnow | |
FROMprogram | |
FROMendUser | |
FROMdefault | |
FROMautoIncrement | |
FROMnow | |
FROMprogram | |
FROMendUser |
Definition at line 30 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Source of value. Note timestamp with value current time should be indicated by contents value CONTENTSupdateTime or (if only upon insert) CONTENTS enterTime
Enumerator | |
---|---|
FROMdefault | |
FROMautoIncrement | |
FROMnow | |
FROMprogram | |
FROMendUser | |
FROMdefault | |
FROMautoIncrement | |
FROMnow | |
FROMprogram | |
FROMendUser |
Definition at line 30 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Definition at line 48 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
rdbModel::Column::~Column | ( | ) |
Definition at line 11 of file Column.cxx.
|
inline |
Definition at line 48 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
rdbModel::Column::~Column | ( | ) |
Visitor::VisitorState rdbModel::Column::accept | ( | Visitor * | v | ) |
Definition at line 58 of file Column.cxx.
Visitor::VisitorState rdbModel::Column::accept | ( | Visitor * | v | ) |
|
inline |
Definition at line 57 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
|
inline |
Definition at line 57 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Definition at line 89 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
|
inline |
Definition at line 89 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Definition at line 63 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Referenced by main(), and rdbModel::MysqlConnection::visitColumn().
|
inline |
Definition at line 63 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Definition at line 59 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
|
inline |
Definition at line 59 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
Enum * rdbModel::Column::getEnum | ( | ) | const |
Return pointer to Enum object associated with this column (if none, return null pointer).
Definition at line 15 of file Column.cxx.
Enum * rdbModel::Column::getEnum | ( | ) | const |
Return pointer to Enum object associated with this column (if none, return null pointer).
|
inline |
Definition at line 56 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Referenced by rdbModel::ColCompare::operator()(), tryQuick(), and rdbModel::MysqlConnection::visitColumn().
|
inline |
Definition at line 56 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Definition at line 88 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
|
inline |
Definition at line 88 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
const std::string & rdbModel::Column::getTableName | ( | ) | const |
Definition at line 17 of file Column.cxx.
const std::string & rdbModel::Column::getTableName | ( | ) | const |
bool rdbModel::Column::interpret | ( | const std::string & | interpType, |
std::string & | val | ||
) |
Handle special literal values, depending loosely on column datatype. Most Column objects won't do any interpretation, but, for example, timestamp-like columns may substitute for "NOW" Return true if any substitution was done
Definition at line 41 of file Column.cxx.
Referenced by rdbModel::Table::supersedeRow().
bool rdbModel::Column::interpret | ( | const std::string & | interpType, |
std::string & | val | ||
) |
Handle special literal values, depending loosely on column datatype. Most Column objects won't do any interpretation, but, for example, timestamp-like columns may substitute for "NOW" Return true if any substitution was done
bool rdbModel::Column::isAutoIncrement | ( | ) | const |
Definition at line 37 of file Column.cxx.
Referenced by rdbModel::MysqlConnection::visitColumn().
bool rdbModel::Column::isAutoIncrement | ( | ) | const |
Return true if otherCol and this have compatible datatypes.
Definition at line 32 of file Column.cxx.
Referenced by rdbModel::Assertion::Operator::validCompareOp().
Return true if otherCol and this have compatible datatypes.
|
inline |
Definition at line 84 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Referenced by main().
|
inline |
Definition at line 84 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
inline |
Returns true if column may take on value NULL.
Definition at line 80 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
Referenced by calibUtil::Metadata::checkNulls(), and rdbModel::MysqlConnection::visitColumn().
|
inline |
Returns true if column may take on value NULL.
Definition at line 80 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
See if supplied value meets constraints of column definition
Definition at line 21 of file Column.cxx.
Referenced by calibUtil::Metadata::checkValues(), and rdbModel::Assertion::Operator::validCompareOp().
See if supplied value meets constraints of column definition
|
inline |
Definition at line 82 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.
|
inline |
Definition at line 82 of file InstallArea/include/rdbModel/rdbModel/Tables/Column.h.
|
friend |
Definition at line 102 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Column.h.