Kexi API Documentation (2.0 alpha)

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 ~RemoveFieldAction ()
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)
 Performs physical execution of this action.


Constructor & Destructor Documentation

AlterTableHandler::RemoveFieldAction::RemoveFieldAction const QString fieldName,
int  uid
 

Definition at line 453 of file alter.cpp.

AlterTableHandler::RemoveFieldAction::RemoveFieldAction bool   ) 
 

Definition at line 458 of file alter.cpp.

AlterTableHandler::RemoveFieldAction::~RemoveFieldAction  )  [virtual]
 

Definition at line 463 of file alter.cpp.


Member Function Documentation

QString AlterTableHandler::RemoveFieldAction::debugString const DebugOptions &  debugOptions = DebugOptions()  )  [virtual]
 

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 475 of file alter.cpp.

References KexiDB::AlterTableHandler::FieldActionBase::fieldName(), and KexiDB::AlterTableHandler::FieldActionBase::uid().

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 508 of file alter.cpp.

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 489 of file alter.cpp.

References createActionDict(), and KexiDB::AlterTableHandler::FieldActionBase::uid().

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 467 of file alter.cpp.

References KexiDB::AlterTableHandler::PhysicalAlteringRequired, and KexiDB::AlterTableHandler::ActionBase::setAlteringRequirements().

tristate AlterTableHandler::RemoveFieldAction::updateTableSchema TableSchema table,
Field field,
QMap< QString, QString > &  fieldMap
[virtual]
 

Reimplemented from KexiDB::AlterTableHandler::ActionBase.

Definition at line 500 of file alter.cpp.

References KexiDB::Field::name().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:38 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003