KDbAlterTableHandler::ActionBase
#include <KDbAlter.h>

Classes | |
class | DebugOptions |
Public Member Functions | |
void | debug (const DebugOptions &debugOptions=DebugOptions()) |
virtual QString | debugString (const DebugOptions &debugOptions=DebugOptions()) |
bool | isNull () const |
ChangeFieldPropertyAction & | toChangeFieldPropertyAction () |
InsertFieldAction & | toInsertFieldAction () |
MoveFieldPositionAction & | toMoveFieldPositionAction () |
RemoveFieldAction & | toRemoveFieldAction () |
Protected Member Functions | |
ActionBase (bool null) | |
int | alteringRequirements () const |
void | setAlteringRequirements (int alteringRequirements) |
virtual bool | shouldBeRemoved (ActionDictDict *fieldActions) |
virtual void | simplifyActions (ActionDictDict *fieldActions) |
virtual void | updateAlteringRequirements () |
virtual tristate | updateTableSchema (KDbTableSchema *table, KDbField *field, QHash< QString, QString > *fieldHash) |
Detailed Description
Abstract base class used for implementing all the AlterTable actions.
Definition at line 158 of file KDbAlter.h.
Constructor & Destructor Documentation
◆ ActionBase()
|
explicitprotected |
, used for constructing null action
Definition at line 60 of file KDbAlter.cpp.
Member Function Documentation
◆ debug()
void KDbAlterTableHandler::ActionBase::debug | ( | const DebugOptions & | debugOptions = DebugOptions() | ) |
Definition at line 99 of file KDbAlter.cpp.
◆ isNull()
|
inline |
- Returns
- true if the action is NULL; used in the Table Designer for temporarily collecting actions that have no effect at all.
Definition at line 170 of file KDbAlter.h.
◆ setAlteringRequirements()
|
inlineprotected |
Sets requirements for altering; used internally by KDbAlterTableHandler object.
Definition at line 200 of file KDbAlter.h.
◆ 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 KDbAlterTableHandler::ChangeFieldPropertyAction.
Definition at line 221 of file KDbAlter.h.
◆ 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 KDbAlterTableHandler::MoveFieldPositionAction, KDbAlterTableHandler::InsertFieldAction, KDbAlterTableHandler::RemoveFieldAction, and KDbAlterTableHandler::ChangeFieldPropertyAction.
Definition at line 213 of file KDbAlter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:09:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.