GnuCash de0bfde+
Loading...
Searching...
No Matches
GncSqlColumnTableEntryImpl< Type > Class Template Referencefinal
Inheritance diagram for GncSqlColumnTableEntryImpl< Type >:
GncSqlColumnTableEntry

Public Member Functions

 GncSqlColumnTableEntryImpl (const char *name, const GncSqlObjectType type, unsigned int s, int f, const char *gobj_name=nullptr, const char *qof_name=nullptr, QofAccessFunc get=nullptr, QofSetterFunc set=nullptr)
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, void *pObject) const noexcept override
 Load a value into an object from the database row.
void add_to_table (ColVec &vec) const noexcept override
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, void *pObject, PairVec &vec) const noexcept override
 Add a pair of the table column heading and object's value's string representation to a PairVec; used for constructing WHERE clauses and UPDATE statements.
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
void load (const GncSqlBackend *sql_be, GncSqlRow &row, QofIdTypeConst obj_name, gpointer pObject) const noexcept
void add_to_table (ColVec &vec) const noexcept
 Add a GncSqlColumnInfo structure for the column type to a ColVec.
void add_to_query (QofIdTypeConst obj_name, const gpointer pObject, PairVec &vec) const noexcept
Public Member Functions inherited from GncSqlColumnTableEntry
 GncSqlColumnTableEntry (const char *name, const GncSqlObjectType type, unsigned int s, int f, const char *gobj_name=nullptr, const char *qof_name=nullptr, QofAccessFunc get=nullptr, QofSetterFunc set=nullptr)
QofAccessFunc get_getter (QofIdTypeConst obj_name) const noexcept
 Retrieve the getter function depending on whether it's an auto-increment field, a QofClass getter, or a function passed to the constructor.
QofSetterFunc get_setter (QofIdTypeConst obj_name) const noexcept
 Retrieve the setter function depending on whether it's an auto-increment field, a QofClass getter, or a function passed to the constructor.
const char * name () const noexcept
 Retrieve the field name so that we don't need to make create_single_col_select_statement and friend.
bool is_autoincr () const noexcept
 Report if the entry is an auto-increment field.
template<typename T>
void load_from_guid_ref (GncSqlRow &row, QofIdTypeConst obj_name, void *pObject, T get_ref) const noexcept

Additional Inherited Members

Protected Member Functions inherited from GncSqlColumnTableEntry
template<typename T>
T get_row_value_from_object (QofIdTypeConst obj_name, const void *pObject) const
template<typename T>
void add_value_to_vec (QofIdTypeConst obj_name, const void *pObject, PairVec &vec) const
void add_objectref_guid_to_query (QofIdTypeConst obj_name, const void *pObject, PairVec &vec) const noexcept
 Adds a name/guid std::pair to a PairVec for creating a query.
void add_objectref_guid_to_table (ColVec &vec) const noexcept
 Adds a column info structure for an object reference GncGUID to a ColVec.
template<>
gint64 get_row_value_from_object (QofIdTypeConst obj_name, const void *pObject) const
template<>
void add_value_to_vec (QofIdTypeConst obj_name, const void *pObject, PairVec &vec, std::true_type) const
template<>
void add_value_to_vec (QofIdTypeConst obj_name, const void *pObject, PairVec &vec, std::false_type) const

Detailed Description

template<GncSqlObjectType Type>
class GncSqlColumnTableEntryImpl< Type >

Definition at line 267 of file gnc-sql-column-table-entry.hpp.

Constructor & Destructor Documentation

◆ GncSqlColumnTableEntryImpl()

template<GncSqlObjectType Type>
GncSqlColumnTableEntryImpl< Type >::GncSqlColumnTableEntryImpl ( const char * name,
const GncSqlObjectType type,
unsigned int s,
int f,
const char * gobj_name = nullptr,
const char * qof_name = nullptr,
QofAccessFunc get = nullptr,
QofSetterFunc set = nullptr )
inline

Definition at line 270 of file gnc-sql-column-table-entry.hpp.

275 :
276 GncSqlColumnTableEntry (name, type, s, f, gobj_name,qof_name, get, set)
277 {}
const char * name() const noexcept
Retrieve the field name so that we don't need to make create_single_col_select_statement and friend.

Member Function Documentation

◆ add_to_query() [1/21]

