Akonadi::Server::SelectQueryBuilder

Akonadi::Server::SelectQueryBuilder< T > Class Template Reference

#include <selectquerybuilder.h>

Inheritance diagram for Akonadi::Server::SelectQueryBuilder< T >:

Public Member Functions

 SelectQueryBuilder ()
 
QVector< T > result ()
 
- Public Member Functions inherited from Akonadi::Server::QueryBuilder
 QueryBuilder (const QString &table, QueryType type=Select)
 
void addAggregation (const QString &col, const QString &aggregate)
 
void addAggregation (const Query::Case &caseStmt, const QString &aggregate)
 
void addColumn (const QString &col)
 
void addColumn (const Query::Case &caseStmt)
 
void addColumnCondition (const QString &column, Query::CompareOperator op, const QString &column2, ConditionType type=WhereCondition)
 
void addColumns (const QStringList &cols)
 
void addCondition (const Query::Condition &condition, ConditionType type=WhereCondition)
 
void addGroupColumn (const QString &column)
 
void addGroupColumns (const QStringList &columns)
 
void addJoin (JoinType joinType, const QString &table, const Query::Condition &condition)
 
void addJoin (JoinType joinType, const QString &table, const QString &col1, const QString &col2)
 
void addSortColumn (const QString &column, Query::SortOrder order=Query::Ascending)
 
void addValueCondition (const QString &column, Query::CompareOperator op, const QVariant &value, ConditionType type=WhereCondition)
 
bool exec ()
 
qint64 insertId ()
 
QSqlQueryquery ()
 
void setColumnValue (const QString &column, const QVariant &value)
 
void setDatabaseType (DbType::Type type)
 
void setDistinct (bool distinct)
 
void setForUpdate (bool forUpdate=true)
 
void setIdentificationColumn (const QString &column)
 
void setLimit (int limit)
 
void setSubQueryMode (Query::LogicOperator op, ConditionType type=WhereCondition)
 

Additional Inherited Members

- Public Types inherited from Akonadi::Server::QueryBuilder
enum  ConditionType { WhereCondition, HavingCondition, NUM_CONDITIONS }
 
enum  JoinType { InnerJoin, LeftJoin }
 
enum  QueryType { Select, Insert, Update, Delete }
 

Detailed Description

template<typename T>
class Akonadi::Server::SelectQueryBuilder< T >

Helper class for creating and executing database SELECT queries.

Definition at line 20 of file selectquerybuilder.h.

Constructor & Destructor Documentation

template<typename T>
Akonadi::Server::SelectQueryBuilder< T >::SelectQueryBuilder ( )
inline

Creates a new query builder.

Definition at line 26 of file selectquerybuilder.h.

Member Function Documentation

template<typename T>
QVector<T> Akonadi::Server::SelectQueryBuilder< T >::result ( )
inline

Returns the result of this SELECT query.

Definition at line 35 of file selectquerybuilder.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 14 2020 23:16:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.