#include <FieldDef.h>
Public Member Functions | |
FieldDef (const std::string &name, bool text, const std::string &defaultvalue=Global::Get()->EmptyString) | |
Construct a FieldDef with the specified name, defaultvalue and 'textness'. | |
FieldDef (const std::string &name, bool text, bool lookup) | |
Construct a FieldDef with the specified name, lookup and 'textness'. | |
virtual | ~FieldDef () |
Destructor, a noop. | |
std::string | creationString () const |
Returns the SQL string to generate this field. | |
const std::string & | getName () const |
Returns the name of the field. | |
bool | isText () const |
Returns whether this field is a text field. | |
const std::string & | getDefaultValue () const |
Returns the default value for this field. | |
bool | isLookup () const |
Whether this is a lookup field. | |
virtual bool | isKey () const |
Whether this field is a key. | |
virtual bool | isPrimaryKey () const |
Whether this field is a primary key. |
Based on this class FieldImpl's will be generated.
Definition at line 37 of file FieldDef.h.
FieldDef::FieldDef | ( | const std::string & | name, | |
bool | text, | |||
const std::string & | defaultvalue = Global::Get()->EmptyString | |||
) |
Construct a FieldDef with the specified name, defaultvalue and 'textness'.
FieldDef::FieldDef | ( | const std::string & | name, | |
bool | text, | |||
bool | lookup | |||
) |
Construct a FieldDef with the specified name, lookup and 'textness'.
virtual FieldDef::~FieldDef | ( | ) | [virtual] |
Destructor, a noop.
std::string FieldDef::creationString | ( | ) | const |
Returns the SQL string to generate this field.
const std::string& FieldDef::getName | ( | ) | const [inline] |
bool FieldDef::isText | ( | ) | const [inline] |
const std::string& FieldDef::getDefaultValue | ( | ) | const [inline] |
bool FieldDef::isLookup | ( | ) | const [inline] |
virtual bool FieldDef::isKey | ( | ) | const [inline, virtual] |
virtual bool FieldDef::isPrimaryKey | ( | ) | const [inline, virtual] |
Whether this field is a primary key.
Reimplemented in KeyDef.
Definition at line 69 of file FieldDef.h.