void GncSqlColumnTableEntryImpl< CT_ACCOUNTREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 367 of file gnc-account-sql.cpp.

371{
373}
void add_objectref_guid_to_query(QofIdTypeConst obj_name, const void *pObject, PairVec &vec) const noexcept
Adds a name/guid std::pair to a PairVec for creating a query.

◆ add_to_query() [2/21]

void GncSqlColumnTableEntryImpl< CT_ADDRESS >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 116 of file gnc-address-sql.cpp.

119{
120 auto addr(get_row_value_from_object<char*>(obj_name, pObject));
121 if (addr == nullptr) return;
122
123 for (auto const& subtable_row : col_table)
124 {
125 auto s = subtable_row->get_row_value_from_object<char*>(GNC_ID_ADDRESS,
126 addr);
127 if (s == nullptr)
128 continue;
129 auto buf = std::string{m_col_name} + "_" + subtable_row->m_col_name;
130 vec.emplace_back(make_pair(buf, quote_string(s)));
131 if (subtable_row->m_gobj_param_name != nullptr)
132 g_free (s);
133 }
134}

◆ add_to_query() [3/21]

void GncSqlColumnTableEntryImpl< CT_BILLTERMREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 350 of file gnc-bill-term-sql.cpp.

◆ add_to_query() [4/21]

void GncSqlColumnTableEntryImpl< CT_BUDGETREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 475 of file gnc-budget-sql.cpp.

◆ add_to_query() [5/21]

void GncSqlColumnTableEntryImpl< CT_COMMODITYREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 243 of file gnc-commodity-sql.cpp.

◆ add_to_query() [6/21]

void GncSqlColumnTableEntryImpl< CT_INVOICEREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 300 of file gnc-invoice-sql.cpp.

◆ add_to_query() [7/21]

void GncSqlColumnTableEntryImpl< CT_LOTREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 213 of file gnc-lots-sql.cpp.

◆ add_to_query() [8/21]

void GncSqlColumnTableEntryImpl< CT_ORDERREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 188 of file gnc-order-sql.cpp.

◆ add_to_query() [9/21]

void GncSqlColumnTableEntryImpl< CT_OWNERREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 171 of file gnc-owner-sql.cpp.

174{
177
179 auto owner = (*getter) (pObject);
180
181 QofInstance* inst = nullptr;
183
184 auto type_hdr = std::string{m_col_name} + "_type";
185 auto guid_hdr = std::string{m_col_name} + "_guid";
186
187 if (owner != nullptr)
188 {
190 switch (type)
191 {
194 break;
195
196 case GNC_OWNER_JOB:
198 break;
199
200 case GNC_OWNER_VENDOR:
202 break;
203
206 break;
207
208 default:
209 PWARN ("Invalid owner type: %d\n", type);
210 }
211 }
212
213 if (inst == nullptr)
214 {
215 /* Twice, once for type, once for guid. */
216 vec.emplace_back (std::make_pair (type_hdr, std::string{"NULL"}));
217 vec.emplace_back (std::make_pair (guid_hdr, std::string{"NULL"}));
218
219 return;
220 }
222
223 buf << type;
224 vec.emplace_back(std::make_pair(type_hdr, quote_string(buf.str())));
225 buf.str("");
227 if (guid != nullptr)
228 {
231 buf << strbuff;
232 }
233 else
234 buf << "NULL";
235 vec.emplace_back(std::make_pair(guid_hdr, quote_string(buf.str())));
236}
QofAccessFunc get_getter(QofIdTypeConst obj_name) const noexcept
Retrieve the getter function depending on whether it's an auto-increment field, a QofClass getter,...
gchar * guid_to_string_buff(const GncGUID *guid, gchar *str)
The guid_to_string_buff() routine puts a null-terminated string encoding of the id into the memory po...
Definition guid.cpp:208
const GncGUID * qof_instance_get_guid(gconstpointer inst)
Return the GncGUID of this instance.
#define PWARN(format, args...)
Log a warning.
Definition qoflog.h:250
GncOwnerType gncOwnerGetType(const GncOwner *owner)
Returns the GncOwnerType of this owner.
Definition gncOwner.c:200

◆ add_to_query() [10/21]

void GncSqlColumnTableEntryImpl< CT_NUMERIC >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 599 of file gnc-sql-column-table-entry.cpp.

