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

#include <libmythbase/mythstorage.h>

Inheritance diagram for GenericDBStorage:
[legend]
Collaboration diagram for GenericDBStorage:
[legend]

Public Member Functions

 GenericDBStorage (StorageUser *user, const QString &table, const QString &column, QString keycolumn, QString keyvalue=QString())
 
 ~GenericDBStorage () override=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)
 
 ~SimpleDBStorage () override=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, QString table, QString column)
 
 ~DBStorage () override=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 77 of file mythstorage.h.

Constructor & Destructor Documentation

◆ GenericDBStorage()

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

Definition at line 80 of file mythstorage.h.

◆ ~GenericDBStorage()

GenericDBStorage::~GenericDBStorage ( )
overridedefault

Member Function Documentation

◆ SetKeyValue() [1/2]

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

Definition at line 88 of file mythstorage.h.

◆ SetKeyValue() [2/2]

void GenericDBStorage::SetKeyValue ( long long  val)
inline

Definition at line 89 of file mythstorage.h.

◆ GetWhereClause()

QString GenericDBStorage::GetWhereClause ( MSqlBindings bindings) const
overrideprotectedvirtual

Implements SimpleDBStorage.

Definition at line 108 of file mythstorage.cpp.

◆ GetSetClause()

QString GenericDBStorage::GetSetClause ( MSqlBindings bindings) const
overrideprotectedvirtual

Reimplemented from SimpleDBStorage.

Definition at line 117 of file mythstorage.cpp.

Member Data Documentation

◆ m_keycolumn

QString GenericDBStorage::m_keycolumn
protected

Definition at line 96 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().

◆ m_keyvalue

QString GenericDBStorage::m_keyvalue
protected

Definition at line 97 of file mythstorage.h.

Referenced by GetSetClause(), and GetWhereClause().


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