KDbAlterTableHandler::MoveFieldPositionAction
#include <KDbAlter.h>
Public Member Functions | |
MoveFieldPositionAction (int fieldIndex, const QString &fieldName, int uid) | |
QString | debugString (const DebugOptions &debugOptions=DebugOptions()) override |
int | index () const |
void | simplifyActions (ActionDictDict *fieldActions) override |
Public Member Functions inherited from KDbAlterTableHandler::FieldActionBase | |
FieldActionBase (const QString &fieldName, int uid) | |
QString | fieldName () const |
void | setFieldName (const QString &fieldName) |
int | uid () const |
Public Member Functions inherited from KDbAlterTableHandler::ActionBase | |
void | debug (const DebugOptions &debugOptions=DebugOptions()) |
bool | isNull () const |
ChangeFieldPropertyAction & | toChangeFieldPropertyAction () |
InsertFieldAction & | toInsertFieldAction () |
MoveFieldPositionAction & | toMoveFieldPositionAction () |
RemoveFieldAction & | toRemoveFieldAction () |
Protected Member Functions | |
MoveFieldPositionAction (bool null) | |
tristate | execute (KDbConnection *conn, KDbTableSchema *table) override |
void | updateAlteringRequirements () override |
Protected Member Functions inherited from KDbAlterTableHandler::FieldActionBase | |
FieldActionBase (bool null) | |
Protected Member Functions inherited from KDbAlterTableHandler::ActionBase | |
ActionBase (bool null) | |
int | alteringRequirements () const |
void | setAlteringRequirements (int alteringRequirements) |
virtual bool | shouldBeRemoved (ActionDictDict *fieldActions) |
virtual tristate | updateTableSchema (KDbTableSchema *table, KDbField *field, QHash< QString, QString > *fieldHash) |
Protected Attributes | |
int | m_index |
Protected Attributes inherited from KDbAlterTableHandler::FieldActionBase | |
int | m_fieldUID |
Detailed Description
Defines an action for moving a single table field to a different position within table schema.
Definition at line 407 of file KDbAlter.h.
Constructor & Destructor Documentation
◆ MoveFieldPositionAction() [1/2]
KDbAlterTableHandler::MoveFieldPositionAction::MoveFieldPositionAction | ( | int | fieldIndex, |
const QString & | fieldName, | ||
int | uid ) |
Definition at line 713 of file KDbAlter.cpp.
◆ ~MoveFieldPositionAction()
|
override |
Definition at line 726 of file KDbAlter.cpp.
◆ MoveFieldPositionAction() [2/2]
|
explicitprotected |
, used for constructing null action
Definition at line 720 of file KDbAlter.cpp.
Member Function Documentation
◆ debugString()
|
overridevirtual |
Reimplemented from KDbAlterTableHandler::ActionBase.
Definition at line 736 of file KDbAlter.cpp.
◆ execute()
|
overrideprotectedvirtual |
Performs physical execution of this action.
Reimplemented from KDbAlterTableHandler::ActionBase.
Definition at line 752 of file KDbAlter.cpp.
◆ index()
|
inline |
Definition at line 414 of file KDbAlter.h.
◆ simplifyActions()
|
overridevirtual |
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 from KDbAlterTableHandler::ActionBase.
Definition at line 746 of file KDbAlter.cpp.
◆ updateAlteringRequirements()
|
overrideprotectedvirtual |
Reimplemented from KDbAlterTableHandler::ActionBase.
Definition at line 730 of file KDbAlter.cpp.
Member Data Documentation
◆ m_index
|
protected |
Definition at line 430 of file KDbAlter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.