#include <alter.h>
Classes | |
| class | DebugOptions |
Public Member Functions | |
| ActionBase (bool null=false) | |
| ChangeFieldPropertyAction & | toChangeFieldPropertyAction () |
| RemoveFieldAction & | toRemoveFieldAction () |
| InsertFieldAction & | toInsertFieldAction () |
| MoveFieldPositionAction & | toMoveFieldPositionAction () |
| bool | isNull () const |
| virtual TQString | debugString (const DebugOptions &debugOptions=DebugOptions()) |
| void | debug (const DebugOptions &debugOptions=DebugOptions()) |
Protected Member Functions | |
| void | setAlteringRequirements (int alteringRequirements) |
| int | alteringRequirements () const |
| virtual void | updateAlteringRequirements () |
| virtual void | simplifyActions (ActionDictDict &fieldActions) |
| virtual bool | shouldBeRemoved (ActionDictDict &fieldActions) |
| virtual tristate | updateTableSchema (TableSchema &table, Field *field, TQMap< TQString, TQString > &fieldMap) |
Friends | |
| class | AlterTableHandler |
Detailed Description
Abstract base class used for implementing all the AlterTable actions.
Constructor & Destructor Documentation
◆ ActionBase()
| AlterTableHandler::ActionBase::ActionBase | ( | bool | null = false | ) |
◆ ~ActionBase()
Member Function Documentation
◆ alteringRequirements()
|
inlineprotected |
◆ debug()
|
inline |
◆ debugString()
|
inlinevirtual |
◆ isNull()
|
inline |
◆ setAlteringRequirements()
|
inlineprotected |
Sets requirements for altering; used internally by AlterTableHandler object.
◆ shouldBeRemoved()
|
inlineprotectedvirtual |
After calling simplifyActions() for each action, shouldBeRemoved() is called for them as an additional step. This is used for ChangeFieldPropertyAction items so actions that do not change property values are removed.
Reimplemented in KexiDB::AlterTableHandler::ChangeFieldPropertyAction.
◆ simplifyActions()
|
inlineprotectedvirtual |
Simplifies fieldActions dictionary. If this action has to be inserted Into the dictionary, an ActionDict is created first and then a copy of this action is inserted into it.
Reimplemented in KexiDB::AlterTableHandler::ChangeFieldPropertyAction, KexiDB::AlterTableHandler::RemoveFieldAction, KexiDB::AlterTableHandler::InsertFieldAction, and KexiDB::AlterTableHandler::MoveFieldPositionAction.
◆ toChangeFieldPropertyAction()
| AlterTableHandler::ChangeFieldPropertyAction & AlterTableHandler::ActionBase::toChangeFieldPropertyAction | ( | ) |
◆ toInsertFieldAction()
| AlterTableHandler::InsertFieldAction & AlterTableHandler::ActionBase::toInsertFieldAction | ( | ) |
◆ toMoveFieldPositionAction()
| AlterTableHandler::MoveFieldPositionAction & AlterTableHandler::ActionBase::toMoveFieldPositionAction | ( | ) |
◆ toRemoveFieldAction()
| AlterTableHandler::RemoveFieldAction & AlterTableHandler::ActionBase::toRemoveFieldAction | ( | ) |
◆ updateAlteringRequirements()
|
inlineprotectedvirtual |
◆ updateTableSchema()
|
inlineprotectedvirtual |
Reimplemented in KexiDB::AlterTableHandler::InsertFieldAction.
Friends And Related Symbol Documentation
◆ AlterTableHandler
|
friend |
The documentation for this class was generated from the following files:
