MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GenericDBStorage Class Reference

#include <mythstorage.h>

Inheritance diagram for GenericDBStorage:
Inheritance graph
Collaboration diagram for GenericDBStorage:
Collaboration graph

Public Member Functions

 GenericDBStorage (StorageUser *user, const QString &table, const QString &column, const QString &keycolumn, const QString &keyvalue=QString())
virtual ~GenericDBStorage ()=default
void SetKeyValue (const QString &val)
void SetKeyValue (long long val)
- Public Member Functions inherited from SimpleDBStorage
 SimpleDBStorage (StorageUser *user, const QString &table, const QString &column)
virtual ~SimpleDBStorage ()=default
void Load (void) override
void Save (void) override
void Save (const QString &table) override
bool IsSaveRequired (void) const override
void SetSaveRequired (void) override
- Public Member Functions inherited from DBStorage
 DBStorage (StorageUser *user, const QString &table, const QString &column)
virtual ~DBStorage ()=default
- Public Member Functions inherited from Storage
 Storage ()=default
virtual ~Storage ()=default

Protected Member Functions

QString GetWhereClause (MSqlBindings &bindings) const override
QString GetSetClause (MSqlBindings &bindings) const override
- Protected Member Functions inherited from DBStorage
QString GetColumnName (void) const
QString GetTableName (void) const

Protected Attributes

QString m_keycolumn
QString m_keyvalue
- Protected Attributes inherited from SimpleDBStorage
QString m_initval
- Protected Attributes inherited from DBStorage
StorageUserm_user {nullptr}
QString m_tablename
QString m_columnname

Detailed Description

Definition at line 73 of file mythstorage.h.

Constructor & Destructor Documentation

◆ GenericDBStorage()

GenericDBStorage::GenericDBStorage ( StorageUser user,
const QString &  table,
const QString &  column,
const QString &  keycolumn,
const QString &  keyvalue = QString() 

Definition at line 76 of file mythstorage.h.

◆ ~GenericDBStorage()

virtual GenericDBStorage::~GenericDBStorage ( )

Member Function Documentation

◆ SetKeyValue() [1/2]

void GenericDBStorage::SetKeyValue ( const QString &  val)

Definition at line 83 of file mythstorage.h.

◆ SetKeyValue() [2/2]

void GenericDBStorage::SetKeyValue ( long long  val)

Definition at line 84 of file mythstorage.h.

◆ GetWhereClause()

QString GenericDBStorage::GetWhereClause ( MSqlBindings bindings) const

Implements SimpleDBStorage.

Definition at line 108 of file mythstorage.cpp.

◆ GetSetClause()

QString GenericDBStorage::GetSetClause ( MSqlBindings bindings) const

Reimplemented from SimpleDBStorage.

Definition at line 117 of file mythstorage.cpp.

Member Data Documentation

◆ m_keycolumn

QString GenericDBStorage::m_keycolumn

Definition at line 91 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().

◆ m_keyvalue

QString GenericDBStorage::m_keyvalue

Definition at line 92 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().

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