#include <alter.h>
Protected Member Functions | |
| virtual void | updateAlteringRequirements () |
| virtual tristate | execute (Connection &conn, TableSchema &table) |
| Protected Member Functions inherited from KexiDB::AlterTableHandler::ActionBase | |
| void | setAlteringRequirements (int alteringRequirements) |
| int | alteringRequirements () const |
| virtual bool | shouldBeRemoved (ActionDictDict &fieldActions) |
Protected Attributes | |
| int | m_index |
| Protected Attributes inherited from KexiDB::AlterTableHandler::FieldActionBase | |
| int | m_fieldUID |
Detailed Description
Constructor & Destructor Documentation
◆ InsertFieldAction() [1/3]
| AlterTableHandler::InsertFieldAction::InsertFieldAction | ( | int | fieldIndex, |
| KexiDB::Field * | newField, | ||
| int | uid ) |
◆ InsertFieldAction() [2/3]
| AlterTableHandler::InsertFieldAction::InsertFieldAction | ( | const InsertFieldAction & | action | ) |
◆ InsertFieldAction() [3/3]
| AlterTableHandler::InsertFieldAction::InsertFieldAction | ( | bool | ) |
◆ ~InsertFieldAction()
|
virtual |
Member Function Documentation
◆ debugString()
|
virtual |
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ execute()
|
protectedvirtual |
Performs physical execution of this action.
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ field()
|
inline |
◆ index()
|
inline |
◆ setField()
| void AlterTableHandler::InsertFieldAction::setField | ( | KexiDB::Field * | field | ) |
◆ setIndex()
|
inline |
◆ simplifyActions()
|
virtual |
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.
- Todo
- not checked
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ updateAlteringRequirements()
|
protectedvirtual |
- Todo
- sometimes add DataConversionRequired (e.g. when relationships require removing orphaned records) ?
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ updateTableSchema()
|
virtual |
- Todo
- add it only when there should be fixed value (e.g. default) set for this new field...
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
Member Data Documentation
◆ m_index
|
protected |
The documentation for this class was generated from the following files:
