194 d->
len = fieldLength;
224#if QT_DEPRECATED_SINCE(6, 8)
229void QSqlField::setSqlType(
int type)
406void QSqlField::detach()
475#if QT_DEPRECATED_SINCE(6, 8)
485int QSqlField::typeID()
const
517#ifndef QT_NO_DEBUG_STREAM
522 dbg <<
"QSqlField(" <<
f.name() <<
", " <<
f.metaType().name();
523 dbg <<
", tableName: " << (
f.tableName().isEmpty() ?
QStringLiteral(
"(not specified)") :
f.tableName());
525 dbg <<
", length: " <<
f.length();
526 if (
f.precision() >= 0)
527 dbg <<
", precision: " <<
f.precision();
529 dbg <<
", required: "
531 dbg <<
", generated: " << (
f.isGenerated() ?
"yes" :
"no");
532 if (!
f.defaultValue().isNull())
533 dbg <<
", defaultValue: \"" <<
f.defaultValue() <<
'\"';
534 dbg <<
", autoValue: " <<
f.isAutoValue()
535 <<
", readOnly: " <<
f.isReadOnly() <<
')';
600#include "moc_qsqlfield.cpp"
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
QSqlField::RequiredStatus req
bool operator==(const QSqlFieldPrivate &other) const
QSqlFieldPrivate(const QString &name, QMetaType type, const QString &tableName)
The QSqlField class manipulates the fields in SQL database tables and views.
QSqlField(const QString &fieldName=QString(), QMetaType type=QMetaType(), const QString &tableName=QString())
RequiredStatus
Specifies whether the field is required or optional.
void setAutoValue(bool autoVal)
Sets \l autoValue to autoVal.
bool isGenerated() const
Returns the value of \l generated.
void setRequiredStatus(RequiredStatus status)
Sets \l requiredStatus to required.
bool isValid() const
Returns true if the field's variant type is valid; otherwise returns false.
bool operator==(const QSqlField &other) const
Returns true if the field is equal to other; otherwise returns false.
void setValue(const QVariant &value)
Sets \l value to value.
void setLength(int fieldLength)
Sets \l length to fieldLength.
void setDefaultValue(const QVariant &value)
Sets \l defaultValue to value.
void setName(const QString &name)
Sets \l name to name.
RequiredStatus requiredStatus
void setMetaType(QMetaType type)
Sets \l metaType to type.
void setReadOnly(bool readOnly)
Sets \l readOnly to readOnly.
QString name
This property holds the name of the field.
void clear()
Clears the value of the field and sets it to NULL.
~QSqlField()
Destroys the object and frees any allocated resources.
bool isNull() const
Returns true if the field's value is NULL; otherwise returns false.
bool isAutoValue() const
Returns the value of \l autoValue.
bool isReadOnly() const
Returns the value of \l readOnly.
void setPrecision(int precision)
Sets \l precision to precision.
void setTableName(const QString &tableName)
Sets \l tableName to tableName.
void setGenerated(bool gen)
Sets \l generated to gen.
QSqlField & operator=(const QSqlField &other)
Sets the field equal to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLenum GLsizei void * table
GLenum GLint GLint * precision
#define QT_DEFINE_QESDP_SPECIALIZATION_DTOR(Class)
QDebug operator<<(QDebug dbg, const QSqlField &f)
#define QStringLiteral(str)