TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TAbstractSqlORMapper Class Referenceabstract

#include <tsqlormapper.h>

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

Public Member Functions

 TAbstractSqlORMapper (const QSqlDatabase &db)
 
virtual ~TAbstractSqlORMapper ()
 
virtual void setLimit (int limit)=0
 
virtual void setOffset (int offset)=0
 
virtual void setSortOrder (int column, Tf::SortOrder order=Tf::AscendingOrder)=0
 
virtual void setSortOrder (const QString &column, Tf::SortOrder order=Tf::AscendingOrder)=0
 
virtual void reset ()=0
 
virtual int find (const TCriteria &cri=TCriteria())=0
 
virtual int findBy (int column, const QVariant &value)=0
 
virtual int findIn (int column, const QVariantList &values)=0
 
virtual int findCount (const TCriteria &cri=TCriteria())=0
 
virtual int findCountBy (int column, const QVariant &value)=0
 
virtual int updateAll (const TCriteria &cri, int column, const QVariant &value)=0
 
virtual int updateAll (const TCriteria &cri, const QMap< int, QVariant > &values)=0
 
virtual int removeAll (const TCriteria &cri=TCriteria())=0
 

Detailed Description

The TAbstractSqlORMapper class is the abstract base class of functionality to object-relational mapping.

See also
TSqlORMapper

Constructor & Destructor Documentation

◆ TAbstractSqlORMapper()

TAbstractSqlORMapper::TAbstractSqlORMapper ( const QSqlDatabase &  db)
inline

◆ ~TAbstractSqlORMapper()

virtual TAbstractSqlORMapper::~TAbstractSqlORMapper ( )
inlinevirtual

Member Function Documentation

◆ find()

virtual int TAbstractSqlORMapper::find ( const TCriteria cri = TCriteria())
pure virtual

Implemented in TSqlORMapper< T >.

◆ findBy()

virtual int TAbstractSqlORMapper::findBy ( int  column,
const QVariant &  value 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ findCount()

virtual int TAbstractSqlORMapper::findCount ( const TCriteria cri = TCriteria())
pure virtual

Implemented in TSqlORMapper< T >.

◆ findCountBy()

virtual int TAbstractSqlORMapper::findCountBy ( int  column,
const QVariant &  value 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ findIn()

virtual int TAbstractSqlORMapper::findIn ( int  column,
const QVariantList &  values 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ removeAll()

virtual int TAbstractSqlORMapper::removeAll ( const TCriteria cri = TCriteria())
pure virtual

Implemented in TSqlORMapper< T >.

◆ reset()

virtual void TAbstractSqlORMapper::reset ( )
pure virtual

Implemented in TSqlORMapper< T >.

◆ setLimit()

virtual void TAbstractSqlORMapper::setLimit ( int  limit)
pure virtual

Implemented in TSqlORMapper< T >.

◆ setOffset()

virtual void TAbstractSqlORMapper::setOffset ( int  offset)
pure virtual

Implemented in TSqlORMapper< T >.

◆ setSortOrder() [1/2]

virtual void TAbstractSqlORMapper::setSortOrder ( const QString &  column,
Tf::SortOrder  order = Tf::AscendingOrder 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ setSortOrder() [2/2]

virtual void TAbstractSqlORMapper::setSortOrder ( int  column,
Tf::SortOrder  order = Tf::AscendingOrder 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ updateAll() [1/2]

virtual int TAbstractSqlORMapper::updateAll ( const TCriteria cri,
const QMap< int, QVariant > &  values 
)
pure virtual

Implemented in TSqlORMapper< T >.

◆ updateAll() [2/2]

virtual int TAbstractSqlORMapper::updateAll ( const TCriteria cri,
int  column,
const QVariant &  value 
)
pure virtual

Implemented in TSqlORMapper< T >.


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