summaryrefslogtreecommitdiff
path: root/odb/relational/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-05-06 12:05:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-08-14 15:19:49 +0200
commit09d7377f81aeb8fde4aa1698e946457f03380d45 (patch)
treeeaedf7045fde8354a3693ce77edc7d5f86824e4e /odb/relational/context.hxx
parent548f0b10aa3adfc722198bf31f773ba85047f344 (diff)
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.
Diffstat (limited to 'odb/relational/context.hxx')
-rw-r--r--odb/relational/context.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/relational/context.hxx b/odb/relational/context.hxx
index 02c4b9c..d0211c6 100644
--- a/odb/relational/context.hxx
+++ b/odb/relational/context.hxx
@@ -75,10 +75,12 @@ namespace relational
{
public:
// Return true if an object or value type has members for which
- // the image can grow.
+ // the image can grow. If section is not specified, then ignore
+ // separately loaded members. Otherwise ignore members that do
+ // not belong to the section.
//
bool
- grow (semantics::class_&);
+ grow (semantics::class_&, user_section* = 0);
// The same for a member's value type.
//
@@ -206,7 +208,7 @@ namespace relational
// The default implementation returns false.
//
virtual bool
- grow_impl (semantics::class_&);
+ grow_impl (semantics::class_&, user_section*);
virtual bool
grow_impl (semantics::data_member&);