blob: d4d65ca9ec0da38680cf9bb52e5eeb4f23636f31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// file : odb/oracle/statement-cache.hxx
// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC
// license : ODB NCUEL; see accompanying LICENSE file
#ifndef ODB_ORACLE_STATEMENT_CACHE_HXX
#define ODB_ORACLE_STATEMENT_CACHE_HXX
#include <odb/pre.hxx>
#include <map>
#include <typeinfo>
#include <odb/forward.hxx>
#include <odb/traits.hxx>
#include <odb/oracle/version.hxx>
#include <odb/oracle/forward.hxx>
#include <odb/oracle/statements-base.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/details/type-info.hxx>
#include <odb/oracle/details/export.hxx>
namespace odb
{
namespace oracle
{
class LIBODB_ORACLE_EXPORT statement_cache
{
public:
statement_cache (connection& conn): conn_ (conn) {}
template <typename T>
typename object_traits<T>::statements_type&
find_object ();
template <typename T>
view_statements<T>&
find_view ();
private:
typedef std::map<const std::type_info*,
details::shared_ptr<statements_base>,
details::type_info_comparator> map;
connection& conn_;
map map_;
};
}
}
#include <odb/oracle/statement-cache.txx>
#include <odb/post.hxx>
#endif // ODB_ORACLE_STATEMENT_CACHE_HXX
|