602{
603/* We can't use get_row_value_from_object for the same reason as time64. */
606
609
610 if (m_gobj_param_name != nullptr)
611 {
612 gnc_numeric* s;
613 g_object_get (pObject, m_gobj_param_name, &s, NULL);
614 n = *s;
616 }
617 else
618 {
619 getter = reinterpret_cast<NumericGetterFunc>(get_getter (obj_name));
620 if (getter != NULL)
621 {
622 n = (*getter) (pObject);
623 }
624 else
625 {
626 n = gnc_numeric_zero ();
627 }
628 }
629
631 std::string num_col{m_col_name};
632 std::string denom_col{m_col_name};
633 num_col += "_num";
634 denom_col += "_denom";
635 buf << gnc_numeric_num (n);
636 vec.emplace_back (std::make_pair (num_col, buf.str ()));
637 buf.str ("");
639 vec.emplace_back (denom_col, buf.str ());
640}

◆ add_to_query() [11/21]

void GncSqlColumnTableEntryImpl< CT_GDATE >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 517 of file gnc-sql-column-table-entry.cpp.

520{
521 GDate *date = get_row_value_from_object<GDate*>(obj_name, pObject);
522
523 if (date && g_date_valid (date))
524 {
526 buf << std::setfill ('0') << std::setw (4) << g_date_get_year (date) <<
528 std::setw (2) << static_cast<int>(g_date_get_day (date));
529 vec.emplace_back (std::make_pair (std::string{m_col_name},
530 quote_string(buf.str())));
531 }
532 if (date && m_gobj_param_name != nullptr)
534}

◆ add_to_query() [12/21]

void GncSqlColumnTableEntryImpl< CT_TIME >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 426 of file gnc-sql-column-table-entry.cpp.

429{
430 /* We still can't use get_row_value_from_object because while g_value could
431 * contentedly store a time64 in an int64, KVP wouldn't be able to tell them
432 * apart, so we have the struct Time64 hack, see engine/gnc-date.c.
433 */
434 time64 t64;
435 if (m_gobj_param_name != nullptr)
436 {
437 Time64* t;
438 g_object_get (pObject, m_gobj_param_name, &t, nullptr);
439 t64 = t->t;
441 }
442 else
443 {
445 g_return_if_fail(getter != nullptr);
446 t64 = (*getter)(pObject);
447 }
448 if (t64 > MINTIME && t64 < MAXTIME)
449 {
451 std::string timestr("'");
452 timestr += time.format_iso8601() + "'";
453 vec.emplace_back (std::make_pair (std::string{m_col_name}, timestr));
454 }
455 else
456 {
457 vec.emplace_back (std::make_pair (std::string{m_col_name},
458 "NULL"));
459 }
460}

◆ add_to_query() [13/21]

void GncSqlColumnTableEntryImpl< CT_GUID >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 353 of file gnc-sql-column-table-entry.cpp.

356{
357 auto s = get_row_value_from_object<GncGUID*>(obj_name, pObject);
358
359 if (s != nullptr)
360 {
362 vec.emplace_back (std::make_pair (std::string{m_col_name}, quote_string(guid_s)));
363 g_free(guid_s);
364 if (m_gobj_param_name != nullptr)
366 }
367}
gchar * guid_to_string(const GncGUID *guid)
The guid_to_string() routine returns a null-terminated string encoding of the id.
Definition guid.cpp:199

◆ add_to_query() [14/21]

void GncSqlColumnTableEntryImpl< CT_DOUBLE >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 318 of file gnc-sql-column-table-entry.cpp.

321{
322 add_value_to_vec<double*>(obj_name, pObject, vec);
323}

◆ add_to_query() [15/21]

void GncSqlColumnTableEntryImpl< CT_INT64 >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 281 of file gnc-sql-column-table-entry.cpp.

284{
285 add_value_to_vec<int64_t>(obj_name, pObject, vec);
286}

◆ add_to_query() [16/21]

void GncSqlColumnTableEntryImpl< CT_BOOLEAN >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 226 of file gnc-sql-column-table-entry.cpp.

229{
230 add_value_to_vec<int>(obj_name, pObject, vec);
231}

◆ add_to_query() [17/21]

void GncSqlColumnTableEntryImpl< CT_INT >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 190 of file gnc-sql-column-table-entry.cpp.

193{
194 add_value_to_vec<int>(obj_name, pObject, vec);
195}

◆ add_to_query() [18/21]

void GncSqlColumnTableEntryImpl< CT_STRING >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 143 of file gnc-sql-column-table-entry.cpp.

146{
147 auto s = get_row_value_from_object<char*>(obj_name, pObject);
148
149 if (s != nullptr)
150 {
152 stream << s;
153 vec.emplace_back (std::make_pair (std::string{m_col_name},
154 quote_string(stream.str())));
155 /* g_object_get returns a copy; a getter returns the object's own string. */
156 if (m_gobj_param_name != nullptr)
157 g_free (s);
158 }
159}

◆ add_to_query() [19/21]

void GncSqlColumnTableEntryImpl< CT_TAXTABLEREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 507 of file gnc-tax-table-sql.cpp.

◆ add_to_query() [20/21]

void GncSqlColumnTableEntryImpl< CT_TXREF >::add_to_query ( QofIdTypeConst obj_name,
const gpointer pObject,
PairVec & vec ) const
noexcept

Definition at line 828 of file gnc-transaction-sql.cpp.

◆ add_to_query() [21/21]

template<GncSqlObjectType Type>
void GncSqlColumnTableEntryImpl< Type >::add_to_query ( QofIdTypeConst obj_name,
void * pObject,
PairVec & vec ) const
overridevirtualnoexcept

Add a pair of the table column heading and object's value's string representation to a PairVec; used for constructing WHERE clauses and UPDATE statements.

Implements GncSqlColumnTableEntry.

◆ add_to_table() [1/21]

void GncSqlColumnTableEntryImpl< CT_ACCOUNTREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 361 of file gnc-account-sql.cpp.

362{
364}
void add_objectref_guid_to_table(ColVec &vec) const noexcept
Adds a column info structure for an object reference GncGUID to a ColVec.

◆ add_to_table() [2/21]

void GncSqlColumnTableEntryImpl< CT_ADDRESS >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 101 of file gnc-address-sql.cpp.

102{
103 for (auto const& subtable_row : col_table)
104 {
105 auto buf = std::string{m_col_name} + "_" + subtable_row->m_col_name;
106 GncSqlColumnInfo info(buf.c_str(), BCT_STRING, subtable_row->m_size,
107 true, false, m_flags & COL_PKEY, m_flags & COL_NNUL);
108 vec.emplace_back(std::move(info));
109 }
110}

◆ add_to_table() [3/21]

void GncSqlColumnTableEntryImpl< CT_BILLTERMREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 344 of file gnc-bill-term-sql.cpp.

◆ add_to_table() [4/21]

void GncSqlColumnTableEntryImpl< CT_BUDGETREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 469 of file gnc-budget-sql.cpp.

◆ add_to_table() [5/21]

void GncSqlColumnTableEntryImpl< CT_COMMODITYREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 237 of file gnc-commodity-sql.cpp.

◆ add_to_table() [6/21]

void GncSqlColumnTableEntryImpl< CT_INVOICEREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 294 of file gnc-invoice-sql.cpp.

◆ add_to_table() [7/21]

void GncSqlColumnTableEntryImpl< CT_LOTREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 207 of file gnc-lots-sql.cpp.

◆ add_to_table() [8/21]

void GncSqlColumnTableEntryImpl< CT_ORDERREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 182 of file gnc-order-sql.cpp.

◆ add_to_table() [9/21]

void GncSqlColumnTableEntryImpl< CT_OWNERREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 157 of file gnc-owner-sql.cpp.

158{
159 auto buf = g_strdup_printf ("%s_type", m_col_name);
160 GncSqlColumnInfo info(buf, BCT_INT, 0, false, false,
161 m_flags & COL_PKEY, m_flags & COL_NNUL);
162 vec.emplace_back(std::move(info));
163/* Buf isn't leaking, it belongs to ColVec now. */
164 buf = g_strdup_printf ("%s_guid", m_col_name);
165 GncSqlColumnInfo info2(buf, BCT_STRING, GUID_ENCODING_LENGTH, false, false,
166 m_flags & COL_PKEY, m_flags & COL_NNUL);
167 vec.emplace_back(std::move(info2));
168}

◆ add_to_table() [10/21]

void GncSqlColumnTableEntryImpl< CT_NUMERIC >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 584 of file gnc-sql-column-table-entry.cpp.

585{
586
587 for (auto const& subtable_row : numeric_col_table)
588 {
589 gchar* buf = g_strdup_printf("%s_%s", m_col_name,
590 subtable_row->m_col_name);
591 GncSqlColumnInfo info(buf, BCT_INT64, 0, false, false,
592 m_flags & COL_PKEY, m_flags & COL_NNUL);
593 g_free (buf);
594 vec.emplace_back(std::move(info));
595 }
596}

◆ add_to_table() [11/21]

void GncSqlColumnTableEntryImpl< CT_GDATE >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 510 of file gnc-sql-column-table-entry.cpp.

511{
512 GncSqlColumnInfo info{*this, BCT_DATE, DATE_COL_SIZE, FALSE};
513 vec.emplace_back(std::move(info));
514}

◆ add_to_table() [12/21]

void GncSqlColumnTableEntryImpl< CT_TIME >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 418 of file gnc-sql-column-table-entry.cpp.

419{
420
421 GncSqlColumnInfo info{*this, BCT_DATETIME, TIME_COL_SIZE, FALSE};
422 vec.emplace_back(std::move(info));
423}

◆ add_to_table() [13/21]

void GncSqlColumnTableEntryImpl< CT_GUID >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 346 of file gnc-sql-column-table-entry.cpp.

347{
348 GncSqlColumnInfo info{*this, BCT_STRING, GUID_ENCODING_LENGTH, FALSE};
349 vec.emplace_back(std::move(info));
350}

◆ add_to_table() [14/21]

void GncSqlColumnTableEntryImpl< CT_DOUBLE >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 311 of file gnc-sql-column-table-entry.cpp.

312{
313 GncSqlColumnInfo info{*this, BCT_DOUBLE, 0, FALSE};
314 vec.emplace_back(std::move(info));
315}

◆ add_to_table() [15/21]

void GncSqlColumnTableEntryImpl< CT_INT64 >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 254 of file gnc-sql-column-table-entry.cpp.

255{
256
257 GncSqlColumnInfo info{*this, BCT_INT64, 0, FALSE};
258 vec.emplace_back(std::move(info));
259}

◆ add_to_table() [16/21]

void GncSqlColumnTableEntryImpl< CT_BOOLEAN >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 219 of file gnc-sql-column-table-entry.cpp.

220{
221 GncSqlColumnInfo info{*this, BCT_INT, 0, FALSE};
222 vec.emplace_back(std::move(info));
223}

◆ add_to_table() [17/21]

void GncSqlColumnTableEntryImpl< CT_INT >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 183 of file gnc-sql-column-table-entry.cpp.

184{
185 GncSqlColumnInfo info{*this, BCT_INT, 0, FALSE};
186 vec.emplace_back(std::move(info));
187}

◆ add_to_table() [18/21]

void GncSqlColumnTableEntryImpl< CT_STRING >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 133 of file gnc-sql-column-table-entry.cpp.

134{
135 GncSqlColumnInfo info{*this, BCT_STRING, m_size, TRUE};
136 vec.emplace_back(std::move(info));
137}

◆ add_to_table() [19/21]

void GncSqlColumnTableEntryImpl< CT_TAXTABLEREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 501 of file gnc-tax-table-sql.cpp.

◆ add_to_table() [20/21]

void GncSqlColumnTableEntryImpl< CT_TXREF >::add_to_table ( ColVec & vec) const
virtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

Definition at line 822 of file gnc-transaction-sql.cpp.

◆ add_to_table() [21/21]

template<GncSqlObjectType Type>
void GncSqlColumnTableEntryImpl< Type >::add_to_table ( ColVec & vec) const
overridevirtualnoexcept

Add a GncSqlColumnInfo structure for the column type to a ColVec.

Implements GncSqlColumnTableEntry.

◆ load() [1/21]

void GncSqlColumnTableEntryImpl< CT_ACCOUNTREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 349 of file gnc-account-sql.cpp.

