Definition at line 56 of file qsqlfield.h.
#include <qsqlfield.h>
Public Types |
|
| enum | RequiredStatus { Unknown = -1, Optional = 0, Required = 1 } |
Public Member Functions |
|
| QSqlField (const QString &fieldName=QString(), QVariant::Type type=QVariant::Invalid) | |
| QSqlField (const QSqlField &other) | |
| QSqlField & | operator= (const QSqlField &other) |
| bool | operator== (const QSqlField &other) const |
| bool | operator!= (const QSqlField &other) const |
| ~QSqlField () | |
| void | setValue (const QVariant &value) |
| QVariant | value () const |
| void | setName (const QString &name) |
| QString | name () const |
| bool | isNull () const |
| void | setReadOnly (bool readOnly) |
| bool | isReadOnly () const |
| void | clear () |
| QVariant::Type | type () const |
| bool | isAutoValue () const |
| void | setType (QVariant::Type type) |
| void | setRequiredStatus (RequiredStatus status) |
| void | setRequired (bool required) |
| void | setLength (int fieldLength) |
| void | setPrecision (int precision) |
| void | setDefaultValue (const QVariant &value) |
| void | setSqlType (int type) |
| void | setGenerated (bool gen) |
| void | setAutoValue (bool autoVal) |
| RequiredStatus | requiredStatus () const |
| int | length () const |
| int | precision () const |
| QVariant | defaultValue () const |
| int | typeID () const |
| bool | isGenerated () const |
| bool | isValid () const |
| enum RequiredStatus |
Definition at line 59 of file qsqlfield.h.
| QSqlField | ( | const QString & | fieldName = QString(), |
| QVariant::Type | type =
QVariant::Invalid |
||
| ) |
| ~QSqlField | ( | ) |
| bool operator== | ( | const QSqlField & | other | ) | const |
| bool operator!= | ( | const QSqlField & | other | ) | const [inline] |
Definition at line 67 of file qsqlfield.h.
{ return !operator==(other); }
| void setValue | ( | const QVariant & | value | ) |
| QVariant value | ( | ) | const [inline] |
| void setName | ( | const QString & | name | ) |
| QString name | ( | ) | const |
| bool isNull | ( | ) | const |
| void setReadOnly | ( | bool | readOnly | ) |
| bool isReadOnly | ( | ) | const |
| void clear | ( | ) |
| QVariant::Type type | ( | ) | const |
| bool isAutoValue | ( | ) | const |
| void setType | ( | QVariant::Type | type | ) |
| void setRequiredStatus | ( | RequiredStatus | status | ) |
| void setRequired | ( | bool | required | ) | [inline] |
Definition at line 84 of file qsqlfield.h.
{ setRequiredStatus(required ? Required : Optional); }
| void setLength | ( | int | fieldLength | ) |
| void setPrecision | ( | int | precision | ) |
| void setDefaultValue | ( | const QVariant & | value | ) |
| void setSqlType | ( | int | type | ) |
| void setGenerated | ( | bool | gen | ) |
| void setAutoValue | ( | bool | autoVal | ) |
| RequiredStatus requiredStatus | ( | ) | const |
| int length | ( | ) | const |
| int precision | ( | ) | const |
| QVariant defaultValue | ( | ) | const |
| int typeID | ( | ) | const |
| bool isGenerated | ( | ) | const |
| bool isValid | ( | ) | const |