kexi
KexiDB::AlterTableHandler::ActionBase Class Reference
#include <alter.h>

Detailed Description
Abstract base class used for implementing all the AlterTable actions.Definition at line 157 of file alter.h.
Public Member Functions | |
ActionBase (bool null=false) | |
ChangeFieldPropertyAction & | toChangeFieldPropertyAction () |
RemoveFieldAction & | toRemoveFieldAction () |
InsertFieldAction & | toInsertFieldAction () |
MoveFieldPositionAction & | toMoveFieldPositionAction () |
bool | isNull () const |
virtual QString | 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, QMap< QString, QString > &fieldMap) |
Friends | |
class | AlterTableHandler |
Classes | |
class | DebugOptions |
Controls debug options for actions. Used in debugString() and debug(). More... |
Member Function Documentation
bool KexiDB::AlterTableHandler::ActionBase::isNull | ( | ) | const [inline] |
void KexiDB::AlterTableHandler::ActionBase::setAlteringRequirements | ( | int | alteringRequirements | ) | [inline, protected] |
Sets requirements for altering; used internally by AlterTableHandler object.
virtual void KexiDB::AlterTableHandler::ActionBase::simplifyActions | ( | ActionDictDict & | fieldActions | ) | [inline, protected, virtual] |
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.
virtual bool KexiDB::AlterTableHandler::ActionBase::shouldBeRemoved | ( | ActionDictDict & | fieldActions | ) | [inline, protected, virtual] |
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.
The documentation for this class was generated from the following files: