Nut  0.1
Public Member Functions | Static Public Member Functions | List of all members
TableModel Class Reference

Public Member Functions

 TableModel (int typeId, QString tableName)
 TableModel (QJsonObject json, QString tableName)
QJsonObject toJson () const
FieldModelfield (QString name) const
RelationModelforegionKey (QString otherTable) const
QString toString () const
QString primaryKey () const
QString name () const
void setName (const QString &name)
QString className () const
void setClassName (const QString &className)
int typeId () const
void setTypeId (const int &typeId)
QList< FieldModel * > fields () const
QList< RelationModel * > foregionKeys () const
QStringList fieldsNames () const
bool operator== (const TableModel &t) const
bool operator!= (const TableModel &t) const

Static Public Member Functions

static TableModelmodel (QString className)
static TableModelfindByTypeId (int typeId)
static TableModelfindByName (QString name)
static TableModelfindByClassName (QString className)

The documentation for this class was generated from the following files: