WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
Javascript wrapper for a QSqlRecord object. More...
#include <ZsqlRecord.h>
Public Member Functions | |
ZsqlRecord (QObject *parent=0) | |
int | getCount () const |
Q_INVOKABLE QVariant | value (int i) const |
Q_INVOKABLE QVariant | value (const QString &name) const |
Q_INVOKABLE void | setValue (int i, const QVariant &val) |
Q_INVOKABLE void | setValue (const QString &name, const QVariant &val) |
Q_INVOKABLE void | setNull (int i) |
Q_INVOKABLE void | setNull (const QString &name) |
Q_INVOKABLE bool | isNull (int i) const |
Q_INVOKABLE bool | isNull (const QString &name) const |
Q_INVOKABLE int | indexOf (const QString &name) const |
Q_INVOKABLE QString | fieldName (int i) const |
Q_INVOKABLE bool | isGenerated (int i) const |
Q_INVOKABLE bool | isGenerated (const QString &name) const |
Q_INVOKABLE void | setGenerated (const QString &name, bool generated) |
Q_INVOKABLE void | setGenerated (int i, bool generated) |
Q_INVOKABLE bool | isEmpty () const |
Q_INVOKABLE bool | contains (const QString &name) const |
Q_INVOKABLE void | clear () |
Q_INVOKABLE void | clearValues () |
Q_INVOKABLE QObject * | keyValues (QObject *keyFieldsRecord) |
Protected Attributes | |
QSqlRecord | m_r |
Encapsulated QSqlRecord object. More... | |
Properties | |
int | count |
Determines the number of fields in this record. More... | |
Friends | |
class | ZsqlQuery |
class | ZsqlDatabase |
Javascript wrapper for a QSqlRecord object.
Definition at line 39 of file ZsqlRecord.h.
|
explicit |
Definition at line 31 of file ZsqlRecord.cpp.
Referenced by keyValues().
void Zbl::ZsqlRecord::clear | ( | ) |
Definition at line 152 of file ZsqlRecord.cpp.
void Zbl::ZsqlRecord::clearValues | ( | ) |
Definition at line 159 of file ZsqlRecord.cpp.
bool Zbl::ZsqlRecord::contains | ( | const QString & | name | ) | const |
Definition at line 145 of file ZsqlRecord.cpp.
QString Zbl::ZsqlRecord::fieldName | ( | int | i | ) | const |
Definition at line 102 of file ZsqlRecord.cpp.
int Zbl::ZsqlRecord::getCount | ( | ) | const |
Definition at line 166 of file ZsqlRecord.cpp.
int Zbl::ZsqlRecord::indexOf | ( | const QString & | name | ) | const |
Definition at line 95 of file ZsqlRecord.cpp.
bool Zbl::ZsqlRecord::isEmpty | ( | ) | const |
Definition at line 138 of file ZsqlRecord.cpp.
bool Zbl::ZsqlRecord::isGenerated | ( | int | i | ) | const |
Definition at line 110 of file ZsqlRecord.cpp.
Referenced by isGenerated().
bool Zbl::ZsqlRecord::isGenerated | ( | const QString & | name | ) | const |
Definition at line 117 of file ZsqlRecord.cpp.
bool Zbl::ZsqlRecord::isNull | ( | int | i | ) | const |
Definition at line 80 of file ZsqlRecord.cpp.
Referenced by isNull().
bool Zbl::ZsqlRecord::isNull | ( | const QString & | name | ) | const |
Definition at line 88 of file ZsqlRecord.cpp.
QObject * Zbl::ZsqlRecord::keyValues | ( | QObject * | keyFieldsRecord | ) |
Definition at line 173 of file ZsqlRecord.cpp.
void Zbl::ZsqlRecord::setGenerated | ( | const QString & | name, |
bool | generated | ||
) |
Definition at line 124 of file ZsqlRecord.cpp.
Referenced by setGenerated().
void Zbl::ZsqlRecord::setGenerated | ( | int | i, |
bool | generated | ||
) |
Definition at line 131 of file ZsqlRecord.cpp.
void Zbl::ZsqlRecord::setNull | ( | int | i | ) |
Definition at line 64 of file ZsqlRecord.cpp.
Referenced by setNull().
void Zbl::ZsqlRecord::setNull | ( | const QString & | name | ) |
Definition at line 72 of file ZsqlRecord.cpp.
void Zbl::ZsqlRecord::setValue | ( | int | i, |
const QVariant & | val | ||
) |
Definition at line 50 of file ZsqlRecord.cpp.
Referenced by setValue().
void Zbl::ZsqlRecord::setValue | ( | const QString & | name, |
const QVariant & | val | ||
) |
Definition at line 57 of file ZsqlRecord.cpp.
QVariant Zbl::ZsqlRecord::value | ( | int | i | ) | const |
Definition at line 36 of file ZsqlRecord.cpp.
Referenced by value().
QVariant Zbl::ZsqlRecord::value | ( | const QString & | name | ) | const |
Definition at line 43 of file ZsqlRecord.cpp.
|
friend |
Definition at line 42 of file ZsqlRecord.h.
|
friend |
Definition at line 41 of file ZsqlRecord.h.
|
protected |
Encapsulated QSqlRecord object.
Definition at line 107 of file ZsqlRecord.h.
Referenced by clear(), clearValues(), contains(), fieldName(), getCount(), indexOf(), isEmpty(), isGenerated(), isNull(), keyValues(), Zbl::ZsqlDatabase::record(), Zbl::ZsqlQuery::record(), setGenerated(), setNull(), setValue(), and value().
|
read |
Determines the number of fields in this record.
Definition at line 52 of file ZsqlRecord.h.
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.