Public Member Functions | Protected Member Functions

SqlHelper Class Reference

Has some extra functions used by the custom SQL model classes. More...

#include <Database.h>

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

List of all members.

Public Member Functions

void setDependency (const QString &tableName)
void setDependencies (const QStringList &tableNames)
void setRowIdentifierField (const QString &fieldName)
QString rowIdentifierField () const
void clearDependencies ()
const QStringListdependencies () const

Protected Member Functions

 SqlHelper ()
virtual void onTableChange (const QString &tableName)=0

Detailed Description

Has some extra functions used by the custom SQL model classes.


Constructor & Destructor Documentation

SqlHelper::SqlHelper (  )  [inline, protected]

{};


Member Function Documentation

void SqlHelper::clearDependencies (  ) 

{
    m_dependencies.clear();
}

const QStringList & SqlHelper::dependencies (  )  const

Referenced by DatabaseAuditLogView::DatabaseAuditLogView().

{
    return m_dependencies;
}

virtual void SqlHelper::onTableChange ( const QString tableName  )  [protected, pure virtual]
QString SqlHelper::rowIdentifierField (  )  const

Referenced by SqlTableModel::queryChange().

{
    return m_rowIdentifierField;
}

void SqlHelper::setDependencies ( const QStringList tableNames  ) 

Convenience function.

See also:
SqlHelper::setDependency(const QString &tableName)

{
    foreach(QString tableName, tableNames)
        setDependency(tableName);
}

void SqlHelper::setDependency ( const QString tableName  ) 
void SqlHelper::setRowIdentifierField ( const QString fieldName  ) 

Referenced by UserEditor::UserEditor().

{
    m_rowIdentifierField = fieldName;
}


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