1 | // |
2 | // AbstractPreparator.cpp |
3 | // |
4 | // Library: SQL |
5 | // Package: SQLCore |
6 | // Module: AbstractPreparator |
7 | // |
8 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/SQL/AbstractPreparator.h" |
16 | |
17 | |
18 | namespace Poco { |
19 | namespace SQL { |
20 | |
21 | |
22 | AbstractPreparator::AbstractPreparator(Poco::UInt32 length): |
23 | _length(length), |
24 | _bulk(false) |
25 | { |
26 | } |
27 | |
28 | |
29 | AbstractPreparator::~AbstractPreparator() |
30 | { |
31 | } |
32 | |
33 | |
34 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::Int8>& /*val*/) |
35 | { |
36 | throw NotImplementedException("std::vector preparator must be implemented." ); |
37 | } |
38 | |
39 | |
40 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::Int8>& /*val*/) |
41 | { |
42 | throw NotImplementedException("std::deque preparator must be implemented." ); |
43 | } |
44 | |
45 | |
46 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::Int8>& /*val*/) |
47 | { |
48 | throw NotImplementedException("std::list preparator must be implemented." ); |
49 | } |
50 | |
51 | |
52 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::UInt8>& /*val*/) |
53 | { |
54 | throw NotImplementedException("std::vector preparator must be implemented." ); |
55 | } |
56 | |
57 | |
58 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::UInt8>& /*val*/) |
59 | { |
60 | throw NotImplementedException("std::deque preparator must be implemented." ); |
61 | } |
62 | |
63 | |
64 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::UInt8>& /*val*/) |
65 | { |
66 | throw NotImplementedException("std::list preparator must be implemented." ); |
67 | } |
68 | |
69 | |
70 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::Int16>& /*val*/) |
71 | { |
72 | throw NotImplementedException("std::vector preparator must be implemented." ); |
73 | } |
74 | |
75 | |
76 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::Int16>& /*val*/) |
77 | { |
78 | throw NotImplementedException("std::deque preparator must be implemented." ); |
79 | } |
80 | |
81 | |
82 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::Int16>& /*val*/) |
83 | { |
84 | throw NotImplementedException("std::list preparator must be implemented." ); |
85 | } |
86 | |
87 | |
88 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::UInt16>& /*val*/) |
89 | { |
90 | throw NotImplementedException("std::vector preparator must be implemented." ); |
91 | } |
92 | |
93 | |
94 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::UInt16>& /*val*/) |
95 | { |
96 | throw NotImplementedException("std::deque preparator must be implemented." ); |
97 | } |
98 | |
99 | |
100 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::UInt16>& /*val*/) |
101 | { |
102 | throw NotImplementedException("std::list preparator must be implemented." ); |
103 | } |
104 | |
105 | |
106 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::Int32>& /*val*/) |
107 | { |
108 | throw NotImplementedException("std::vector preparator must be implemented." ); |
109 | } |
110 | |
111 | |
112 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::Int32>& /*val*/) |
113 | { |
114 | throw NotImplementedException("std::deque preparator must be implemented." ); |
115 | } |
116 | |
117 | |
118 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::Int32>& /*val*/) |
119 | { |
120 | throw NotImplementedException("std::list preparator must be implemented." ); |
121 | } |
122 | |
123 | |
124 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::UInt32>& /*val*/) |
125 | { |
126 | throw NotImplementedException("std::vector preparator must be implemented." ); |
127 | } |
128 | |
129 | |
130 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::UInt32>& /*val*/) |
131 | { |
132 | throw NotImplementedException("std::deque preparator must be implemented." ); |
133 | } |
134 | |
135 | |
136 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::UInt32>& /*val*/) |
137 | { |
138 | throw NotImplementedException("std::list preparator must be implemented." ); |
139 | } |
140 | |
141 | |
142 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::Int64>& /*val*/) |
143 | { |
144 | throw NotImplementedException("std::vector preparator must be implemented." ); |
145 | } |
146 | |
147 | |
148 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::Int64>& /*val*/) |
149 | { |
150 | throw NotImplementedException("std::deque preparator must be implemented." ); |
151 | } |
152 | |
153 | |
154 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::Int64>& /*val*/) |
155 | { |
156 | throw NotImplementedException("std::list preparator must be implemented." ); |
157 | } |
158 | |
159 | |
160 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::UInt64>& /*val*/) |
161 | { |
162 | throw NotImplementedException("std::vector preparator must be implemented." ); |
163 | } |
164 | |
165 | |
166 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::UInt64>& /*val*/) |
167 | { |
168 | throw NotImplementedException("std::deque preparator must be implemented." ); |
169 | } |
170 | |
171 | |
172 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::UInt64>& /*val*/) |
173 | { |
174 | throw NotImplementedException("std::list preparator must be implemented." ); |
175 | } |
176 | |
177 | |
178 | #ifndef POCO_LONG_IS_64_BIT |
179 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<long>& /*val*/) |
180 | { |
181 | throw NotImplementedException("std::vector preparator must be implemented." ); |
182 | } |
183 | |
184 | |
185 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<long>& /*val*/) |
186 | { |
187 | throw NotImplementedException("std::deque preparator must be implemented." ); |
188 | } |
189 | |
190 | |
191 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<long>& /*val*/) |
192 | { |
193 | throw NotImplementedException("std::list preparator must be implemented." ); |
194 | } |
195 | #endif |
196 | |
197 | |
198 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<bool>& /*val*/) |
199 | { |
200 | throw NotImplementedException("std::vector preparator must be implemented." ); |
201 | } |
202 | |
203 | |
204 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<bool>& /*val*/) |
205 | { |
206 | throw NotImplementedException("std::deque preparator must be implemented." ); |
207 | } |
208 | |
209 | |
210 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<bool>& /*val*/) |
211 | { |
212 | throw NotImplementedException("std::list preparator must be implemented." ); |
213 | } |
214 | |
215 | |
216 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<float>& /*val*/) |
217 | { |
218 | throw NotImplementedException("std::vector preparator must be implemented." ); |
219 | } |
220 | |
221 | |
222 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<float>& /*val*/) |
223 | { |
224 | throw NotImplementedException("std::deque preparator must be implemented." ); |
225 | } |
226 | |
227 | |
228 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<float>& /*val*/) |
229 | { |
230 | throw NotImplementedException("std::list preparator must be implemented." ); |
231 | } |
232 | |
233 | |
234 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<double>& /*val*/) |
235 | { |
236 | throw NotImplementedException("std::vector preparator must be implemented." ); |
237 | } |
238 | |
239 | |
240 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<double>& /*val*/) |
241 | { |
242 | throw NotImplementedException("std::deque preparator must be implemented." ); |
243 | } |
244 | |
245 | |
246 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<double>& /*val*/) |
247 | { |
248 | throw NotImplementedException("std::list preparator must be implemented." ); |
249 | } |
250 | |
251 | |
252 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<char>& /*val*/) |
253 | { |
254 | throw NotImplementedException("std::vector preparator must be implemented." ); |
255 | } |
256 | |
257 | |
258 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<char>& /*val*/) |
259 | { |
260 | throw NotImplementedException("std::deque preparator must be implemented." ); |
261 | } |
262 | |
263 | |
264 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<char>& /*val*/) |
265 | { |
266 | throw NotImplementedException("std::list preparator must be implemented." ); |
267 | } |
268 | |
269 | |
270 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<std::string>& /*val*/) |
271 | { |
272 | throw NotImplementedException("std::vector preparator must be implemented." ); |
273 | } |
274 | |
275 | |
276 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<std::string>& /*val*/) |
277 | { |
278 | throw NotImplementedException("std::deque preparator must be implemented." ); |
279 | } |
280 | |
281 | |
282 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<std::string>& /*val*/) |
283 | { |
284 | throw NotImplementedException("std::list preparator must be implemented." ); |
285 | } |
286 | |
287 | |
288 | void AbstractPreparator::prepare(std::size_t /*pos*/, const UTF16String& /*val*/) |
289 | { |
290 | throw NotImplementedException("UTF16String preparator must be implemented." ); |
291 | } |
292 | |
293 | |
294 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<UTF16String>& /*val*/) |
295 | { |
296 | throw NotImplementedException("std::vector<UTF16String> preparator must be implemented." ); |
297 | } |
298 | |
299 | |
300 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<UTF16String>& /*val*/) |
301 | { |
302 | throw NotImplementedException("std::deque<UTF16String> preparator must be implemented." ); |
303 | } |
304 | |
305 | |
306 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<UTF16String>& /*val*/) |
307 | { |
308 | throw NotImplementedException("std::list<UTF16String> preparator must be implemented." ); |
309 | } |
310 | |
311 | |
312 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<BLOB>& /*val*/) |
313 | { |
314 | throw NotImplementedException("std::vector preparator must be implemented." ); |
315 | } |
316 | |
317 | |
318 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<BLOB>& /*val*/) |
319 | { |
320 | throw NotImplementedException("std::deque preparator must be implemented." ); |
321 | } |
322 | |
323 | |
324 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<BLOB>& /*val*/) |
325 | { |
326 | throw NotImplementedException("std::list preparator must be implemented." ); |
327 | } |
328 | |
329 | |
330 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<CLOB>& /*val*/) |
331 | { |
332 | throw NotImplementedException("std::vector preparator must be implemented." ); |
333 | } |
334 | |
335 | |
336 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<CLOB>& /*val*/) |
337 | { |
338 | throw NotImplementedException("std::deque preparator must be implemented." ); |
339 | } |
340 | |
341 | |
342 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<CLOB>& /*val*/) |
343 | { |
344 | throw NotImplementedException("std::list preparator must be implemented." ); |
345 | } |
346 | |
347 | |
348 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<DateTime>& /*val*/) |
349 | { |
350 | throw NotImplementedException("std::vector preparator must be implemented." ); |
351 | } |
352 | |
353 | |
354 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<DateTime>& /*val*/) |
355 | { |
356 | throw NotImplementedException("std::deque preparator must be implemented." ); |
357 | } |
358 | |
359 | |
360 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<DateTime>& /*val*/) |
361 | { |
362 | throw NotImplementedException("std::list preparator must be implemented." ); |
363 | } |
364 | |
365 | |
366 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Date>& /*val*/) |
367 | { |
368 | throw NotImplementedException("std::vector preparator must be implemented." ); |
369 | } |
370 | |
371 | |
372 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Date>& /*val*/) |
373 | { |
374 | throw NotImplementedException("std::deque preparator must be implemented." ); |
375 | } |
376 | |
377 | |
378 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Date>& /*val*/) |
379 | { |
380 | throw NotImplementedException("std::list preparator must be implemented." ); |
381 | } |
382 | |
383 | |
384 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Time>& /*val*/) |
385 | { |
386 | throw NotImplementedException("std::vector preparator must be implemented." ); |
387 | } |
388 | |
389 | |
390 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Time>& /*val*/) |
391 | { |
392 | throw NotImplementedException("std::deque preparator must be implemented." ); |
393 | } |
394 | |
395 | |
396 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Time>& /*val*/) |
397 | { |
398 | throw NotImplementedException("std::list preparator must be implemented." ); |
399 | } |
400 | |
401 | |
402 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Any>& /*val*/) |
403 | { |
404 | throw NotImplementedException("std::vector preparator must be implemented." ); |
405 | } |
406 | |
407 | |
408 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Any>& /*val*/) |
409 | { |
410 | throw NotImplementedException("std::deque preparator must be implemented." ); |
411 | } |
412 | |
413 | |
414 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Any>& /*val*/) |
415 | { |
416 | throw NotImplementedException("std::list preparator must be implemented." ); |
417 | } |
418 | |
419 | |
420 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::vector<Poco::Dynamic::Var>& /*val*/) |
421 | { |
422 | throw NotImplementedException("std::vector preparator must be implemented." ); |
423 | } |
424 | |
425 | |
426 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::deque<Poco::Dynamic::Var>& /*val*/) |
427 | { |
428 | throw NotImplementedException("std::deque preparator must be implemented." ); |
429 | } |
430 | |
431 | |
432 | void AbstractPreparator::prepare(std::size_t /*pos*/, const std::list<Poco::Dynamic::Var>& /*val*/) |
433 | { |
434 | throw NotImplementedException("std::list preparator must be implemented." ); |
435 | } |
436 | |
437 | |
438 | } } // namespace Poco::SQL |
439 | |