From e3dafcdf8b43880c6a1e0451c8ee621f7c3cb954 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Jan 2013 16:31:29 +0200 Subject: Make session cache management functions static, add notifications --- odb/no-op-cache-traits.hxx | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'odb/no-op-cache-traits.hxx') diff --git a/odb/no-op-cache-traits.hxx b/odb/no-op-cache-traits.hxx index 5600a81..f1bf718 100644 --- a/odb/no-op-cache-traits.hxx +++ b/odb/no-op-cache-traits.hxx @@ -114,6 +114,8 @@ namespace odb reset (const position_type&) {} }; + // Cache management. + // static position_type insert (odb::database&, const id_type&, const pointer_type&) { @@ -128,17 +130,25 @@ namespace odb static position_type insert (odb::database&, void*) {return position_type ();} - static void - initialize (const position_type&) {} - static pointer_type find (odb::database&, const id_type&) {return pointer_type ();} static void - erase (odb::database&, const id_type&) {} + erase (const position_type&) {} + // Notifications. + // static void - erase (const position_type&) {} + persist (const position_type&) {} + + static void + load (const position_type&) {} + + static void + update (odb::database&, const object_type&) {} + + static void + erase (odb::database&, const id_type&) {} }; template @@ -156,7 +166,10 @@ namespace odb insert (odb::database&, void*) {return position_type ();} static void - initialize (const position_type&) {} + persist (const position_type&) {} + + static void + load (const position_type&) {} }; // reference_cache_traits @@ -196,7 +209,10 @@ namespace odb insert (odb::database&, object_type&) {return position_type ();} static void - initialize (const position_type&) {} + persist (const position_type&) {} + + static void + load (const position_type&) {} }; template @@ -209,7 +225,10 @@ namespace odb insert (odb::database&, object_type&) {return position_type ();} static void - initialize (const position_type&) {} + persist (const position_type&) {} + + static void + load (const position_type&) {} }; } -- cgit v1.1