TreeFrogFramework  1.29
Public Member Functions | List of all members
TModelObject Class Referenceabstract

#include <tmodelobject.h>

Inheritance diagram for TModelObject:
Inheritance graph
Collaboration diagram for TModelObject:
Collaboration graph

Public Member Functions

 TModelObject ()
virtual ~TModelObject ()
virtual bool isNull () const =0
virtual bool create ()=0
virtual bool update ()=0
virtual bool save ()=0
virtual bool remove ()=0
virtual void setProperties (const QVariantMap &value)
virtual void clear ()
virtual QVariantMap toVariantMap () const
virtual QStringList propertyNames () const

Detailed Description

The TModelObject class provides an abstract base for model objects.

Constructor & Destructor Documentation

◆ TModelObject()

TModelObject::TModelObject ( )

◆ ~TModelObject()

virtual TModelObject::~TModelObject ( )

Member Function Documentation

◆ clear()

void TModelObject::clear ( )

Clears the contents of the object.

Reimplemented in TSqlObject.

◆ create()

virtual bool TModelObject::create ( )
pure virtual

Implemented in TSqlObject.

◆ isNull()

virtual bool TModelObject::isNull ( ) const
pure virtual

Implemented in TSqlObject.

◆ propertyNames()

QStringList TModelObject::propertyNames ( ) const

Returns a list of the property names.

◆ remove()

virtual bool TModelObject::remove ( )
pure virtual

Implemented in TSqlObject.

◆ save()

virtual bool TModelObject::save ( )
pure virtual

Implemented in TSqlObject.

◆ setProperties()

void TModelObject::setProperties ( const QVariantMap &  value)

Set the values to the properties of the object.

◆ toVariantMap()

QVariantMap TModelObject::toVariantMap ( ) const

Returns a map object of the properties.

◆ update()

virtual bool TModelObject::update ( )
pure virtual

Implemented in TSqlObject.

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