#include <qofbook-p.h>
Data Fields | |
| QofEntity | entity |
| KvpFrame * | kvp_data |
| GHashTable * | hash_of_collections |
| GHashTable * | data_tables |
| char | book_open |
| gboolean | dirty |
| gint32 | version |
| QofBackend * | backend |
| guint32 | idata |
|
|
To be technically correct, backends belong to sessions and not books. So the pointer below "really shouldn't be here", except that it provides a nice convenience, avoiding a lookup from the session. Better solutions welcome ... |
|
|
state flag: 'y' means 'open for editing', 'n' means 'book is closed' |
|
|
In order to store arbitrary data, for extensibility, add a table that will be used to hold arbitrary pointers. |
|
|
dirty/clean flag. If dirty, then this book has been modified, but has not yet been written out to storage (file/database) |
|
|
Unique guid for this book. |
|
|
The entity table associates the GUIDs of all the objects belonging to this book, with their pointers to the respective objects. This allows a lookup of objects based on thier guid. |
|
|
used by the sql backend for kvp management |
|
|
The KvpFrame provides a place for top-level data associated with this book. |
|
|
version number, used for tracking multiuser updates |
1.3.6-20040222