MattyNotes
QueryConstructor Class Reference

#include <queryconstructor.h>

Public Member Functions

 QueryConstructor ()
 
 ~QueryConstructor ()
 
void setTableName (const QString &tableName)
 
QString getTableName ()
 
void setWhatToSelectFieldNames (const QStringList &FieldNames)
 
QStringList getWhatToSelectFieldNames ()
 
void setWhereFieldValue (const QMap< QString, QString > &FieldValue)
 
QMap< QString, QString > getWhereFieldValue ()
 
void setWhatToSetFieldValue (const QMap< QString, QString > &FieldValue)
 
QMap< QString, QString > getWhatToSetFieldValue ()
 
void setOrderByClause (const QString &Field="", OrderType Direction=Straight)
 
QString getOrderByClause ()
 
void addWhatToSelectFieldName (const QString &FieldName)
 
void addWhereFieldValue (const QString &Field, const QString &Value)
 
void addWhatToSetFieldValue (const QString &Field, const QString &Value)
 
QString constructInsertQuery ()
 
QString constructSelectQuery ()
 
QString constructDeleteQuery ()
 
QString constructUpdateQuery ()
 

Private Member Functions

QString constructWhereEqualsClause ()
 

Private Attributes

QString TableName
 
QStringList WhatToSelectFieldNames
 
QMap< QString, QString > WhereFieldValue
 
QMap< QString, QString > WhatToSetFieldValue
 
QString OrderByClause
 

Constructor & Destructor Documentation

QueryConstructor::QueryConstructor ( )
QueryConstructor::~QueryConstructor ( )

Member Function Documentation

void QueryConstructor::addWhatToSelectFieldName ( const QString &  FieldName)

Here is the caller graph for this function:

void QueryConstructor::addWhatToSetFieldValue ( const QString &  Field,
const QString &  Value 
)
void QueryConstructor::addWhereFieldValue ( const QString &  Field,
const QString &  Value 
)

Here is the caller graph for this function:

QString QueryConstructor::constructDeleteQuery ( )

Here is the call graph for this function:

Here is the caller graph for this function:

QString QueryConstructor::constructInsertQuery ( )
QString QueryConstructor::constructSelectQuery ( )

Here is the call graph for this function:

Here is the caller graph for this function:

QString QueryConstructor::constructUpdateQuery ( )

Here is the call graph for this function:

Here is the caller graph for this function:

QString QueryConstructor::constructWhereEqualsClause ( )
private

Here is the caller graph for this function:

QString QueryConstructor::getOrderByClause ( )
QString QueryConstructor::getTableName ( )
QStringList QueryConstructor::getWhatToSelectFieldNames ( )
QMap< QString, QString > QueryConstructor::getWhatToSetFieldValue ( )
QMap< QString, QString > QueryConstructor::getWhereFieldValue ( )
void QueryConstructor::setOrderByClause ( const QString &  Field = "",
OrderType  Direction = Straight 
)

Here is the caller graph for this function:

void QueryConstructor::setTableName ( const QString &  tableName)

Here is the caller graph for this function:

void QueryConstructor::setWhatToSelectFieldNames ( const QStringList &  FieldNames)
void QueryConstructor::setWhatToSetFieldValue ( const QMap< QString, QString > &  FieldValue)

Here is the caller graph for this function:

void QueryConstructor::setWhereFieldValue ( const QMap< QString, QString > &  FieldValue)

Here is the caller graph for this function:

Member Data Documentation

QString QueryConstructor::OrderByClause
private
QString QueryConstructor::TableName
private
QStringList QueryConstructor::WhatToSelectFieldNames
private
QMap<QString, QString> QueryConstructor::WhatToSetFieldValue
private
QMap<QString, QString> QueryConstructor::WhereFieldValue
private

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