|
TreeFrogFramework 2.10
|
#include <tsqlqueryormapper.h>


Classes | |
| class | ConstIterator |
Public Member Functions | |
| TSqlQueryORMapper (int databaseId=0) | |
| TSqlQueryORMapper< T > & | prepare (const QString &query) |
| bool | load (const QString &filename) |
| TSqlQueryORMapper< T > & | bind (const QString &placeholder, const QVariant &val) |
| TSqlQueryORMapper< T > & | bind (int pos, const QVariant &val) |
| TSqlQueryORMapper< T > & | addBind (const QVariant &val) |
| bool | exec (const QString &query) |
| bool | exec () |
| T | execFirst (const QString &query) |
| T | execFirst () |
| int | numRowsAffected () const |
| int | size () const |
| bool | next () |
| T | value () const |
| QString | fieldName (int index) const |
| ConstIterator | begin () |
| ConstIterator | end () |
Public Member Functions inherited from TSqlQuery | |
| TSqlQuery (int databaseId=0) | |
| TSqlQuery (const QSqlDatabase &db) | |
| TSqlQuery & | prepare (const QString &query) |
| bool | load (const QString &filename) |
| bool | loadPreparedQuery (const QString &filename) |
| TSqlQuery & | bind (const QString &placeholder, const QVariant &val) |
| TSqlQuery & | bind (int pos, const QVariant &val) |
| TSqlQuery & | addBind (const QVariant &val) |
| QVariant | boundValue (int pos) const |
| QVariantList | boundValues () const |
| QVariant | getNextValue () |
| QString | queryDirPath () const |
| bool | exec (const QString &query) |
| bool | exec () |
| int | numRowsAffected () const |
| int | size () const |
| bool | next () |
| QVariant | value (int index) const |
| QVariant | value (const QString &name) const |
Additional Inherited Members | |
Static Public Member Functions inherited from TSqlQuery | |
| static void | clearCachedQueries () |
| static QString | escapeIdentifier (const QString &identifier, QSqlDriver::IdentifierType type=QSqlDriver::FieldName, int databaseId=0) |
| static QString | escapeIdentifier (const QString &identifier, QSqlDriver::IdentifierType type, const QSqlDriver *driver) |
| static QString | formatValue (const QVariant &val, const QMetaType &type, int databaseId=0) |
| static QString | formatValue (const QVariant &val, const QMetaType &type, const QSqlDatabase &database) |
| static QString | formatValue (const QVariant &val, const QMetaType &type, const QSqlDriver *driver) |
| static QString | formatValue (const QVariant &val, const QSqlDriver *driver) |
| static QString | formatValue (const QVariant &val, const QSqlDatabase &database) |
The TSqlQueryORMapper class is a template class that creates ORM objects by executing and manipulating SQL statements.
The TSqlQueryORMapper class is a template class that provides concise functionality to object-relational mapping by executing SQL statements.
It can be used to retrieve TSqlObject objects with SQL query from a table.
|
inline |
Constructs a TSqlQueryORMapper object using the SQL query and the database databaseId.
Constructs a TSqlQueryORMapper object using the database databaseId.
The query string must be to retrieve the ORM objects specified by the class T.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the name of the field at position index in the class T.
If the field does not exist, an empty string is returned.
|
inline |
|
inline |
|
inline |
|
inline |
Prepares the SQL query query to retrieve the ORM objects specified by the class T.
|
inline |
|
inline |
Returns the current ORM object in the results retrieved by the query.