kexi

KexiDB::AlterTableHandler::RemoveFieldAction Class Reference

#include <alter.h>

Inheritance diagram for KexiDB::AlterTableHandler::RemoveFieldAction:

KexiDB::AlterTableHandler::FieldActionBase KexiDB::AlterTableHandler::ActionBase

List of all members.


Detailed Description

Defines an action for removing a single table field.

Definition at line 301 of file alter.h.


Public Member Functions

 RemoveFieldAction (const QString &fieldName, int uid)
 RemoveFieldAction (bool)
virtual QString debugString (const DebugOptions &debugOptions=DebugOptions())
virtual void simplifyActions (ActionDictDict &fieldActions)
virtual tristate updateTableSchema (TableSchema &table, Field *field, QMap< QString, QString > &fieldMap)

Protected Member Functions

virtual void updateAlteringRequirements ()
virtual tristate execute (Connection &conn, TableSchema &table)

Member Function Documentation

void AlterTableHandler::RemoveFieldAction::simplifyActions ( ActionDictDict fieldActions  )  [virtual]

Legend: A,B==objects, P==property, [....]==action, (..,..,..) group of actions, <...> internal operation. Preconditions: we assume there cannot be such case encountered: ([remove A], [do something related on A]) (except for [remove A], [insert A]) General Case: it's safe to always insert a [remove A] action.

Todo:
not checked

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 510 of file alter.cpp.

void AlterTableHandler::RemoveFieldAction::updateAlteringRequirements (  )  [protected, virtual]

Todo:
sometimes add DataConversionRequired (e.g. when relationships require removing orphaned records) ?

Todo:

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 488 of file alter.cpp.

tristate AlterTableHandler::RemoveFieldAction::execute ( Connection conn,
TableSchema table 
) [protected, virtual]

Performs physical execution of this action.

Todo:

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 529 of file alter.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys