Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members
KDB::Field Class Reference
Representation of a field object.
More...
#include <field.h>
Inheritance diagram for KDB::Field:
List of all members.
Detailed Description
Representation of a field object.
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:
- QString (can be used for unknown datatypes)
- QStringList (for sets and one-dimensional array)
- QDateTime
- QByteArray (for BLOBs and Unknown datatypes)
- char
- short
- int
- long
- float
- double
- long double
- bool
All numeric types are handled both in signed and unsigned form.
-
Author(s):
-
Alessandro Praduroux <pradu@thekompany.com> , Michael Koch <m_kock@bigfoot.de>
-
Version:
-
kdbcore 0.0.2
Constructor & Destructor Documentation
Member Function Documentation
|
void operator= (
|
double newVal )
|
|
|
void operator= (
|
int newVal )
|
|
|
void operator= (
|
const QDateTime & newVal )
|
|
|
void operator= (
|
const QString & newVal )
|
|
|
unsigned int precision (
|
)
|
|
|
void setAcceptNull (
|
bool )
|
|
|
void setConstraint (
|
const QString & val )
|
|
|
void setPrecision (
|
unsigned int size )
|
|
|
void setSize (
|
unsigned int size )
|
|
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
Generated at Fri Sep 29 16:32:22 2000 for KDB by
1.2.1 written by Dimitri van Heesch,
© 1997-2000