353{
354 load_from_guid_ref(row, obj_name, pObject,
355 [sql_be](GncGUID* g){
356 return xaccAccountLookup(g, sql_be->book());
357 });
358}
Account * xaccAccountLookup(const GncGUID *guid, QofBook *book)
The xaccAccountLookup() subroutine will return the account associated with the given id,...
Definition Account.cpp:2039

◆ load() [2/21]

void GncSqlColumnTableEntryImpl< CT_ADDRESS >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 75 of file gnc-address-sql.cpp.

79{
82
84
85 for (auto const& subtable_row : col_table)
86 {
87 auto buf = std::string{m_col_name} + "_" + subtable_row->m_col_name;
88 auto val = row.get_string_at_col (buf.c_str());
90 if (val)
91 set_parameter (addr, val->c_str(), sub_setter,
92 subtable_row->m_gobj_param_name);
93 }
94
96 reinterpret_cast<AddressSetterFunc>(get_setter(obj_name)),
97 m_gobj_param_name);
98}
QofSetterFunc get_setter(QofIdTypeConst obj_name) const noexcept
Retrieve the setter function depending on whether it's an auto-increment field, a QofClass getter,...

◆ load() [3/21]

void GncSqlColumnTableEntryImpl< CT_BILLTERMREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 332 of file gnc-bill-term-sql.cpp.

336{
337 load_from_guid_ref(row, obj_name, pObject,
338 [sql_be](GncGUID* g){
339 return gncBillTermLookup(sql_be->book(), g);
340 });
341}

◆ load() [4/21]

void GncSqlColumnTableEntryImpl< CT_BUDGETREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 457 of file gnc-budget-sql.cpp.

461{
462 load_from_guid_ref(row, obj_name, pObject,
463 [sql_be](GncGUID* g){
464 return gnc_budget_lookup (g, sql_be->book());
465 });
466}

◆ load() [5/21]

void GncSqlColumnTableEntryImpl< CT_COMMODITYREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 225 of file gnc-commodity-sql.cpp.

229{
230 load_from_guid_ref(row, obj_name, pObject,
231 [sql_be](GncGUID* g){
233 });
234}

◆ load() [6/21]

void GncSqlColumnTableEntryImpl< CT_INVOICEREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 282 of file gnc-invoice-sql.cpp.

286{
287 load_from_guid_ref(row, obj_name, pObject,
288 [sql_be](GncGUID* g){
289 return gncInvoiceLookup (sql_be->book(), g);
290 });
291}

◆ load() [7/21]

void GncSqlColumnTableEntryImpl< CT_LOTREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 195 of file gnc-lots-sql.cpp.

199{
200 load_from_guid_ref(row, obj_name, pObject,
201 [sql_be](GncGUID* g){
202 return gnc_lot_lookup(g, sql_be->book());
203 });
204}

◆ load() [8/21]

void GncSqlColumnTableEntryImpl< CT_ORDERREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 170 of file gnc-order-sql.cpp.

174{
175 load_from_guid_ref(row, obj_name, pObject,
176 [sql_be](GncGUID* g){
177 return gncOrderLookup(sql_be->book(), g);
178 });
179}

◆ load() [9/21]

void GncSqlColumnTableEntryImpl< CT_OWNERREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 50 of file gnc-owner-sql.cpp.

54{
58 GncGUID* pGuid = nullptr;
59
60 g_return_if_fail (sql_be != nullptr);
61 g_return_if_fail (pObject != nullptr);
62
63 auto book = sql_be->book();
64 auto buf = std::string{m_col_name} + "_type";
65 try
66 {
67 type = static_cast<decltype(type)>(row.get_int_at_col(buf.c_str()).value_or(0));
68 buf = std::string{m_col_name} + "_guid";
69 auto val = row.get_string_at_col (buf.c_str());
70 if (val && string_to_guid (val->c_str(), &guid))
71 pGuid = &guid;
72 }
74 {
75 return;
76 }
77 if (type == GNC_OWNER_NONE || pGuid == nullptr)
78 return;
79
80 switch (type)
81 {
83 {
85
86 if (pGuid != NULL)
87 {
89 if (cust == NULL)
90 {
93 }
94 }
96 break;
97 }
98
99 case GNC_OWNER_JOB:
100 {
101 GncJob* job = NULL;
102
103 if (pGuid != NULL)
104 {
106 if (job == NULL)
107 {
110 }
111 }
113 break;
114 }
115
116 case GNC_OWNER_VENDOR:
117 {
119
120 if (pGuid != NULL)
121 {
123 if (vendor == NULL)
124 {
127 }
128 }
130 break;
131 }
132
134 {
136
137 if (pGuid != NULL)
138 {
140 if (employee == NULL)
141 {
144 }
145 }
147 break;
148 }
149
150 default:
151 PWARN ("Invalid owner type: %d\n", type);
152 }
153 set_parameter (pObject, &owner, get_setter(obj_name), m_gobj_param_name);
154}

