aboutsummaryrefslogtreecommitdiff
path: root/odb/cache-traits.hxx
AgeCommit message (Collapse)AuthorFilesLines
2015-02-06Update copyrightBoris Kolpackov1-1/+1
2013-02-09Update copyright yearBoris Kolpackov1-1/+1
2013-01-20Add cache_ suffix to session cache functionsBoris Kolpackov1-10/+11
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-38/+40
2013-01-16Implement two-phase session insertionBoris Kolpackov1-1/+14
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-19/+21
New option, --session-type.
2013-01-16Cleanup object cache position typeBoris Kolpackov1-6/+16
2012-04-26Make session optionalBoris Kolpackov1-179/+1
2012-04-23Polymorphic inheritance supportBoris Kolpackov1-139/+183
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-10-27Add support for persistent classes without object idsBoris Kolpackov1-10/+117
New pragma id (object). New test: common/no-id.
2011-09-21Rework const object handlingBoris Kolpackov1-6/+14
Now objects are always loaded as non-const and the object cache in session treats all objects as non-const.
2011-01-24Workaround for VC 10Boris Kolpackov1-8/+11
2011-01-04Copyright updateBoris Kolpackov1-1/+1
2010-12-09Cosmetic change (rename naked pointer to raw pointer)Boris Kolpackov1-2/+2
2010-11-26Add support for recursive object loadingBoris Kolpackov1-8/+28
If an object of a type needs to be loaded recursively, then it is addded to the delayed loading list which is processed once the statements are unlocked.
2010-11-22Add session, database operations on pointers and const objectsBoris Kolpackov1-0/+152
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.