aboutsummaryrefslogtreecommitdiff
path: root/odb/session.hxx
AgeCommit message (Collapse)AuthorFilesLines
2013-02-12Don't use uninitialized iterator on the rhs of assignment2.2.0Boris Kolpackov1-0/+11
2013-02-09Update copyright yearBoris Kolpackov1-1/+1
2013-01-20Add cache_ suffix to session cache functionsBoris Kolpackov1-29/+58
This way they won't conflict with other functions (e.g., delayed database operations) that may have the same names.
2013-01-16Make session cache management functions static, add notificationsBoris Kolpackov1-12/+34
2013-01-16Implement two-phase session insertionBoris Kolpackov1-1/+5
On the first step an uninitialized object is inserted into the cache as before (this is necessary to handle recursive loading). The second step is to notify the session that the object has been initialized. On this second step the session can perform change tracking preparations, such as make a copy of the object or reset the modification flag. New test: common/session/custom (implements a custom session that uses copies to track changes).
2013-01-16Add support for using custom session implementationsBoris Kolpackov1-3/+3
New option, --session-type.
2013-01-16Add support for low-level access to object cacheBoris Kolpackov1-8/+16
2013-01-16Cleanup object cache position typeBoris Kolpackov1-7/+11
2012-06-18Add argument to session ctor that indicates whether to make it currentBoris Kolpackov1-4/+4
2012-01-29Update copyright yearBoris Kolpackov1-1/+1
2012-01-29Remove author field from file headerBoris Kolpackov1-1/+0
Too much effort to maintain.
2011-09-21Rework const object handlingBoris Kolpackov1-27/+3
Now objects are always loaded as non-const and the object cache in session treats all objects as non-const.
2011-01-04Copyright updateBoris Kolpackov1-1/+1
2010-11-22Add session, database operations on pointers and const objectsBoris Kolpackov1-0/+159
Currently, session is just an object cache. The persist, update, and erase database operations are overloaded to also work on object pointers. All the database operations and the query facility now support const objects. New session-related exceptions: not_in_session, already_in_session, const_object.
2010-07-20Get rid of the session mechanism for nowBoris Kolpackov1-190/+0
Add low-level API instead.
2010-06-04Initial implementationBoris Kolpackov1-0/+190