Oracle ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
tracer.hxx
Go to the documentation of this file.
1 // file : odb/oracle/tracer.hxx
2 // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3 // license : ODB NCUEL; see accompanying LICENSE file
4 
5 #ifndef ODB_ORACLE_TRACER_HXX
6 #define ODB_ORACLE_TRACER_HXX
7 
8 #include <odb/pre.hxx>
9 
10 #include <odb/tracer.hxx>
11 
12 #include <odb/oracle/version.hxx>
13 #include <odb/oracle/forward.hxx>
14 #include <odb/oracle/details/export.hxx>
15 
16 namespace odb
17 {
18  namespace oracle
19  {
20  class LIBODB_ORACLE_EXPORT tracer: private odb::tracer
21  {
22  public:
23  virtual
24  ~tracer ();
25 
26  virtual void
27  prepare (connection&, const statement&);
28 
29  virtual void
30  execute (connection&, const statement&);
31 
32  virtual void
33  execute (connection&, const char* statement) = 0;
34 
35  virtual void
36  deallocate (connection&, const statement&);
37 
38  private:
39  // Allow these classes to convert oracle::tracer to odb::tracer.
40  //
41  friend class database;
42  friend class connection;
43  friend class transaction;
44 
45  virtual void
46  prepare (odb::connection&, const odb::statement&);
47 
48  virtual void
49  execute (odb::connection&, const odb::statement&);
50 
51  virtual void
52  execute (odb::connection&, const char* statement);
53 
54  virtual void
55  deallocate (odb::connection&, const odb::statement&);
56  };
57  }
58 }
59 
60 #include <odb/post.hxx>
61 
62 #endif // ODB_ORACLE_TRACER_HXX
Definition: connection.hxx:35
Definition: tracer.hxx:20
Definition: statement.hxx:28
Definition: database.hxx:35
Definition: transaction.hxx:24