Kexi API Documentation (2.0 alpha)

alter.cpp File Reference

#include "alter.h"
#include "utils.h"
#include <kexiutils/utils.h>
#include <qmap.h>
#include <kstaticdeleter.h>
#include <stdlib.h>

Go to the source code of this file.

Namespaces

namespace  KexiDB

Defines

#define I(name, type)   KexiDB_alteringTypeForProperty->insert(QCString(name).lower(), (int)AlterTableHandler::type)
#define I2(name, type1, type2)

Functions

static AlterTableHandler::ActionDict * createActionDict (AlterTableHandler::ActionDictDict &fieldActions, int forFieldUID)
static void debugAction (AlterTableHandler::ActionBase *action, int nestingLevel, bool simulate, const QString &prependString=QString::null, QString *debugTarget=0)
static void debugActionDict (AlterTableHandler::ActionDict *dict, int fieldUID, bool simulate)
static void debugFieldActions (const AlterTableHandler::ActionDictDict &fieldActions, bool simulate)

Variables

AlterTableHandler::ChangeFieldPropertyAction nullChangeFieldPropertyAction (true)
 a global instance used to when returning null is needed
AlterTableHandler::RemoveFieldAction nullRemoveFieldAction (true)
AlterTableHandler::InsertFieldAction nullInsertFieldAction (true)
AlterTableHandler::MoveFieldPositionAction nullMoveFieldPositionAction (true)
static KStaticDeleter< QMap<
QCString, int > > 
KexiDB_alteringTypeForProperty_deleter
QMap< QCString, int > * KexiDB_alteringTypeForProperty = 0


Define Documentation

#define I name,
type   )     KexiDB_alteringTypeForProperty->insert(QCString(name).lower(), (int)AlterTableHandler::type)
 

Referenced by KexiDB::AlterTableHandler::alteringTypeForProperty().

#define I2 name,
type1,
type2   ) 
 

Value:

flag = (int)AlterTableHandler::type1|(int)AlterTableHandler::type2; \
    if (flag & AlterTableHandler::PhysicalAlteringRequired) \
        flag |= AlterTableHandler::MainSchemaAlteringRequired; \
    KexiDB_alteringTypeForProperty->insert(QCString(name).lower(), flag)

Referenced by KexiDB::AlterTableHandler::alteringTypeForProperty().


Function Documentation

static AlterTableHandler::ActionDict* createActionDict AlterTableHandler::ActionDictDict &  fieldActions,
int  forFieldUID
[static]
 

Definition at line 202 of file alter.cpp.

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

static void debugAction AlterTableHandler::ActionBase action,
int  nestingLevel,
bool  simulate,
const QString prependString = QString::null,
QString debugTarget = 0
[static]
 

Definition at line 211 of file alter.cpp.

References KexiDBDbg, KexiDB::AlterTableHandler::ActionBase::DebugOptions::showFieldDebug, and KexiDB::AlterTableHandler::ActionBase::DebugOptions::showUID.

Referenced by debugActionDict(), and KexiDB::AlterTableHandler::execute().

static void debugActionDict AlterTableHandler::ActionDict *  dict,
int  fieldUID,
bool  simulate
[static]
 

Definition at line 240 of file alter.cpp.

References debugAction(), and KexiDBDbg.

Referenced by debugFieldActions().

static void debugFieldActions const AlterTableHandler::ActionDictDict &  fieldActions,
bool  simulate
[static]
 

Definition at line 260 of file alter.cpp.

References debugActionDict().

Referenced by KexiDB::AlterTableHandler::execute().


Variable Documentation

QMap<QCString,int>* KexiDB_alteringTypeForProperty = 0
 

Definition at line 114 of file alter.cpp.

Referenced by KexiDB::AlterTableHandler::alteringTypeForProperty().

KStaticDeleter< QMap<QCString,int> > KexiDB_alteringTypeForProperty_deleter [static]
 

Definition at line 113 of file alter.cpp.

Referenced by KexiDB::AlterTableHandler::alteringTypeForProperty().

AlterTableHandler::ChangeFieldPropertyAction nullChangeFieldPropertyAction(true)
 

a global instance used to when returning null is needed

Referenced by KexiDB::AlterTableHandler::ActionBase::toChangeFieldPropertyAction().

AlterTableHandler::InsertFieldAction nullInsertFieldAction(true)
 

Referenced by KexiDB::AlterTableHandler::ActionBase::toInsertFieldAction().

AlterTableHandler::MoveFieldPositionAction nullMoveFieldPositionAction(true)
 

Referenced by KexiDB::AlterTableHandler::ActionBase::toMoveFieldPositionAction().

AlterTableHandler::RemoveFieldAction nullRemoveFieldAction(true)
 

Referenced by KexiDB::AlterTableHandler::ActionBase::toRemoveFieldAction().

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:48:59 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003