Kexi API Documentation (2.0 alpha)

KexiDB::AlterTableHandler::FieldActionBase Class Reference

#include <alter.h>

Inheritance diagram for KexiDB::AlterTableHandler::FieldActionBase:

KexiDB::AlterTableHandler::ActionBase KexiDB::AlterTableHandler::ChangeFieldPropertyAction KexiDB::AlterTableHandler::InsertFieldAction KexiDB::AlterTableHandler::MoveFieldPositionAction KexiDB::AlterTableHandler::RemoveFieldAction List of all members.

Detailed Description

Abstract base class used for implementing table field-related actions.

Definition at line 232 of file alter.h.

Public Member Functions

 FieldActionBase (const QString &fieldName, int uid)
 FieldActionBase (bool)
virtual ~FieldActionBase ()
QString fieldName () const
int uid () const
void setFieldName (const QString &fieldName)
 Sets field name for this action.

Protected Attributes

int m_fieldUID
 field's unique identifier,


Constructor & Destructor Documentation

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

Definition at line 94 of file alter.cpp.

AlterTableHandler::FieldActionBase::FieldActionBase bool   ) 
 

Definition at line 101 of file alter.cpp.

AlterTableHandler::FieldActionBase::~FieldActionBase  )  [virtual]
 

Definition at line 107 of file alter.cpp.


Member Function Documentation

QString KexiDB::AlterTableHandler::FieldActionBase::fieldName  )  const [inline]
 

Returns:
field name for this action

Definition at line 239 of file alter.h.

Referenced by KexiDB::AlterTableHandler::MoveFieldPositionAction::debugString(), KexiDB::AlterTableHandler::RemoveFieldAction::debugString(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::debugString(), KexiDB::AlterTableHandler::execute(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::execute(), KexiTableDesignerCommands::RemoveFieldCommand::name(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::shouldBeRemoved(), and KexiDB::AlterTableHandler::ChangeFieldPropertyAction::simplifyActions().

void KexiDB::AlterTableHandler::FieldActionBase::setFieldName const QString fieldName  )  [inline]
 

Sets field name for this action.

Definition at line 253 of file alter.h.

Referenced by KexiDB::AlterTableHandler::InsertFieldAction::setField(), and KexiDB::AlterTableHandler::InsertFieldAction::simplifyActions().

int KexiDB::AlterTableHandler::FieldActionBase::uid  )  const [inline]
 

Returns:
field's unique identifier This id is needed because in the meantime there can be more than one field sharing the same name, so we need to identify them unambiguously. After the (valid) altering is completed all the names will be unique.
Example scenario when user exchanged the field names: 1. At the beginning: [field A], [field B] 2. Rename the 1st field to B: [field B], [field B] 3. Rename the 2nd field to A: [field B], [field A]

Definition at line 250 of file alter.h.

Referenced by KexiTableDesignerCommands::RemoveFieldCommand::debugString(), KexiTableDesignerCommands::ChangeFieldPropertyCommand::debugString(), KexiDB::AlterTableHandler::MoveFieldPositionAction::debugString(), KexiDB::AlterTableHandler::RemoveFieldAction::debugString(), KexiTableDesignerCommands::ChangePropertyVisibilityCommand::execute(), KexiTableDesignerCommands::ChangeFieldPropertyCommand::execute(), KexiDB::AlterTableHandler::execute(), KexiDB::AlterTableHandler::InsertFieldAction::simplifyActions(), KexiDB::AlterTableHandler::RemoveFieldAction::simplifyActions(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::simplifyActions(), KexiTableDesignerCommands::ChangePropertyVisibilityCommand::unexecute(), and KexiTableDesignerCommands::ChangeFieldPropertyCommand::unexecute().


Member Data Documentation

int KexiDB::AlterTableHandler::FieldActionBase::m_fieldUID [protected]
 

field's unique identifier,

See also:
uid()

Definition at line 258 of file alter.h.

Referenced by KexiDB::AlterTableHandler::InsertFieldAction::debugString(), and KexiDB::AlterTableHandler::ChangeFieldPropertyAction::debugString().


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