diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-16 10:39:36 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-19 10:35:17 +0200 |
commit | 946c283a971f09a4d1f72066d17a684f62f51d88 (patch) | |
tree | e34091b61f757aae17d9066b4e425175c44601f4 /odb/oracle/statements-base.hxx | |
parent | a5510b8f0ef6d5aa7cce21a719de726b669aa394 (diff) |
Add container-statements, object-statments, view-statements and statement cache
Diffstat (limited to 'odb/oracle/statements-base.hxx')
-rw-r--r-- | odb/oracle/statements-base.hxx | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/odb/oracle/statements-base.hxx b/odb/oracle/statements-base.hxx new file mode 100644 index 0000000..7f63d3e --- /dev/null +++ b/odb/oracle/statements-base.hxx @@ -0,0 +1,51 @@ +// file : odb/oracle/statements-base.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_ORACLE_STATEMENTS_BASE_HXX +#define ODB_ORACLE_STATEMENTS_BASE_HXX + +#include <odb/pre.hxx> + +#include <odb/details/shared-ptr.hxx> + +#include <odb/oracle/version.hxx> +#include <odb/oracle/forward.hxx> // connection + +#include <odb/oracle/details/export.hxx> + +namespace odb +{ + namespace oracle + { + class LIBODB_ORACLE_EXPORT statements_base: public details::shared_base + { + public: + typedef oracle::connection connection_type; + + connection_type& + connection () + { + return conn_; + } + + public: + virtual + ~statements_base (); + + protected: + statements_base (connection_type& conn) + : conn_ (conn) + { + } + + protected: + connection_type& conn_; + }; + } +} + +#include <odb/post.hxx> + +#endif // ODB_ORACLE_STATEMENTS_BASE_HXX |