◆ load() [10/21]

void GncSqlColumnTableEntryImpl< CT_NUMERIC >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 557 of file gnc-sql-column-table-entry.cpp.

561{
562
563
565 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
566
567 auto buf = g_strdup_printf ("%s_num", m_col_name);
568 auto num = row.get_int_at_col (buf);
569 g_free (buf);
570 buf = g_strdup_printf ("%s_denom", m_col_name);
571 auto denom = row.get_int_at_col (buf);
572 g_free (buf);
573
574 if (num && denom)
575 {
576 auto n = gnc_numeric_create (*num, *denom);
578 reinterpret_cast<NumericSetterFunc>(get_setter(obj_name)),
579 m_gobj_param_name);
580 }
581}

◆ load() [11/21]

void GncSqlColumnTableEntryImpl< CT_GDATE >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 466 of file gnc-sql-column-table-entry.cpp.

470{
472 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
473 if (row.is_col_null(m_col_name))
474 return;
475 GDate date;
476 g_date_clear (&date, 1);
477
478 auto strval{row.get_string_at_col(m_col_name)};
479 if (strval)
480 {
481 if (strval->empty())
482 return;
483 auto year = static_cast<GDateYear>(stoi (strval->substr (0,4)));
484 auto month = static_cast<GDateMonth>(stoi (strval->substr (4,2)));
485 auto day = static_cast<GDateDay>(stoi (strval->substr (6,2)));
486
487 if (year != 0 || month != 0 || day != (GDateDay)0)
489 }
490 else
491 {
492 auto timeval = row.get_time64_at_col(m_col_name);
493 if (!timeval)
494 return;
495 /* time64_to_gdate applies the tz, and gdates are saved
496 * as ymd, so we don't want that.
497 */
498 auto time = *timeval;
499 auto tm = gnc_gmtime(&time);
500 g_date_set_dmy(&date, tm->tm_mday,
501 static_cast<GDateMonth>(tm->tm_mon + 1),
502 tm->tm_year + 1900);
503 free(tm);
504 }
505
506 set_parameter(pObject, &date, get_setter(obj_name), m_gobj_param_name);
507}
struct tm * gnc_gmtime(const time64 *secs)
fill out a time struct from a 64-bit time value
Definition gnc-date.cpp:178

◆ load() [12/21]

void GncSqlColumnTableEntryImpl< CT_TIME >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 374 of file gnc-sql-column-table-entry.cpp.

379{
380 time64 t{0};
381 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
382 auto strval = row.get_string_at_col(m_col_name);
383 if (strval)
384 {
385 if (!strval->empty())
386 try
387 {
389 t = static_cast<time64>(time);
390 }
391 catch (const std::invalid_argument& err)
392 {
393 PWARN("An invalid date %s was found in your database."
394 "It has been set to 1 January 1970.",
395 strval->c_str());
396 }
397 }
398 else
399 {
400 if (auto time64val = row.get_time64_at_col (m_col_name))
401 t = *time64val;
402 }
403
404 if (m_gobj_param_name != nullptr)
405 {
406 Time64 t64{t};
407 set_parameter(pObject, &t64, m_gobj_param_name);
408 }
409 else
410 {
412 reinterpret_cast<Time64SetterFunc>(get_setter(obj_name)),
413 nullptr);
414 }
415}

◆ load() [13/21]

void GncSqlColumnTableEntryImpl< CT_GUID >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 328 of file gnc-sql-column-table-entry.cpp.

333{
334
336
338 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
339
340 auto strval{row.get_string_at_col(m_col_name)};
341 if (strval && string_to_guid (strval->c_str(), &guid))
342 set_parameter(pObject, &guid, get_setter(obj_name), m_gobj_param_name);
343}

◆ load() [14/21]

