KDbAlterTableHandler::MoveFieldPositionAction

Search for usage in LXR

KDbAlterTableHandler::MoveFieldPositionAction Class Reference

#include <KDbAlter.h>

Inheritance diagram for KDbAlterTableHandler::MoveFieldPositionAction:

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
 
ChangeFieldPropertyActiontoChangeFieldPropertyAction ()
 
InsertFieldActiontoInsertFieldAction ()
 
MoveFieldPositionActiontoMoveFieldPositionAction ()
 
RemoveFieldActiontoRemoveFieldAction ()
 

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()

KDbAlterTableHandler::MoveFieldPositionAction::MoveFieldPositionAction ( bool  null)
explicitprotected

, used for constructing null action

Definition at line 720 of file KDbAlter.cpp.

Member Function Documentation

◆ execute()

tristate KDbAlterTableHandler::MoveFieldPositionAction::execute ( KDbConnection conn,
KDbTableSchema table 
)
overrideprotectedvirtual

Performs physical execution of this action.

Todo:

Reimplemented from KDbAlterTableHandler::ActionBase.

Definition at line 752 of file KDbAlter.cpp.

◆ simplifyActions()

void KDbAlterTableHandler::MoveFieldPositionAction::simplifyActions ( ActionDictDict fieldActions)
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.

Todo:

Reimplemented from KDbAlterTableHandler::ActionBase.

Definition at line 746 of file KDbAlter.cpp.

◆ updateAlteringRequirements()

void KDbAlterTableHandler::MoveFieldPositionAction::updateAlteringRequirements ( )
overrideprotectedvirtual
Todo:

Reimplemented from KDbAlterTableHandler::ActionBase.

Definition at line 730 of file KDbAlter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Nov 29 2022 04:08:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.