MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SimpleDBStorage Class Referenceabstract

#include <libmythbase/mythstorage.h>

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

Public Member Functions

 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

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

Protected Attributes

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

Detailed Description

Definition at line 55 of file mythstorage.h.

Constructor & Destructor Documentation

◆ SimpleDBStorage()

SimpleDBStorage::SimpleDBStorage ( StorageUser user,
const QString &  table,
const QString &  column 
)
inline

Definition at line 58 of file mythstorage.h.

◆ ~SimpleDBStorage()

SimpleDBStorage::~SimpleDBStorage ( )
overridedefault

Member Function Documentation

◆ Load()

void SimpleDBStorage::Load ( void  )
overridevirtual

Implements Storage.

Reimplemented in MPEG2audType, and SampleRate.

Definition at line 9 of file mythstorage.cpp.

Referenced by SampleRate::Load(), and MPEG2audType::Load().

◆ Save() [1/2]

void SimpleDBStorage::Save ( void  )
overridevirtual

Implements Storage.

Reimplemented in GlobalDBStorage, and HostDBStorage.

Definition at line 81 of file mythstorage.cpp.

Referenced by HostDBStorage::Save(), and GlobalDBStorage::Save().

◆ Save() [2/2]

void SimpleDBStorage::Save ( const QString &  table)
overridevirtual

Reimplemented from Storage.

Definition at line 35 of file mythstorage.cpp.

◆ IsSaveRequired()

bool SimpleDBStorage::IsSaveRequired ( void  ) const
overridevirtual

Reimplemented from Storage.

Definition at line 96 of file mythstorage.cpp.

Referenced by Save().

◆ SetSaveRequired()

void SimpleDBStorage::SetSaveRequired ( void  )
overridevirtual

Reimplemented from Storage.

Definition at line 101 of file mythstorage.cpp.

◆ GetWhereClause()

virtual QString SimpleDBStorage::GetWhereClause ( MSqlBindings bindings) const
protectedpure virtual

◆ GetSetClause()

QString SimpleDBStorage::GetSetClause ( MSqlBindings bindings) const
protectedvirtual

Member Data Documentation

◆ m_initval

QString SimpleDBStorage::m_initval
protected

Definition at line 74 of file mythstorage.h.

Referenced by IsSaveRequired(), Load(), and SetSaveRequired().


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