kexi

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)

Protected Attributes

int m_fieldUID

Member Function Documentation

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

Returns:
field name for this action

Definition at line 239 of file alter.h.

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.

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

Sets field name for this action.

Definition at line 253 of file alter.h.


Member Data Documentation

field's unique identifier,

See also:
uid()

Definition at line 258 of file alter.h.


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