|
|
|
#include "dataset.h"
Members
Construction
CRField();
CRField(const CRString& name, TCRDataType dataType, int size, bool required = false, int fieldNo = 0);
~CRField();
Attributes
CRDataType dataType() const;
int fieldNo() const;
CRString& name() const;
bool required() const;
int scale() const;
int precision() const;
virtual int size() const;
bool isNull();
void setNull();
CRDate getDate();
void setDate(const CRDate& value);
double getDouble();
void setDouble(double value);
float getFloat();
void setFloat(float value);
int getInt();
void setInt(int value);
const char* getChars();
char* getChars(char* result);
char* getChars(char* result, int length);
void setChars(const char* value);
CRString getString();
void setString(const CRString& value);
CRLob& getLob();
void setLob(const CRLob& value);
void assign(const CRDate& value);
void assign(int value);
void assign(double value);
void assign(const char* value);
void assign(const CRString& value);
void assign(const CRField& value);
Description
This class represents single field that corresponds to the table field. It provides information about field with name, length, scale, required function. CRField serves to access to field value by getInt, getString, getDate and other functions. On opening CRDataset creates CRField objects for each field in the table or query.
See Also
CRFields, CRDataset::field
Classes | OCL | Index