diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-16 16:31:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-16 16:31:29 +0200 |
commit | e3dafcdf8b43880c6a1e0451c8ee621f7c3cb954 (patch) | |
tree | ab90ae868337a1c286ab9334c83e890cd0614686 /odb/no-op-cache-traits.hxx | |
parent | d2c1f5f1a3063553483d09dec261efa44c6bc9bf (diff) |
Make session cache management functions static, add notifications
Diffstat (limited to 'odb/no-op-cache-traits.hxx')
-rw-r--r-- | odb/no-op-cache-traits.hxx | 35 |
1 files changed, 27 insertions, 8 deletions
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 <typename P> @@ -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 <typename T> @@ -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&) {} }; } |