KexiDB::AlterTableHandler::RemoveFieldAction Class Reference
#include <alter.h>
Inheritance diagram for KexiDB::AlterTableHandler::RemoveFieldAction:
Public Member Functions | |
| RemoveFieldAction (const TQString &fieldName, int uid) | |
| RemoveFieldAction (bool) | |
| virtual TQString | debugString (const DebugOptions &debugOptions=DebugOptions()) |
| virtual void | simplifyActions (ActionDictDict &fieldActions) |
| virtual tristate | updateTableSchema (TableSchema &table, Field *field, TQMap< TQString, TQString > &fieldMap) |
Public Member Functions inherited from KexiDB::AlterTableHandler::FieldActionBase | |
| FieldActionBase (const TQString &fieldName, int uid) | |
| FieldActionBase (bool) | |
| TQString | fieldName () const |
| int | uid () const |
| void | setFieldName (const TQString &fieldName) |
Public Member Functions inherited from KexiDB::AlterTableHandler::ActionBase | |
| ActionBase (bool null=false) | |
| ChangeFieldPropertyAction & | toChangeFieldPropertyAction () |
| RemoveFieldAction & | toRemoveFieldAction () |
| InsertFieldAction & | toInsertFieldAction () |
| MoveFieldPositionAction & | toMoveFieldPositionAction () |
| bool | isNull () const |
| void | debug (const DebugOptions &debugOptions=DebugOptions()) |
Protected Member Functions | |
| virtual void | updateAlteringRequirements () |
| virtual tristate | execute (Connection &conn, TableSchema &table) |
Protected Member Functions inherited from KexiDB::AlterTableHandler::ActionBase | |
| void | setAlteringRequirements (int alteringRequirements) |
| int | alteringRequirements () const |
| virtual bool | shouldBeRemoved (ActionDictDict &fieldActions) |
Additional Inherited Members | |
Protected Attributes inherited from KexiDB::AlterTableHandler::FieldActionBase | |
| int | m_fieldUID |
Detailed Description
Constructor & Destructor Documentation
◆ RemoveFieldAction() [1/2]
| AlterTableHandler::RemoveFieldAction::RemoveFieldAction | ( | const TQString & | fieldName, |
| int | uid | ||
| ) |
◆ RemoveFieldAction() [2/2]
| AlterTableHandler::RemoveFieldAction::RemoveFieldAction | ( | bool | ) |
◆ ~RemoveFieldAction()
|
virtual |
Member Function Documentation
◆ debugString()
|
virtual |
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ execute()
|
protectedvirtual |
Performs physical execution of this action.
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ simplifyActions()
|
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.
◆ updateAlteringRequirements()
|
protectedvirtual |
- Todo:
- sometimes add DataConversionRequired (e.g. when relationships require removing orphaned records) ?
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
◆ updateTableSchema()
|
virtual |
Reimplemented from KexiDB::AlterTableHandler::ActionBase.
The documentation for this class was generated from the following files:

Public Member Functions inherited from