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

#include <tmodelobject.h>

Inheritance diagram for TModelObject:
Inheritance graph
[legend]
Collaboration diagram for TModelObject:
Collaboration graph
[legend]

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 ( )
inline

◆ ~TModelObject()

virtual TModelObject::~TModelObject ( )
inlinevirtual

Member Function Documentation

◆ clear()

void TModelObject::clear ( )
virtual

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
virtual

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)
virtual

Set the values to the properties of the object.

◆ toVariantMap()

QVariantMap TModelObject::toVariantMap ( ) const
virtual

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: