KexiDB::AlterTableHandler::InsertFieldAction Class Reference
#include <alter.h>
Inheritance diagram for KexiDB::AlterTableHandler::InsertFieldAction:

Detailed Description
Defines an action for inserting a single table field.
Definition at line 322 of file alter.h.
Public Member Functions | |
| InsertFieldAction (int fieldIndex, KexiDB::Field *newField, int uid) | |
| InsertFieldAction (const InsertFieldAction &action) | |
| InsertFieldAction (bool) | |
| virtual | ~InsertFieldAction () |
| int | index () const |
| void | setIndex (int index) |
| KexiDB::Field & | field () const |
| void | setField (KexiDB::Field *field) |
| virtual QString | debugString (const DebugOptions &debugOptions=DebugOptions()) |
| virtual void | simplifyActions (ActionDictDict &fieldActions) |
| virtual tristate | updateTableSchema (TableSchema &table, Field *field, QMap< QString, QString > &fieldMap) |
Protected Member Functions | |
| virtual void | updateAlteringRequirements () |
| virtual tristate | execute (Connection &conn, TableSchema &table) |
| Performs physical execution of this action. | |
Protected Attributes | |
| int | m_index |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 518 of file alter.cpp. References setField(). |
|
|
Definition at line 527 of file alter.cpp. References field(). |
|
|
|
|
|
|
Member Function Documentation
|
|
Reimplemented from KexiDB::AlterTableHandler::ActionBase. Definition at line 562 of file alter.cpp. References KexiDB::Field::debugString(), KexiDB::AlterTableHandler::FieldActionBase::m_fieldUID, m_index, and KexiDB::Field::name(). Referenced by simplifyActions(). |
|
||||||||||||
|
Performs physical execution of this action.
Reimplemented from KexiDB::AlterTableHandler::ActionBase. |
|
|
Definition at line 332 of file alter.h. Referenced by InsertFieldAction(), and simplifyActions(). |
|
|
|
Definition at line 546 of file alter.cpp. References KexiDB::Field::name(), and KexiDB::AlterTableHandler::FieldActionBase::setFieldName(). Referenced by InsertFieldAction(), and simplifyActions(). |
|
|
Definition at line 331 of file alter.h. Referenced by KexiDB::AlterTableHandler::execute(). |
|
|
Legend: A,B==fields, P==property, [....]==action, (..,..,..) group of actions, <...> internal operation. Case 1: there are "change property" actions after the Insert action. -> change the properties in the Insert action itself and remove the "change property" actions. Examples: [Insert A] && [rename A to B] => [Insert B] [Insert A] && [change property P in field A] => [Insert A with P altered] Comment: we need to do this reduction because otherwise we'd need to do psyhical altering right after [Insert A] if [rename A to B] follows.
Reimplemented from KexiDB::AlterTableHandler::ActionBase. Definition at line 585 of file alter.cpp. References createActionDict(), debugString(), field(), KexiDBWarn, setField(), KexiDB::AlterTableHandler::FieldActionBase::setFieldName(), KexiDB::setFieldProperties(), and KexiDB::AlterTableHandler::FieldActionBase::uid(). |
|
|
Reimplemented from KexiDB::AlterTableHandler::ActionBase. Definition at line 554 of file alter.cpp. References KexiDB::AlterTableHandler::PhysicalAlteringRequired, and KexiDB::AlterTableHandler::ActionBase::setAlteringRequirements(). |
|
||||||||||||||||
|
Reimplemented from KexiDB::AlterTableHandler::ActionBase. Definition at line 646 of file alter.cpp. References index(). |
Member Data Documentation
|
|
Definition at line 347 of file alter.h. Referenced by debugString(). |
The documentation for this class was generated from the following files:
