Oracle ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
transaction.hxx
Go to the documentation of this file.
1 // file : odb/oracle/transaction.hxx
2 // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3 // license : ODB NCUEL; see accompanying LICENSE file
4 
5 #ifndef ODB_ORACLE_TRANSACTION_HXX
6 #define ODB_ORACLE_TRANSACTION_HXX
7 
8 #include <odb/pre.hxx>
9 
10 #include <odb/transaction.hxx>
11 
12 #include <odb/oracle/version.hxx>
13 #include <odb/oracle/forward.hxx>
14 #include <odb/oracle/tracer.hxx>
15 
16 #include <odb/oracle/details/export.hxx>
17 
18 namespace odb
19 {
20  namespace oracle
21  {
22  class transaction_impl;
23 
24  class LIBODB_ORACLE_EXPORT transaction: public odb::transaction
25  {
26  public:
29 
30  explicit
31  transaction (transaction_impl*, bool make_current = true);
32 
33  transaction ();
34 
35  // Return the database this transaction is on.
36  //
38  database ();
39 
40  // Return the underlying database connection for this transaction.
41  //
43  connection ();
44 
45  // Return current transaction or throw if there is no transaction
46  // in effect.
47  //
48  static transaction&
49  current ();
50 
51  // Set the current thread's transaction.
52  //
53  static void
54  current (transaction&);
55 
56  // SQL statement tracing.
57  //
58  public:
60 
61  void
63  {
65  }
66 
67  void
69  {
71  }
72 
74 
75  public:
77  implementation ();
78  };
79  }
80 }
81 
82 #include <odb/oracle/transaction.ixx>
83 
84 #include <odb/post.hxx>
85 
86 #endif // ODB_ORACLE_TRANSACTION_HXX
Definition: transaction-impl.hxx:22
Definition: connection.hxx:35
void tracer(tracer_type &t)
Definition: transaction.hxx:62
Definition: tracer.hxx:20
oracle::connection connection_type
Definition: transaction.hxx:28
oracle::tracer tracer_type
Definition: transaction.hxx:59
void tracer(tracer_type *t)
Definition: transaction.hxx:68
Definition: database.hxx:35
Definition: transaction.hxx:24
oracle::database database_type
Definition: transaction.hxx:27
tracer_type * tracer() const