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 | bf21eac4ab82b7058c3c4148bae8b1f77924730e (patch) | |
tree | 65144a85ad85d236aedcf1cef1f3e10c2d5ed715 | |
parent | 0af7ebb3ec09bb97f63337d365f1d3404ccaebdc (diff) |
Rename store() to update()
-rw-r--r-- | odb/mysql/header.cxx | 6 | ||||
-rw-r--r-- | odb/mysql/source.cxx | 10 | ||||
-rw-r--r-- | odb/tracer/header.cxx | 4 | ||||
-rw-r--r-- | odb/tracer/source.cxx | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/odb/mysql/header.cxx b/odb/mysql/header.cxx index 5c82bb2..6cd3569 100644 --- a/odb/mysql/header.cxx +++ b/odb/mysql/header.cxx @@ -284,7 +284,7 @@ namespace mysql // os << "static const char* const persist_statement;" << "static const char* const find_statement;" - << "static const char* const store_statement;" + << "static const char* const update_statement;" << "static const char* const erase_statement;"; if (options.generate_query ()) @@ -334,10 +334,10 @@ namespace mysql << "persist (database&, object_type&);" << endl; - // store () + // update () // os << "static void" << endl - << "store (database&, object_type&);" + << "update (database&, object_type&);" << endl; // erase () diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index 22dac91..9502a1b 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -715,9 +715,9 @@ namespace mysql column_name (id) << "` = ?\";" << endl; - // store_statement + // update_statement // - os << "const char* const " << traits << "::store_statement =" << endl + os << "const char* const " << traits << "::update_statement =" << endl << "\"UPDATE `" << table_name (c) << "` SET \"" << endl; { @@ -853,10 +853,10 @@ namespace mysql os << "}"; - // store () + // update () // os << "void " << traits << "::" << endl - << "store (database&, object_type& obj)" + << "update (database&, object_type& obj)" << "{" << "using namespace mysql;" << endl @@ -876,7 +876,7 @@ namespace mysql << "if (init (sts.image (), obj) || imb.version == 0)" << endl << "bind (imb, sts.image ());" << endl - << "sts.store_statement ().execute ();" + << "sts.update_statement ().execute ();" << "}"; // erase () diff --git a/odb/tracer/header.cxx b/odb/tracer/header.cxx index 67def65..28926bf 100644 --- a/odb/tracer/header.cxx +++ b/odb/tracer/header.cxx @@ -71,10 +71,10 @@ namespace tracer << "persist (database&, object_type&);" << endl; - // store () + // update () // os << "static void" << endl - << "store (database&, object_type&);" + << "update (database&, object_type&);" << endl; // erase () diff --git a/odb/tracer/source.cxx b/odb/tracer/source.cxx index 1df2a45..1c61916 100644 --- a/odb/tracer/source.cxx +++ b/odb/tracer/source.cxx @@ -57,10 +57,10 @@ namespace tracer << "throw object_already_persistent ();" << "}"; - // store () + // update () // os << "void " << traits << "::" << endl - << "store (database&, object_type& obj)" + << "update (database&, object_type& obj)" << "{" << "std::cout << \"update \" << type_name () << \" id \" << " << "id (obj) << std::endl;" |