摘要:
As we have already seen in previous chapters, ODB uses a pragma-based language to capture database-specific information about C++ types. This chapter 阅读全文
摘要:
The ODB transaction model (Section 3.5, "Transactions") guarantees consistency as long as we perform all the database operations corresponding to a sp 阅读全文
摘要:
The QtConcurrent namespace provides high-level APIs that make it possible to write multi-threaded programs without using low-level threading primitive 阅读全文
摘要:
6 Relationships 依赖关系 Relationships between persistent objects are expressed with pointers or containers of pointers. The ODB runtime library provides 阅读全文
摘要:
If we don't know the identifiers of the objects that we are looking for, we can use queries to search the database for objects matching certain criter 阅读全文
摘要:
A session is an application's unit of work that may encompass several database transactions. In this version of ODB a session is just an object cache. 阅读全文
摘要:
An ODB view is a C++ class or struct type that embodies a light-weight, read-only projection of one or more persistent objects or database tables or t 阅读全文
摘要:
ODB sections are an optimization mechanism that allows us to partition data members of a persistent class into groups that can be separately loaded an 阅读全文
摘要:
In C++ inheritance can be used to achieve two different goals. We can employ inheritance to reuse common data and functionality in multiple classes. F 阅读全文
摘要:
In Section 3.1, "Concepts and Terminology" we have already discussed the notion of values and value types as well as the distinction between simple an 阅读全文