|
BOSS 7.1.3
BESIII Offline Software System
|
#include <Column.h>
Public Types | |
| enum | FROM { FROMdefault = 1 , FROMautoIncrement , FROMnow , FROMprogram , FROMendUser } |
| enum | CONTENTS { 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) |
Friends | |
| class | rdbModel::XercesBuilder |
Hints to program in case FROM field is FROMprogram.
| Enumerator | |
|---|---|
| CONTENTSunspecified | |
| CONTENTSserviceName | |
| CONTENTSusername | |
| CONTENTSinsertTime | |
| CONTENTSupdateTime | |
Definition at line 39 of file 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 | |
|
inline |
Definition at line 48 of file Column.h.
Referenced by isCompatible().
| rdbModel::Column::~Column | ( | ) |
Definition at line 11 of file Column.cxx.
| Visitor::VisitorState rdbModel::Column::accept | ( | Visitor * | v | ) |
Definition at line 58 of file Column.cxx.
|
inline |
|
inline |
|
inline |
Definition at line 63 of file Column.h.
Referenced by main(), and rdbModel::MysqlConnection::visitColumn().
|
inline |
| 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.
|
inline |
Definition at line 56 of file Column.h.
Referenced by rdbModel::ColCompare::operator()(), tryQuick(), and rdbModel::MysqlConnection::visitColumn().
|
inline |
| const std::string & rdbModel::Column::getTableName | ( | ) | const |
Definition at line 17 of file Column.cxx.
| 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::isAutoIncrement | ( | ) | const |
Definition at line 37 of file Column.cxx.
Referenced by rdbModel::MysqlConnection::visitColumn().
Return true if otherCol and this have compatible datatypes.
Definition at line 32 of file Column.cxx.
Referenced by rdbModel::Assertion::Operator::validCompareOp().
|
inline |
|
inline |
Returns true if column may take on value NULL.
Definition at line 80 of file Column.h.
Referenced by calibUtil::Metadata::checkNulls(), and rdbModel::MysqlConnection::visitColumn().
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().
|
inline |
|
friend |