kexi

KexiDB::AlterTableHandler::MoveFieldPositionAction Class Reference

#include <alter.h>

Inheritance diagram for KexiDB::AlterTableHandler::MoveFieldPositionAction:
KexiDB::AlterTableHandler::FieldActionBase KexiDB::AlterTableHandler::ActionBase

Public Member Functions

 MoveFieldPositionAction (int fieldIndex, const TQString &fieldName, int uid)
 MoveFieldPositionAction (bool)
int index () const
virtual TQString debugString (const DebugOptions &debugOptions=DebugOptions())
virtual void simplifyActions (ActionDictDict &fieldActions)
Public Member Functions inherited from KexiDB::AlterTableHandler::FieldActionBase
 FieldActionBase (const TQString &fieldName, int uid)
 FieldActionBase (bool)
TQString fieldName () const
int uid () const
void setFieldName (const TQString &fieldName)
Public Member Functions inherited from KexiDB::AlterTableHandler::ActionBase
 ActionBase (bool null=false)
ChangeFieldPropertyAction & toChangeFieldPropertyAction ()
RemoveFieldAction & toRemoveFieldAction ()
InsertFieldAction & toInsertFieldAction ()
MoveFieldPositionAction & toMoveFieldPositionAction ()
bool isNull () const
void debug (const DebugOptions &debugOptions=DebugOptions())

Protected Member Functions

virtual void updateAlteringRequirements ()
virtual tristate execute (Connection &conn, TableSchema &table)
Protected Member Functions inherited from KexiDB::AlterTableHandler::ActionBase
void setAlteringRequirements (int alteringRequirements)
int alteringRequirements () const
virtual bool shouldBeRemoved (ActionDictDict &fieldActions)
virtual tristate updateTableSchema (TableSchema &table, Field *field, TQMap< TQString, TQString > &fieldMap)

Protected Attributes

int m_index
Protected Attributes inherited from KexiDB::AlterTableHandler::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 355 of file alter.h.

Constructor & Destructor Documentation

◆ MoveFieldPositionAction() [1/2]

AlterTableHandler::MoveFieldPositionAction::MoveFieldPositionAction ( int fieldIndex,
const TQString & fieldName,
int uid )

Definition at line 688 of file alter.cpp.

◆ MoveFieldPositionAction() [2/2]

AlterTableHandler::MoveFieldPositionAction::MoveFieldPositionAction ( bool )

Definition at line 695 of file alter.cpp.

◆ ~MoveFieldPositionAction()

AlterTableHandler::MoveFieldPositionAction::~MoveFieldPositionAction ( )
virtual

Definition at line 700 of file alter.cpp.

Member Function Documentation

◆ debugString()

TQString AlterTableHandler::MoveFieldPositionAction::debugString ( const DebugOptions & debugOptions = DebugOptions())
virtual

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 710 of file alter.cpp.

◆ execute()

tristate AlterTableHandler::MoveFieldPositionAction::execute ( Connection & conn,
TableSchema & table )
protectedvirtual

Performs physical execution of this action.

Todo

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 725 of file alter.cpp.

◆ index()

int KexiDB::AlterTableHandler::MoveFieldPositionAction::index ( ) const
inline

Definition at line 361 of file alter.h.

◆ simplifyActions()

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

Todo

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 719 of file alter.cpp.

◆ updateAlteringRequirements()

void AlterTableHandler::MoveFieldPositionAction::updateAlteringRequirements ( )
protectedvirtual
Todo

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 704 of file alter.cpp.

Member Data Documentation

◆ m_index

int KexiDB::AlterTableHandler::MoveFieldPositionAction::m_index
protected

Definition at line 372 of file alter.h.


The documentation for this class was generated from the following files: