diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 14:47:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 14:47:07 +0200 |
commit | 4ecaf6e91c2f1107f855c93fc2e0e4efb03c4cb0 (patch) | |
tree | ab8653c349c5d2b459278cdd77ff5a3249ad643f | |
parent | 1be330551017742b923b324ea4534e592f43397e (diff) |
Rename store() to update()
-rw-r--r-- | odb/database.hxx | 4 | ||||
-rw-r--r-- | odb/database.txx | 4 | ||||
-rw-r--r-- | odb/traits.hxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/odb/database.hxx b/odb/database.hxx index 832c1a6..ab80da4 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -57,11 +57,11 @@ namespace odb bool find (const typename object_traits<T>::id_type& id, T& object); - // Save the state of a modified objects. + // Update the state of a modified objects. // template <typename T> void - store (T& object); + update (T& object); // Make the object transient. Throw object_not_persistent if not // found. diff --git a/odb/database.txx b/odb/database.txx index 86336ea..f5449b6 100644 --- a/odb/database.txx +++ b/odb/database.txx @@ -64,12 +64,12 @@ namespace odb template <typename T> void database:: - store (T& obj) + update (T& obj) { if (!transaction::has_current ()) throw not_in_transaction (); - object_traits<T>::store (*this, obj); + object_traits<T>::update (*this, obj); } template <typename T> diff --git a/odb/traits.hxx b/odb/traits.hxx index bfdcf71..c242e50 100644 --- a/odb/traits.hxx +++ b/odb/traits.hxx @@ -23,7 +23,7 @@ namespace odb // id_type id (const T&) - get object id // // void persist (database&, T&) - // void store (database&, T&) + // void update (database&, T&) // void erase (database&, const id_type&) // pointer_type find (database&, const id_type&) // bool find (database&, const id_type&, T&) |