diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 12:10:45 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 16:08:45 +0200 |
commit | 63295f6e051e75cf07cb6212a2631df8eb8a90c4 (patch) | |
tree | 79aa54d3cdfa2b29c7f1a52829d12495250e6d9f /odb/oracle/transaction-impl.hxx | |
parent | d6518580059c6a0d34d7a1683fabc3bfcc4b5e27 (diff) |
Add database, connection, connection-factory, and transaction support
Diffstat (limited to 'odb/oracle/transaction-impl.hxx')
-rw-r--r-- | odb/oracle/transaction-impl.hxx | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/odb/oracle/transaction-impl.hxx b/odb/oracle/transaction-impl.hxx new file mode 100644 index 0000000..9338008 --- /dev/null +++ b/odb/oracle/transaction-impl.hxx @@ -0,0 +1,59 @@ +// file : odb/oracle/transaction-impl.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +#ifndef ODB_ORACLE_TRANSACTION_IMPL_HXX +#define ODB_ORACLE_TRANSACTION_IMPL_HXX + +#include <odb/pre.hxx> + +#include <odb/transaction.hxx> + +#include <odb/details/shared-ptr.hxx> + +#include <odb/oracle/version.hxx> +#include <odb/oracle/forward.hxx> +#include <odb/oracle/oracle-fwd.hxx> + +#include <odb/oracle/details/export.hxx> + +namespace odb +{ + namespace oracle + { + class LIBODB_ORACLE_EXPORT transaction_impl: public odb::transaction_impl + { + public: + typedef oracle::database database_type; + typedef oracle::connection connection_type; + + transaction_impl (database_type&); + transaction_impl (connection_ptr); + + virtual + ~transaction_impl (); + + virtual void + start (); + + virtual void + commit (); + + virtual void + rollback (); + + connection_type& + connection (); + + private: + connection_ptr connection_; + }; + } +} + +#include <odb/oracle/transaction-impl.ixx> + +#include <odb/post.hxx> + +#endif // ODB_ORACLE_TRANSACTION_IMPL_HXX |