|
Isis 3 Programmer Reference
|
15 #include "SqlRecord.h"
55 return (contains(name));
69 return (fieldName(index));
82 return(indexOf(name));
106 QVariant ftype(field(name).type());
131 QVariant ftype(field(index).type());
143 return (field(name).
isNull());
157 return (QString(field(index).value().
toString()));
171 return (QString(field(name).value().
toString()));
193 retType = QString((tolower(ctype[0]) ==
'q') ? &ctype[1] : ctype).toLower();
SqlRecord()
Default Constructor.
bool hasField(const QString &name) const
Indicates the existance/non-existance of a field in the row.
QString QtTypeField(const char *ctype) const
Returns a generic field type given a Qt QVariant type.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
QString getType(int index) const
Returns the type of a field/column at the specified index.
int getFieldIndex(const QString &name) const
Return the index of a named field/column This method will determine the index of the named field afte...
QString getValue(int index) const
Returns the value of the field/column at specified index.
bool isNull(const QString &name) const
Determines if the value of the field/column is NULL.
Namespace for the standard library.
QString getFieldName(int index) const
Returns the name of a field/column at a particular index.
Construct and execute a query on a database and manage result.
This is free and unencumbered software released into the public domain.