1 | // |
2 | // Preparator.h |
3 | // |
4 | // Definition of the Preparator class. |
5 | // |
6 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef SQL_Test_Preparator_INCLUDED |
14 | #define SQL_Test_Preparator_INCLUDED |
15 | |
16 | |
17 | #include "Poco/SQL/AbstractPreparator.h" |
18 | #include "Poco/Any.h" |
19 | |
20 | |
21 | namespace Poco { |
22 | namespace SQL { |
23 | namespace Test { |
24 | |
25 | |
26 | class Preparator: public Poco::SQL::AbstractPreparator |
27 | /// A no-op implementation of AbstractPreparator for testing. |
28 | { |
29 | public: |
30 | Preparator(); |
31 | /// Creates the Preparator. |
32 | |
33 | ~Preparator(); |
34 | /// Destroys the Preparator. |
35 | |
36 | void prepare(std::size_t pos, const Poco::Int8&); |
37 | /// Prepares an Int8. |
38 | |
39 | void prepare(std::size_t pos, const Poco::UInt8&); |
40 | /// Prepares an UInt8. |
41 | |
42 | void prepare(std::size_t pos, const Poco::Int16&); |
43 | /// Prepares an Int16. |
44 | |
45 | void prepare(std::size_t pos, const Poco::UInt16&); |
46 | /// Prepares an UInt16. |
47 | |
48 | void prepare(std::size_t pos, const Poco::Int32&); |
49 | /// Prepares an Int32. |
50 | |
51 | void prepare(std::size_t pos, const Poco::UInt32&); |
52 | /// Prepares an UInt32. |
53 | |
54 | void prepare(std::size_t pos, const Poco::Int64&); |
55 | /// Prepares an Int64. |
56 | |
57 | void prepare(std::size_t pos, const Poco::UInt64&); |
58 | /// Prepares an UInt64. |
59 | |
60 | #ifndef POCO_LONG_IS_64_BIT |
61 | void prepare(std::size_t pos, const long&); |
62 | /// Prepares a long. |
63 | |
64 | void prepare(std::size_t pos, const unsigned long&); |
65 | /// Prepares an unsigned long. |
66 | #endif |
67 | |
68 | void prepare(std::size_t pos, const bool&); |
69 | /// Prepares a boolean. |
70 | |
71 | void prepare(std::size_t pos, const float&); |
72 | /// Prepares a float. |
73 | |
74 | void prepare(std::size_t pos, const double&); |
75 | /// Prepares a double. |
76 | |
77 | void prepare(std::size_t pos, const char&); |
78 | /// Prepares a single character. |
79 | |
80 | void prepare(std::size_t pos, const std::string&); |
81 | /// Prepares a string. |
82 | |
83 | void prepare(std::size_t pos, const Poco::UTF16String&); |
84 | /// Prepares a UTF16String. |
85 | |
86 | void prepare(std::size_t pos, const Poco::SQL::BLOB&); |
87 | /// Prepares a BLOB. |
88 | |
89 | void prepare(std::size_t pos, const Poco::SQL::CLOB&); |
90 | /// Prepares a CLOB. |
91 | |
92 | void prepare(std::size_t pos, const Poco::SQL::Date&); |
93 | /// Prepares a Date. |
94 | |
95 | void prepare(std::size_t pos, const Poco::SQL::Time&); |
96 | /// Prepares a Time. |
97 | |
98 | void prepare(std::size_t pos, const Poco::DateTime&); |
99 | /// Prepares a DateTime. |
100 | |
101 | void prepare(std::size_t pos, const Poco::Any&); |
102 | /// Prepares an Any. |
103 | |
104 | void prepare(std::size_t pos, const Poco::Dynamic::Var&); |
105 | /// Prepares a Var. |
106 | }; |
107 | |
108 | |
109 | } } } // namespace Poco::SQL::Test |
110 | |
111 | |
112 | #endif // Data_Test_Preparator_INCLUDED |
113 | |