1 //
2 // AbstractPreparator.cpp
3 //
4 // Library: Data
5 // Package: DataCore
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/Data/AbstractPreparator.h"
16
17
18 namespace Poco {
19 namespace Data {
20
21
AbstractPreparator(Poco::UInt32 length)22 AbstractPreparator::AbstractPreparator(Poco::UInt32 length):
23 _length(length),
24 _bulk(false)
25 {
26 }
27
28
~AbstractPreparator()29 AbstractPreparator::~AbstractPreparator()
30 {
31 }
32
33
prepare(std::size_t pos,const std::vector<Poco::Int8> & val)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
prepare(std::size_t pos,const std::deque<Poco::Int8> & val)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
prepare(std::size_t pos,const std::list<Poco::Int8> & val)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
prepare(std::size_t pos,const std::vector<Poco::UInt8> & val)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
prepare(std::size_t pos,const std::deque<Poco::UInt8> & val)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
prepare(std::size_t pos,const std::list<Poco::UInt8> & val)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
prepare(std::size_t pos,const std::vector<Poco::Int16> & val)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
prepare(std::size_t pos,const std::deque<Poco::Int16> & val)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
prepare(std::size_t pos,const std::list<Poco::Int16> & val)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
prepare(std::size_t pos,const std::vector<Poco::UInt16> & val)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
prepare(std::size_t pos,const std::deque<Poco::UInt16> & val)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
prepare(std::size_t pos,const std::list<Poco::UInt16> & val)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
prepare(std::size_t pos,const std::vector<Poco::Int32> & val)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
prepare(std::size_t pos,const std::deque<Poco::Int32> & val)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
prepare(std::size_t pos,const std::list<Poco::Int32> & val)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
prepare(std::size_t pos,const std::vector<Poco::UInt32> & val)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
prepare(std::size_t pos,const std::deque<Poco::UInt32> & val)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
prepare(std::size_t pos,const std::list<Poco::UInt32> & val)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
prepare(std::size_t pos,const std::vector<Poco::Int64> & val)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
prepare(std::size_t pos,const std::deque<Poco::Int64> & val)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
prepare(std::size_t pos,const std::list<Poco::Int64> & val)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
prepare(std::size_t pos,const std::vector<Poco::UInt64> & val)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
prepare(std::size_t pos,const std::deque<Poco::UInt64> & val)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
prepare(std::size_t pos,const std::list<Poco::UInt64> & val)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_INT64_IS_LONG
prepare(std::size_t pos,const std::vector<long> & val)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
prepare(std::size_t pos,const std::deque<long> & val)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
prepare(std::size_t pos,const std::list<long> & val)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
prepare(std::size_t pos,const std::vector<bool> & val)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
prepare(std::size_t pos,const std::deque<bool> & val)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
prepare(std::size_t pos,const std::list<bool> & val)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
prepare(std::size_t pos,const std::vector<float> & val)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
prepare(std::size_t pos,const std::deque<float> & val)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
prepare(std::size_t pos,const std::list<float> & val)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
prepare(std::size_t pos,const std::vector<double> & val)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
prepare(std::size_t pos,const std::deque<double> & val)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
prepare(std::size_t pos,const std::list<double> & val)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
prepare(std::size_t pos,const std::vector<char> & val)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
prepare(std::size_t pos,const std::deque<char> & val)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
prepare(std::size_t pos,const std::list<char> & val)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
prepare(std::size_t pos,const std::vector<std::string> & val)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
prepare(std::size_t pos,const std::deque<std::string> & val)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
prepare(std::size_t pos,const std::list<std::string> & val)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
prepare(std::size_t pos,const UTF16String & val)288 void AbstractPreparator::prepare(std::size_t pos, const UTF16String& val)
289 {
290 throw NotImplementedException("UTF16String preparator must be implemented.");
291 }
292
293
prepare(std::size_t pos,const std::vector<UTF16String> & val)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
prepare(std::size_t pos,const std::deque<UTF16String> & val)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
prepare(std::size_t pos,const std::list<UTF16String> & val)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
prepare(std::size_t pos,const std::vector<BLOB> & val)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
prepare(std::size_t pos,const std::deque<BLOB> & val)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
prepare(std::size_t pos,const std::list<BLOB> & val)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
prepare(std::size_t pos,const std::vector<CLOB> & val)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
prepare(std::size_t pos,const std::deque<CLOB> & val)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
prepare(std::size_t pos,const std::list<CLOB> & val)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
prepare(std::size_t pos,const std::vector<DateTime> & val)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
prepare(std::size_t pos,const std::deque<DateTime> & val)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
prepare(std::size_t pos,const std::list<DateTime> & val)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
prepare(std::size_t pos,const std::vector<Date> & val)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
prepare(std::size_t pos,const std::deque<Date> & val)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
prepare(std::size_t pos,const std::list<Date> & val)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
prepare(std::size_t pos,const std::vector<Time> & val)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
prepare(std::size_t pos,const std::deque<Time> & val)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
prepare(std::size_t pos,const std::list<Time> & val)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
prepare(std::size_t pos,const std::vector<Any> & val)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
prepare(std::size_t pos,const std::deque<Any> & val)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
prepare(std::size_t pos,const std::list<Any> & val)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
prepare(std::size_t pos,const std::vector<Poco::Dynamic::Var> & val)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
prepare(std::size_t pos,const std::deque<Poco::Dynamic::Var> & val)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
prepare(std::size_t pos,const std::list<Poco::Dynamic::Var> & val)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::Data
439