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
Collaboration diagram for SimpleDBStorage:
Collaboration graph

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 

Definition at line 58 of file mythstorage.h.

◆ ~SimpleDBStorage()

SimpleDBStorage::~SimpleDBStorage ( )

Member Function Documentation

◆ Load()

void SimpleDBStorage::Load ( void  )

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  )

◆ Save() [2/2]

void SimpleDBStorage::Save ( const QString &  table)

Reimplemented from Storage.

Definition at line 35 of file mythstorage.cpp.

◆ IsSaveRequired()

bool SimpleDBStorage::IsSaveRequired ( void  ) const

Reimplemented from Storage.

Definition at line 96 of file mythstorage.cpp.

Referenced by Save().

◆ SetSaveRequired()

void SimpleDBStorage::SetSaveRequired ( void  )

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

Member Data Documentation

◆ m_initval

QString SimpleDBStorage::m_initval

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: