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
[legend]
Collaboration diagram for GenericDBStorage:
Collaboration graph
[legend]

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() 
)
inline

Definition at line 76 of file mythstorage.h.

◆ ~GenericDBStorage()

virtual GenericDBStorage::~GenericDBStorage ( )
virtualdefault

Member Function Documentation

◆ SetKeyValue() [1/2]

void GenericDBStorage::SetKeyValue ( const QString &  val)
inline

Definition at line 83 of file mythstorage.h.

◆ SetKeyValue() [2/2]

void GenericDBStorage::SetKeyValue ( long long  val)
inline

Definition at line 84 of file mythstorage.h.

◆ GetWhereClause()

QString GenericDBStorage::GetWhereClause ( MSqlBindings bindings) const
overrideprotectedvirtual

Implements SimpleDBStorage.

Definition at line 107 of file mythstorage.cpp.

◆ GetSetClause()

QString GenericDBStorage::GetSetClause ( MSqlBindings bindings) const
overrideprotectedvirtual

Reimplemented from SimpleDBStorage.

Definition at line 116 of file mythstorage.cpp.

Member Data Documentation

◆ m_keycolumn

QString GenericDBStorage::m_keycolumn
protected

Definition at line 91 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().

◆ m_keyvalue

QString GenericDBStorage::m_keyvalue
protected

Definition at line 92 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().


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