void GncSqlColumnTableEntryImpl< CT_DOUBLE >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 290 of file gnc-sql-column-table-entry.cpp.

295{
297 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
298 double val{0.0};
299
300 if (auto int_val{row.get_int_at_col(m_col_name)})
301 val = static_cast<decltype(val)>(*int_val);
302 else if (auto float_val{row.get_float_at_col(m_col_name)})
303 val = static_cast<decltype(val)>(*float_val);
304 else if (auto double_val{row.get_double_at_col(m_col_name)})
305 val = *double_val;
306
307 set_parameter(pObject, val, get_setter(obj_name), m_gobj_param_name);
308}

◆ load() [15/21]

void GncSqlColumnTableEntryImpl< CT_INT64 >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 238 of file gnc-sql-column-table-entry.cpp.

243{
244 g_return_if_fail (m_gobj_param_name != nullptr || get_setter(obj_name) != nullptr);
245
246 auto val = row.get_int_at_col (m_col_name);
247 if (val)
249 reinterpret_cast<Int64SetterFunc>(get_setter(obj_name)),
250 m_gobj_param_name);
251}

◆ load() [16/21]

void GncSqlColumnTableEntryImpl< CT_BOOLEAN >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 202 of file gnc-sql-column-table-entry.cpp.

207{
209 g_return_if_fail (m_gobj_param_name != NULL || get_setter(obj_name) != NULL);
210
211 auto val = row.get_int_at_col (m_col_name);
212 if (val)
213 set_parameter(pObject, static_cast<int>(*val),
214 reinterpret_cast<BooleanSetterFunc>(get_setter(obj_name)),
215 m_gobj_param_name);
216}

◆ load() [17/21]

void GncSqlColumnTableEntryImpl< CT_INT >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 166 of file gnc-sql-column-table-entry.cpp.

170{
171
173 g_return_if_fail (m_gobj_param_name != NULL || get_setter(obj_name) != NULL);
174
175 auto val = row.get_int_at_col(m_col_name);
176 if (val)
178 reinterpret_cast<IntSetterFunc>(get_setter(obj_name)),
179 m_gobj_param_name);
180}

◆ load() [18/21]

void GncSqlColumnTableEntryImpl< CT_STRING >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 119 of file gnc-sql-column-table-entry.cpp.

123{
125 g_return_if_fail (m_gobj_param_name != NULL || get_setter(obj_name) != NULL);
126
127 auto s = row.get_string_at_col (m_col_name);
128 if (s)
129 set_parameter(pObject, s->c_str(), get_setter(obj_name), m_gobj_param_name);
130}

◆ load() [19/21]

void GncSqlColumnTableEntryImpl< CT_TAXTABLEREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 489 of file gnc-tax-table-sql.cpp.

493{
494 load_from_guid_ref(row, obj_name, pObject,
495 [sql_be](GncGUID* g){
496 return gncTaxTableLookup(sql_be->book(), g);
497 });
498}

◆ load() [20/21]

void GncSqlColumnTableEntryImpl< CT_TXREF >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
gpointer pObject ) const
noexcept

Definition at line 790 of file gnc-transaction-sql.cpp.

794{
797
798 auto val = row.get_string_at_col (m_col_name);
799 if (!val)
800 return;
801
803 Transaction *tx = nullptr;
804 if (string_to_guid (val->c_str(), &guid))
805 tx = xaccTransLookup (&guid, sql_be->book());
806
807 // If the transaction is not found, try loading it
809 if (tx == nullptr)
810 {
811 std::string sql = tpkey + " = '" + *val + "'";
813 tx = xaccTransLookup (&guid, sql_be->book());
814 }
815
816 if (tx != nullptr)
817 set_parameter (pObject, tx, get_setter(obj_name), m_gobj_param_name);
818
819}
Transaction * xaccTransLookup(const GncGUID *guid, QofBook *book)
The xaccTransLookup() subroutine will return the transaction associated with the given id,...

◆ load() [21/21]

template<GncSqlObjectType Type>
void GncSqlColumnTableEntryImpl< Type >::load ( const GncSqlBackend * sql_be,
GncSqlRow & row,
QofIdTypeConst obj_name,
void * pObject ) const
overridevirtualnoexcept

Load a value into an object from the database row.

Implements GncSqlColumnTableEntry.


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