TreeFrogFramework
2.8
|
#include <tmongoodmapper.h>
Public Member Functions | |
TMongoODMapper () | |
virtual | ~TMongoODMapper () |
TMongoODMapper< T > & | limit (int limit) |
TMongoODMapper< T > & | offset (int offset) |
TMongoODMapper< T > & | orderBy (int column, Tf::SortOrder order=Tf::AscendingOrder) |
TMongoODMapper< T > & | orderBy (const QString &column, Tf::SortOrder order=Tf::AscendingOrder) |
void | setLimit (int limit) |
void | setOffset (int offset) |
void | setSortOrder (int column, Tf::SortOrder order=Tf::AscendingOrder) |
void | setSortOrder (const QString &column, Tf::SortOrder order=Tf::AscendingOrder) |
T | findOne (const TCriteria &cri=TCriteria()) |
T | findFirst (const TCriteria &cri=TCriteria()) |
T | findFirstBy (int column, const QVariant &value) |
T | findByObjectId (const QString &id) |
bool | find (const TCriteria &cri=TCriteria()) |
bool | findBy (int column, const QVariant &value) |
bool | findIn (int column, const QVariantList &values) |
bool | next () |
T | value () const |
int | findCount (const TCriteria &cri=TCriteria()) |
int | findCountBy (int column, const QVariant &value) |
int | updateAll (const TCriteria &cri, int column, const QVariant &value) |
int | updateAll (const TCriteria &cri, const QMap< int, QVariant > &values) |
int | removeAll (const TCriteria &cri=TCriteria()) |
Additional Inherited Members | |
Protected Member Functions inherited from TMongoQuery | |
TMongoQuery (const QString &collection) | |
TMongoQuery (const TMongoQuery &other) | |
virtual | ~TMongoQuery () |
int | limit () const |
void | setLimit (int limit) |
int | offset () const |
void | setOffset (int offset) |
bool | find (const QVariantMap &criteria=QVariantMap(), const QVariantMap &orderBy=QVariantMap(), const QStringList &fields=QStringList()) |
bool | next () |
QVariantMap | value () const |
QVariantMap | findOne (const QVariantMap &criteria=QVariantMap(), const QStringList &fields=QStringList()) |
QVariantMap | findById (const QString &id, const QStringList &fields=QStringList()) |
bool | insert (QVariantMap &document) |
int | update (const QVariantMap &criteria, const QVariantMap &document, bool upsert=false) |
bool | updateById (const QVariantMap &document) |
int | updateMany (const QVariantMap &criteria, const QVariantMap &document) |
int | updateMulti (const QVariantMap &criteria, const QVariantMap &document) |
int | remove (const QVariantMap &criteria) |
bool | removeById (const QVariantMap &document) |
int | count (const QVariantMap &criteria=QVariantMap()) |
QString | lastErrorString () const |
TMongoQuery & | operator= (const TMongoQuery &other) |
The TMongoODMapper class is a template class that provides concise functionality to object-document mapping for MongoDB.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
TMongoODMapper< T > & TMongoODMapper< T >::limit | ( | int | limit | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |