#include <KeyImpl.h>
Public Member Functions | |
KeyImpl (TableImplPtr nativeTable, TableImplPtr foreignTable, cstring name, bool primary, bool lookup=false) | |
Construct a foreign key belonging to the specified native table to the specified foreign table with the specified name. | |
~KeyImpl () | |
Destructor, a noop. | |
FieldValuePtr | newValue () |
Returns a new FieldValue for this field. | |
TableImplPtr | getForeignTable () const |
Returns the foreign table this key points to, is equal to the native table in the case of a native key. | |
bool | isKey () const |
Returns that this is a key field. | |
bool | isPrimaryKey () const |
Returns wether this field is a primary key. | |
bool | isForeignKey () const |
Returns whether this is a foreign 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 KeyImpl.h.
KeyImpl::KeyImpl | ( | TableImplPtr | nativeTable, | |
TableImplPtr | foreignTable, | |||
cstring | name, | |||
bool | primary, | |||
bool | lookup = false | |||
) |
Construct a foreign key belonging to the specified native table to the specified foreign table with the specified name.
FieldValuePtr KeyImpl::newValue | ( | ) | [virtual] |
TableImplPtr KeyImpl::getForeignTable | ( | ) | const |
Returns the foreign table this key points to, is equal to the native table in the case of a native key.
bool KeyImpl::isKey | ( | ) | const [inline, virtual] |
bool KeyImpl::isPrimaryKey | ( | ) | const [inline, virtual] |
bool KeyImpl::isForeignKey | ( | ) | const |
Returns whether this is a foreign key.