From 1d287936950aa96a7b4a12b0d05633f257ab2c90 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 14 Aug 2013 15:16:09 +0200 Subject: Add support for object sections Sections are an optimization mechanism that allows the partitioning of data members of a persistent class into groups that can be separately loaded and/or updated. --- odb/oracle/database.ixx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'odb/oracle/database.ixx') diff --git a/odb/oracle/database.ixx b/odb/oracle/database.ixx index 562f24f..8f46e7a 100644 --- a/odb/oracle/database.ixx +++ b/odb/oracle/database.ixx @@ -108,6 +108,13 @@ namespace odb } template + inline void database:: + load (T& obj, section& s) + { + return load_ (obj, s); + } + + template inline typename object_traits::pointer_type database:: find (const typename object_traits::id_type& id) { @@ -249,6 +256,13 @@ namespace odb template inline void database:: + update (const T& obj, const section& s) + { + update_ (obj, s); + } + + template + inline void database:: erase (const typename object_traits::id_type& id) { return erase_ (id); -- cgit v1.1