kexi

KexiDB::AlterTableHandler::ActionBase Class Reference

#include <alter.h>

Inheritance diagram for KexiDB::AlterTableHandler::ActionBase:

KexiDB::AlterTableHandler::FieldActionBase KexiDB::AlterTableHandler::ChangeFieldPropertyAction KexiDB::AlterTableHandler::InsertFieldAction KexiDB::AlterTableHandler::MoveFieldPositionAction KexiDB::AlterTableHandler::RemoveFieldAction

List of all members.


Detailed Description

Abstract base class used for implementing all the AlterTable actions.

Definition at line 157 of file alter.h.


Public Member Functions

 ActionBase (bool null=false)
ChangeFieldPropertyActiontoChangeFieldPropertyAction ()
RemoveFieldActiontoRemoveFieldAction ()
InsertFieldActiontoInsertFieldAction ()
MoveFieldPositionActiontoMoveFieldPositionAction ()
bool isNull () const
virtual QString debugString (const DebugOptions &debugOptions=DebugOptions())
void debug (const DebugOptions &debugOptions=DebugOptions())

Protected Member Functions

void setAlteringRequirements (int alteringRequirements)
int alteringRequirements () const
virtual void updateAlteringRequirements ()
virtual void simplifyActions (ActionDictDict &fieldActions)
virtual bool shouldBeRemoved (ActionDictDict &fieldActions)
virtual tristate updateTableSchema (TableSchema &table, Field *field, QMap< QString, QString > &fieldMap)

Friends

class AlterTableHandler

Classes

class  DebugOptions
 Controls debug options for actions. Used in debugString() and debug(). More...

Member Function Documentation

bool KexiDB::AlterTableHandler::ActionBase::isNull (  )  const [inline]

Returns:
true if the action is NULL; used in the Table Designer for temporarily collecting actions that have no effect at all.

Definition at line 169 of file alter.h.

void KexiDB::AlterTableHandler::ActionBase::setAlteringRequirements ( int  alteringRequirements  )  [inline, protected]

Sets requirements for altering; used internally by AlterTableHandler object.

Definition at line 193 of file alter.h.

virtual void KexiDB::AlterTableHandler::ActionBase::simplifyActions ( ActionDictDict fieldActions  )  [inline, protected, 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.

Reimplemented in KexiDB::AlterTableHandler::ChangeFieldPropertyAction, KexiDB::AlterTableHandler::RemoveFieldAction, KexiDB::AlterTableHandler::InsertFieldAction, and KexiDB::AlterTableHandler::MoveFieldPositionAction.

Definition at line 203 of file alter.h.

virtual bool KexiDB::AlterTableHandler::ActionBase::shouldBeRemoved ( ActionDictDict fieldActions  )  [inline, protected, virtual]

After calling simplifyActions() for each action, shouldBeRemoved() is called for them as an additional step. This is used for ChangeFieldPropertyAction items so actions that do not change property values are removed.

Reimplemented in KexiDB::AlterTableHandler::ChangeFieldPropertyAction.

Definition at line 209 of file alter.h.


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