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() [1/2]

KDbAlterTableHandler::MoveFieldPositionAction::MoveFieldPositionAction ( int fieldIndex,
const QString & fieldName,
int uid )

Definition at line 713 of file KDbAlter.cpp.

◆ ~MoveFieldPositionAction()

KDbAlterTableHandler::MoveFieldPositionAction::~MoveFieldPositionAction ( )
override

Definition at line 726 of file KDbAlter.cpp.

◆ MoveFieldPositionAction() [2/2]

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

, used for constructing null action

Definition at line 720 of file KDbAlter.cpp.

Member Function Documentation

◆ debugString()

QString KDbAlterTableHandler::MoveFieldPositionAction::debugString ( const DebugOptions & debugOptions = DebugOptions())
overridevirtual

Reimplemented from KDbAlterTableHandler::ActionBase.

Definition at line 736 of file KDbAlter.cpp.

◆ 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.

◆ index()

int KDbAlterTableHandler::MoveFieldPositionAction::index ( ) const
inline

Definition at line 414 of file KDbAlter.h.

◆ 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.

Member Data Documentation

◆ m_index

int KDbAlterTableHandler::MoveFieldPositionAction::m_index
protected

Definition at line 430 of file KDbAlter.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:01 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.