diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
commit | 745e3ddf00303f6fed4e3962647c4eb11ee64816 (patch) | |
tree | 3ab2ce1b6709e8d3f8b41b0499cdc58f190110b1 /odb/oracle/polymorphic-object-result.hxx | |
parent | d20629df902528e9112d146d97e0523104a46619 (diff) |
Ground work for multi-database support
All generated code now includes database id. The database-specific
database class interface has been updated to include all the database
operations. The database-specific tests now use this interface.
Diffstat (limited to 'odb/oracle/polymorphic-object-result.hxx')
-rw-r--r-- | odb/oracle/polymorphic-object-result.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/odb/oracle/polymorphic-object-result.hxx b/odb/oracle/polymorphic-object-result.hxx index 2137c1d..5092aa7 100644 --- a/odb/oracle/polymorphic-object-result.hxx +++ b/odb/oracle/polymorphic-object-result.hxx @@ -14,7 +14,7 @@ #include <odb/details/shared-ptr.hxx> #include <odb/oracle/version.hxx> -#include <odb/oracle/forward.hxx> // query +#include <odb/oracle/forward.hxx> // query_base #include <odb/oracle/statement.hxx> namespace odb @@ -28,24 +28,25 @@ namespace odb public: typedef odb::polymorphic_object_result_impl<T> base_type; - typedef typename base_type::object_type object_type; - typedef typename base_type::object_traits object_traits; typedef typename base_type::id_type id_type; - + typedef typename base_type::object_type object_type; typedef typename base_type::pointer_type pointer_type; + + typedef object_traits_impl<object_type, id_oracle> object_traits; typedef typename base_type::pointer_traits pointer_traits; typedef typename base_type::root_type root_type; - typedef typename base_type::root_traits root_traits; typedef typename base_type::discriminator_type discriminator_type; + typedef object_traits_impl<root_type, id_oracle> root_traits; + typedef typename object_traits::image_type image_type; typedef typename object_traits::statements_type statements_type; virtual ~polymorphic_object_result_impl (); - polymorphic_object_result_impl (const query&, + polymorphic_object_result_impl (const query_base&, details::shared_ptr<select_statement>, statements_type&); |