#include <FieldImpl.h>

Public Member Functions | |
| FieldImpl (TableImplPtr table, cstring name, bool text, cstring defaultvalue) | |
| Constructs a new field belonging to the specified table with the specified name, default value and 'textness'. | |
| FieldImpl (TableImplPtr table, cstring name, bool text, bool lookup) | |
| Constructs a new field belonging to the specified table with the specified name 'textness' and lookup possibility. | |
| ~FieldImpl () | |
| Destructor, a noop. | |
| TableImplPtr | getTable () const |
| Returns the table this field belongs to. | |
| const std::string & | getDefaultValue () const |
| Returns the default value for this field. | |
| bool | isLookup () const |
| Whether this field is 'guaranteed' to be unique. | |
| virtual FieldValuePtr | newValue () |
| Returns a new FieldValue for this field. | |
| virtual bool | isKey () const |
| Returns wether this field is a key. | |
| virtual bool | isPrimaryKey () const |
| Returns wether this field is a primary key. | |
This class should not be instantiated manually. Instead, the generated ones contained in TableImpls should be used.
TableImpls
Definition at line 42 of file FieldImpl.h.
| FieldImpl::FieldImpl | ( | TableImplPtr | table, | |
| cstring | name, | |||
| bool | text, | |||
| cstring | defaultvalue | |||
| ) |
Constructs a new field belonging to the specified table with the specified name, default value and 'textness'.
| FieldImpl::FieldImpl | ( | TableImplPtr | table, | |
| cstring | name, | |||
| bool | text, | |||
| bool | lookup | |||
| ) |
Constructs a new field belonging to the specified table with the specified name 'textness' and lookup possibility.
| FieldImpl::~FieldImpl | ( | ) |
Destructor, a noop.
| TableImplPtr FieldImpl::getTable | ( | ) | const [inline] |
| const std::string& FieldImpl::getDefaultValue | ( | ) | const [inline] |
| bool FieldImpl::isLookup | ( | ) | const [inline] |
| virtual FieldValuePtr FieldImpl::newValue | ( | ) | [virtual] |
| virtual bool FieldImpl::isKey | ( | ) | const [inline, virtual] |
Returns wether this field is a key.
Reimplemented from Field.
Reimplemented in KeyImpl.
Definition at line 70 of file FieldImpl.h.
| virtual bool FieldImpl::isPrimaryKey | ( | ) | const [inline, virtual] |
Returns wether this field is a primary key.
Reimplemented in KeyImpl.
Definition at line 73 of file FieldImpl.h.
1.5.3