TreeFrogFramework  1.18
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 ( )
inline
virtual TModelObject::~TModelObject ( )
inlinevirtual

Member Function Documentation

void TModelObject::clear ( )
virtual

Clears the contents of the object.

Reimplemented in TSqlObject.

virtual bool TModelObject::create ( )
pure virtual

Implemented in TSqlObject.

virtual bool TModelObject::isNull ( ) const
pure virtual

Implemented in TSqlObject.

QStringList TModelObject::propertyNames ( ) const
virtual

Returns a list of the property names.

virtual bool TModelObject::remove ( )
pure virtual

Implemented in TSqlObject.

virtual bool TModelObject::save ( )
pure virtual

Implemented in TSqlObject.

void TModelObject::setProperties ( const QVariantMap &  value)
virtual

Set the values to the properties of the object.

QVariantMap TModelObject::toVariantMap ( ) const
virtual

Returns a map object of the properties.

virtual bool TModelObject::update ( )
pure virtual

Implemented in TSqlObject.


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