class Field

Representation of a field object. More...

Full nameKDB::Field
Definition#include <field.h>
InheritsKDB::Object
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

It knows its name, its datatype, constraints when available (like null/not null) and, when it is part of a record, its value.

The field object can manage only the data type of the underlying column. Conversion operators are provided for all common C++ datatypes. If a conversion is not allowed, a KDB::ConversionException is raised.

It is responsibility of the plugin to instantiate a correct field object for the underlying datatype. For datatypes not supported natively by C++, the Plugin can handle either QStrings or QByteArrays.

The datatype supported are the following:

All numeric types are handled both in signed and unsigned form.

 Field (const char * name)

Field ()

[virtual]

dataType  type ()

QString  name ()

Reimplemented from QObject.

QString  constraint ()

void  operator = (const QString &newVal)

[virtual]

void  operator = (const QDateTime &newVal)

[virtual]

void  operator = (int newVal)

[virtual]

void  operator = (double newVal)

[virtual]

 operator QString ()

[virtual]

 operator int ()

[virtual]

 operator double ()

[virtual]

 operator QDateTime ()

[virtual]

QString val

[protected]


Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.