diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
commit | 62e234c114d2b6ead93a1d39593c66b648c3d0a6 (patch) | |
tree | ce6740b4508eb29400490b20efc8e100e38a7b7f /odb/oracle/polymorphic-object-result.hxx | |
parent | 9072842a023c4b65ecb141292c4b63417fee1b98 (diff) |
Turn libodb-oracle repository into package for muti-package repositorylibodb-oracle
Diffstat (limited to 'odb/oracle/polymorphic-object-result.hxx')
-rw-r--r-- | odb/oracle/polymorphic-object-result.hxx | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/odb/oracle/polymorphic-object-result.hxx b/odb/oracle/polymorphic-object-result.hxx deleted file mode 100644 index ddb3055..0000000 --- a/odb/oracle/polymorphic-object-result.hxx +++ /dev/null @@ -1,98 +0,0 @@ -// file : odb/oracle/polymorphic-object-result.hxx -// license : ODB NCUEL; see accompanying LICENSE file - -#ifndef ODB_ORACLE_POLYMORPHIC_OBJECT_RESULT_HXX -#define ODB_ORACLE_POLYMORPHIC_OBJECT_RESULT_HXX - -#include <odb/pre.hxx> - -#include <cstddef> // std::size_t - -#include <odb/schema-version.hxx> -#include <odb/polymorphic-object-result.hxx> - -#include <odb/details/shared-ptr.hxx> - -#include <odb/oracle/version.hxx> -#include <odb/oracle/forward.hxx> // query_base -#include <odb/oracle/statement.hxx> -#include <odb/oracle/traits-calls.hxx> - -namespace odb -{ - namespace oracle - { - template <typename T> - class polymorphic_object_result_impl: - public odb::polymorphic_object_result_impl<T> - { - public: - typedef odb::polymorphic_object_result_impl<T> base_type; - - 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::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_base&, - details::shared_ptr<select_statement>, - statements_type&, - const schema_version_migration*); - - virtual void - load (object_type*, bool fetch); - - virtual id_type - load_id (); - - virtual discriminator_type - load_discriminator (); - - virtual void - next (); - - virtual void - cache (); - - virtual std::size_t - size (); - - virtual void - invalidate (); - - using base_type::current; - - private: - typedef oracle::change_callback change_callback_type; - - static void - change_callback (void* context); - - private: - details::shared_ptr<select_statement> statement_; - statements_type& statements_; - object_traits_calls<object_type> tc_; - bool use_copy_; - image_type* image_copy_; - }; - } -} - -#include <odb/oracle/polymorphic-object-result.txx> - -#include <odb/post.hxx> - -#endif // ODB_ORACLE_POLYMORPHIC_OBJECT_RESULT_HXX |