diff options
-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&) |