GnuCash
5.6-150-g038405b370+
|
Public Member Functions | |
GncSqlRecurrenceBackend () | |
Recurrences are neither loadable nor committable. More... | |
void | load_all (GncSqlBackend *) override |
Load all objects of m_type in the database into memory. More... | |
void | create_tables (GncSqlBackend *) override |
Conditionally create or update a database table from m_col_table. More... | |
bool | commit (GncSqlBackend *, QofInstance *) override |
UPDATE/INSERT a single instance of m_type_name into the database. More... | |
Public Member Functions inherited from GncSqlObjectBackend | |
GncSqlObjectBackend (int version, const std::string &type, const std::string &table, const EntryVec &vec) | |
virtual bool | write (GncSqlBackend *sql_be) |
Write all objects of m_type_name to the database. More... | |
const char * | type () const noexcept |
Return the m_type_name for the class. More... | |
const bool | is_version (int version) const noexcept |
Compare a version with the compiled version (m_version). More... | |
bool | instance_in_db (const GncSqlBackend *sql_be, QofInstance *inst) const noexcept |
Check the presence of an object in the backend's database. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GncSqlObjectBackend | |
const std::string | m_table_name |
const int | m_version |
const std::string | m_type_name |
const EntryVec & | m_col_table |
The front-end QofIdType. | |
Definition at line 38 of file gnc-recurrence-sql.h.
GncSqlRecurrenceBackend::GncSqlRecurrenceBackend | ( | ) |
Recurrences are neither loadable nor committable.
Note that the default write() implementation is also a no-op.
Definition at line 116 of file gnc-recurrence-sql.cpp.
|
inlineoverridevirtual |
UPDATE/INSERT a single instance of m_type_name into the database.
sql_be | The GncSqlBackend containing the database. |
inst | The QofInstance to be written out. |
Reimplemented from GncSqlObjectBackend.
Definition at line 44 of file gnc-recurrence-sql.h.
|
overridevirtual |
Conditionally create or update a database table from m_col_table.
The condition is the version returned by querying the database's version table: If it's 0 then the table wasn't found and will be created; All tables areat least version 1. If the database's version is less than the compiled version then the table schema is upgraded but the data isn't, that's the engine's responsibility when the object is loaded. If the version is greater than the compiled version then nothing is touched.
sql_be | The GncSqlBackend containing the database connection. |
Reimplemented from GncSqlObjectBackend.
Definition at line 397 of file gnc-recurrence-sql.cpp.
|
inlineoverridevirtual |
Load all objects of m_type in the database into memory.
sql_be | The GncSqlBackend containing the database connection. |
Implements GncSqlObjectBackend.
Definition at line 42 of file gnc-recurrence-sql.h.