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

#include <mythstorage.h>

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

Public Member Functions

 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

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 51 of file mythstorage.h.

Constructor & Destructor Documentation

◆ SimpleDBStorage()

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

Definition at line 54 of file mythstorage.h.

◆ ~SimpleDBStorage()

virtual SimpleDBStorage::~SimpleDBStorage ( )
virtualdefault

Member Function Documentation

◆ Load()

void SimpleDBStorage::Load ( void  )
overridevirtual

Implements Storage.

Reimplemented in MPEG2audType, and SampleRate.

Definition at line 8 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 80 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 34 of file mythstorage.cpp.

◆ IsSaveRequired()

bool SimpleDBStorage::IsSaveRequired ( void  ) const
overridevirtual

Reimplemented from Storage.

Definition at line 95 of file mythstorage.cpp.

Referenced by Save().

◆ SetSaveRequired()

void SimpleDBStorage::SetSaveRequired ( void  )
overridevirtual

Reimplemented from Storage.

Definition at line 100 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 70 of file mythstorage.h.

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


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