Workspace 6.21.5
|
The InvalidSqlBoundObjectGroup class defines an invalid implementation of the SqlBoundObjectGroup. It is the default constructed value for DataObjects of type SqlBoundObjectGroup. More...
#include <DataAnalysis/DataStructures/sqlboundobjectgroup.h>
Public Member Functions | |
InvalidSqlBoundObjectGroup () | |
InvalidSqlBoundObjectGroup (const InvalidSqlBoundObjectGroup &)=default | |
InvalidSqlBoundObjectGroup * | clone () const override |
InvalidSqlBoundObjectGroup * | deepCopy () const override |
QSqlQuery | getInsertQuery (const SqlDataModel &model, const QStringList &relations, const QString &foreignKeyName=QString(), const QVariant &foreignKeyValue=QVariant()) const override |
QSqlQuery | getUpdateQuery (const SqlDataModel &model, const QStringList &relations, const QString &foreignKeyName=QString(), const QVariant &foreignKeyValue=QVariant()) const override |
Public Member Functions inherited from SqlBoundObjectGroup | |
~SqlBoundObjectGroup () override | |
SqlBoundObjectGroup * | clone () const override=0 |
virtual SqlBoundObjectGroup * | deepCopy () const =0 |
void | detach (bool recursive=false) |
QStringList | getAutoIncrementFieldNames () const |
QString | getBoundTableName () const |
QStringList | getCompositePrimaryKeyFieldNames () const |
QStringList | getCompositePrimaryKeyFieldNamesAliased () const |
QString | getFieldName (const DataExecution::DataObject &object) const |
QStringList | getNonRelationFieldAliases () const |
QStringList | getNonRelationFieldNames () const |
DataExecution::DataObject & | getPrimaryKeyField () |
const DataExecution::DataObject & | getPrimaryKeyField () const |
QString | getPrimaryKeyFieldName () const |
QString | getPrimaryKeyFieldNameAliased () const |
SqlBindingRelationMap | getRelationBindings (const QStringList &relationNames=QStringList(), bool recursive=false) const |
QStringList | getRelationFieldNames (bool recursive) const |
QStringList | getSqlValidCompositePrimaryKeyFieldNames () const |
QStringList | getSqlValidFieldList () const |
bool | hasCompositePrimaryKey () const |
bool | isPersistent () const |
bool | isPrimaryKeyField (const DataExecution::DataObject &obj) const |
bool | isRelationField (const QString &fieldName) const |
void | setPersistent (bool b) |
Public Member Functions inherited from ObjectGroup | |
~ObjectGroup () override | |
bool | add (const QString &name, DataObject &obj) |
bool | canSerialize () const override |
ObjectGroup * | clone () const override=0 |
bool | empty () const |
void | ensureGroupHasData () |
void | erase (int index) |
DataObject * | getChild (const QString &name) |
const DataObject * | getChild (const QString &name) const |
DataObject & | getDataObject (int index) |
const DataObject & | getDataObject (int index) const |
int | getIndex (const QString &name) const |
const QString & | getName (int index) const |
virtual QString | getPreferedWidget (const QString &name) const |
bool | hasData () const |
bool | haveName (const QString &name) const |
bool | insert (const QString &name, DataObject &obj, int index=-1) |
bool | load (const QJsonDocument &doc) |
bool | load (const SerializedItem &item) override |
bool | save (QJsonDocument &doc) const |
bool | save (SerializedItem &item) const override |
unsigned | size () const |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Serialize | |
virtual | ~Serialize ()=default |
virtual bool | canSerialize () const =0 |
virtual bool | load (const SerializedItem &item)=0 |
virtual bool | save (SerializedItem &item) const =0 |
Protected Member Functions | |
const SqlBoundObjectClassData & | getClassData () const override |
Protected Member Functions inherited from SqlBoundObjectGroup | |
SqlBoundObjectGroup (const SqlBoundObjectGroup &other) | |
SqlBoundObjectGroup (SqlBoundObjectGroupData *data) | |
bool | bindCompositePrimaryKey (const QList< const DataExecution::DataObject * > &objects) |
bool | bindField (const QString &fieldName, DataExecution::DataObject &object) |
bool | bindRelation (const SqlBindingRelation &relation) |
virtual const SqlBoundObjectClassData & | getClassData () const =0 |
virtual QSqlQuery | getInsertQuery (const SqlDataModel &model, const QStringList &relations, const QString &foreignKeyName=QString(), const QVariant &foreignKeyValue=QVariant()) const =0 |
virtual QSqlQuery | getUpdateQuery (const SqlDataModel &model, const QStringList &relations, const QString &foreignKeyName=QString(), const QVariant &foreignKeyValue=QVariant()) const =0 |
SqlBoundObjectGroup & | operator= (const SqlBoundObjectGroup &) |
bool | operator== (const SqlBoundObjectGroup &rhs) const |
bool | setPrimaryKeyField (const DataExecution::DataObject &obj, bool autoIncrement) |
Protected Member Functions inherited from ObjectGroup | |
ObjectGroup () | |
void | clear () |
ObjectGroup & | operator= (const ObjectGroup &rhs) |
bool | operator== (const ObjectGroup &rhs) const |
void | swap (ObjectGroup &rhs) |
There is no reason to use or extend the InvalidSqlBoundObjectGroup directly.
|
default |
|
overridevirtual |
Implements SqlBoundObjectGroup.
|
overridevirtual |
Implements SqlBoundObjectGroup.
|
overrideprotectedvirtual |
Implements SqlBoundObjectGroup.
|
overridevirtual |
model | The SqlDataModel responsible for the insertion operation. |
relations | A list of relations to follow when generating the insert. |
foreignKeyName | (optional) The name of a foreign key field attached to the table that this object is bound to. Important for inserting objects with bi-directional relations. |
foreignKeyValue | The value to store in the field named foreignKeyName when inserting this object. |
Returns the SQL query required to insert this particular object into a database. Callers should never need to invoke this method directly.
Implements SqlBoundObjectGroup.
|
overridevirtual |
model | The SqlDataModel responsible for the update operation. |
relations | A list of relations to follow when generating the update. |
foreignKeyName | (optional) The name of a foreign key field attached to the table that this object is bound to. Important for updating objects with bi-directional relations. |
foreignKeyValue | The value to store in the field named foreignKeyName when updating this object. |
Implements SqlBoundObjectGroup.