blob: 016ddcc1e26adf396cd4b1d88719c3e8d2953275 [file] [log] [blame]
Linda Chanbe2ba9d2006-10-21 13:33:34 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin>
4 <extension
5 id="org.eclipse.datatools.connectivity.oda.consumer.testdriver"
6 point="org.eclipse.datatools.connectivity.oda.dataSource">
7 <dataSource
Linda Chan235a4892007-03-16 11:47:22 +00008 odaVersion="3.1"
Linda Chanbe2ba9d2006-10-21 13:33:34 +00009 driverClass="org.eclipse.datatools.connectivity.oda.consumer.testdriver.TestDriverImpl"
10 setThreadContextClassLoader="false"
11 id="org.eclipse.datatools.connectivity.oda.consumer.testdriver"/>
12 <dataSet id="org.eclipse.datatools.connectivity.oda.consumer.testdriver.dataSet">
13 <dataTypeMapping
Linda Chan33a7f1f2006-12-09 07:38:03 +000014 nativeDataType="CHAR"
Linda Chanbe2ba9d2006-10-21 13:33:34 +000015 nativeDataTypeCode="12"
16 odaScalarDataType="String"/>
17 <dataTypeMapping
Linda Chan33a7f1f2006-12-09 07:38:03 +000018 nativeDataType="DATE"
Linda Chanbe2ba9d2006-10-21 13:33:34 +000019 nativeDataTypeCode="91"
20 odaScalarDataType="Date"/>
Linda Chan33a7f1f2006-12-09 07:38:03 +000021 <dataTypeMapping
22 nativeDataType="BCD"
23 nativeDataTypeCode="3"
24 odaScalarDataType="Decimal"/>
25 <dataTypeMapping
26 nativeDataType="DOUBLE"
27 nativeDataTypeCode="8"
28 odaScalarDataType="Double"/>
29 <dataTypeMapping
30 nativeDataType="INT"
31 nativeDataTypeCode="4"
32 odaScalarDataType="Integer"/>
33 <dataTypeMapping
34 nativeDataType="TIME"
35 nativeDataTypeCode="92"
36 odaScalarDataType="Time"/>
37 <dataTypeMapping
38 nativeDataType="TIMESTAMP"
39 nativeDataTypeCode="93"
40 odaScalarDataType="Timestamp"/>
41 <dataTypeMapping
42 nativeDataType="BLOB"
43 nativeDataTypeCode="97"
44 odaScalarDataType="Blob"/>
45 <dataTypeMapping
46 nativeDataType="CLOB"
47 nativeDataTypeCode="98"
48 odaScalarDataType="Clob"/>
Linda Chan235a4892007-03-16 11:47:22 +000049 <dataTypeMapping
50 nativeDataType="BOOLEAN"
51 nativeDataTypeCode="16"
52 odaScalarDataType="Boolean"/>
Linda Chanc1cb6ac2009-05-08 02:34:23 +000053 <dataTypeMapping
54 nativeDataType="JAVAOBJECT"
55 nativeDataTypeCode="2000"
56 odaScalarDataType="JavaObject">
57 </dataTypeMapping>
Linda Chanbe2ba9d2006-10-21 13:33:34 +000058 </dataSet>
Linda Chan3b0627c2009-03-01 10:37:18 +000059
Linda Chanbe2ba9d2006-10-21 13:33:34 +000060 </extension>
Linda Chanf5447c02009-01-30 08:10:44 +000061 <extension
Linda Chan3b0627c2009-03-01 10:37:18 +000062 id="dynamicResultSetExtension"
63 point="org.eclipse.datatools.connectivity.oda.dynamicResultSet">
Linda Chanf5447c02009-01-30 08:10:44 +000064 <contributor
Linda Chan814e7d72009-04-14 02:17:53 +000065 specificationFactoryClass="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.MySpecFactory"
Linda Chan814e7d72009-04-14 02:17:53 +000066 validatorClass="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.ExpressionTester">
Linda Chanf5447c02009-01-30 08:10:44 +000067 <supportedDataSetType
68 odaDataSetId="org.eclipse.datatools.connectivity.oda.consumer.testdriver.dataSet"
69 odaDataSourceId="org.eclipse.datatools.connectivity.oda.consumer.testdriver">
70 </supportedDataSetType>
71 <supportedDataSetType
72 odaDataSetId="org.eclipse.datatools.connectivity.oda.consumer.testdriver.jdbc.dbprofile.sqbDataSet"
73 odaDataSourceId="org.eclipse.datatools.connectivity.oda.consumer.testdriver.jdbc.dbprofile">
74 </supportedDataSetType>
Linda Chanc4043402009-04-30 06:04:24 +000075 <supportsRowOrdering></supportsRowOrdering>
Linda Chanf5447c02009-01-30 08:10:44 +000076 </contributor>
Linda Chan3b0627c2009-03-01 10:37:18 +000077 <filterExpressionTypes>
78 <filterType
Linda Chanf5447c02009-01-30 08:10:44 +000079 displayName="Equal to"
80 id="0"
81 isNegatable="true"
82 isOptionable="true"
83 maxArguments="*"
84 minArguments="1">
Linda Chan3b0627c2009-03-01 10:37:18 +000085 </filterType>
86 <filterType
Linda Chan101f9d62009-03-05 20:57:47 +000087 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.MyCustomExpression"
Linda Chanf5447c02009-01-30 08:10:44 +000088 displayName="Between"
89 id="1001"
90 isNegatable="true"
91 isOptionable="true"
92 maxArguments="2"
93 minArguments="1">
94 <variableRestriction
95 variableType="ResultSetColumn">
96 <variableOdaDataTypeRestriction
97 odaScalarDataType="String">
98 </variableOdaDataTypeRestriction>
99 <variableOdaDataTypeRestriction
100 odaScalarDataType="Integer">
101 </variableOdaDataTypeRestriction>
102 <variableOdaDataTypeRestriction
103 odaScalarDataType="Double">
104 </variableOdaDataTypeRestriction>
105 <variableOdaDataTypeRestriction
106 odaScalarDataType="Decimal">
107 </variableOdaDataTypeRestriction>
108 <variableOdaDataTypeRestriction
109 odaScalarDataType="Date">
110 </variableOdaDataTypeRestriction>
111 <variableOdaDataTypeRestriction
112 odaScalarDataType="Time">
113 </variableOdaDataTypeRestriction>
114 <variableOdaDataTypeRestriction
115 odaScalarDataType="Timestamp">
116 </variableOdaDataTypeRestriction>
117 </variableRestriction>
Linda Chan3b0627c2009-03-01 10:37:18 +0000118 </filterType>
119 <filterType
Linda Chanf5447c02009-01-30 08:10:44 +0000120 displayName="In"
121 id="1003"
122 isNegatable="true"
123 isOptionable="true"
124 maxArguments="*"
125 minArguments="1">
Linda Chan3b0627c2009-03-01 10:37:18 +0000126 </filterType>
127 <filterType
Linda Chanf5447c02009-01-30 08:10:44 +0000128 displayName="IsNull"
129 id="1005"
130 isNegatable="true"
131 isOptionable="false"
132 maxArguments="0"
133 minArguments="0">
Linda Chan3b0627c2009-03-01 10:37:18 +0000134 </filterType>
135 <filterType
Linda Chanf5447c02009-01-30 08:10:44 +0000136 displayName="IsInstanceOf"
Linda Chan1de30872009-02-03 03:25:55 +0000137 id="instanceOf"
Linda Chanf5447c02009-01-30 08:10:44 +0000138 isNegatable="true"
139 isOptionable="false"
140 maxArguments="1"
141 minArguments="1">
142 <variableRestriction
143 variableType="InstanceOf">
144 <variableClassRestriction
145 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.OrderItem">
146 </variableClassRestriction>
147 </variableRestriction>
Linda Chan3b0627c2009-03-01 10:37:18 +0000148 </filterType>
Linda Chan101f9d62009-03-05 20:57:47 +0000149 <filterType
150 id="IdentityEq"
151 isNegatable="false"
152 isOptionable="false"
153 maxArguments="1"
154 minArguments="1">
155 <variableRestriction
156 variableType="ResultSetColumn">
157 <variableOdaDataTypeRestriction
158 odaScalarDataType="JavaObject">
159 </variableOdaDataTypeRestriction>
160 </variableRestriction>
161 </filterType>
Linda Chan2bcc52b2009-10-01 20:48:52 +0000162 <supportedOdaFilterExpression
163 name="AndExpression">
164 </supportedOdaFilterExpression>
165 <supportedOdaFilterExpression
166 name="OrExpression">
167 </supportedOdaFilterExpression>
168 <supportedOdaFilterExpression
169 name="NotExpression">
170 </supportedOdaFilterExpression>
Linda Chan3b0627c2009-03-01 10:37:18 +0000171 </filterExpressionTypes>
172 <aggregateExpressionTypes>
173 <aggregateType
Linda Chan2bcc52b2009-10-01 20:48:52 +0000174 canIgnoreDuplicates="false"
Linda Chan3b0627c2009-03-01 10:37:18 +0000175 canIgnoreNull="true"
176 displayName="Minimum"
177 id="MIN">
178 <variableRestriction
179 variableType="ResultSetColumn">
180 <variableOdaDataTypeRestriction
181 odaScalarDataType="Integer">
182 </variableOdaDataTypeRestriction>
183 <variableOdaDataTypeRestriction
184 odaScalarDataType="Double">
185 </variableOdaDataTypeRestriction>
186 <variableOdaDataTypeRestriction
187 odaScalarDataType="Decimal">
188 </variableOdaDataTypeRestriction>
189 <variableOdaDataTypeRestriction
190 odaScalarDataType="Date">
191 </variableOdaDataTypeRestriction>
192 </variableRestriction>
193 </aggregateType>
194 <aggregateType
Linda Chan2bcc52b2009-10-01 20:48:52 +0000195 canIgnoreDuplicates="true"
Linda Chan3b0627c2009-03-01 10:37:18 +0000196 canIgnoreNull="true"
197 id="COUNT"
198 minInputVariables="0">
199 </aggregateType>
200 <aggregateType
Linda Chan2bcc52b2009-10-01 20:48:52 +0000201 canIgnoreDuplicates="false"
Linda Chan3b0627c2009-03-01 10:37:18 +0000202 canIgnoreNull="true"
203 displayName="Average"
204 id="AVG">
205 <variableRestriction
206 variableType="ResultSetColumn">
207 <variableOdaDataTypeRestriction
208 odaScalarDataType="Integer">
209 </variableOdaDataTypeRestriction>
210 <variableOdaDataTypeRestriction
211 odaScalarDataType="Double">
212 </variableOdaDataTypeRestriction>
213 <variableOdaDataTypeRestriction
214 odaScalarDataType="Decimal">
215 </variableOdaDataTypeRestriction>
216 </variableRestriction>
217 </aggregateType>
218 <aggregateType
Linda Chan2bcc52b2009-10-01 20:48:52 +0000219 canIgnoreDuplicates="false"
Linda Chan3b0627c2009-03-01 10:37:18 +0000220 canIgnoreNull="true"
221 displayName="Weighted Average"
222 id="WtAvg"
223 maxInputVariables="2"
224 minInputVariables="2">
225 <variableRestriction
226 variableType="ResultSetColumn">
227 <variableOdaDataTypeRestriction
228 odaScalarDataType="Integer">
229 </variableOdaDataTypeRestriction>
230 <variableOdaDataTypeRestriction
231 odaScalarDataType="Double">
232 </variableOdaDataTypeRestriction>
233 <variableOdaDataTypeRestriction
234 odaScalarDataType="Decimal">
235 </variableOdaDataTypeRestriction>
236 </variableRestriction>
237 </aggregateType>
238 <aggregateType
Linda Chan2bcc52b2009-10-01 20:48:52 +0000239 canIgnoreDuplicates="true"
Linda Chan3b0627c2009-03-01 10:37:18 +0000240 canIgnoreNull="true"
241 displayName="Standard Deviation"
242 id="StdDev">
243 <variableRestriction
244 variableType="InstanceOf">
245 <variableClassRestriction
246 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.Mortgage">
247 </variableClassRestriction>
248 </variableRestriction>
249 </aggregateType>
250 </aggregateExpressionTypes>
Linda Chan9f630d92009-10-22 19:33:23 +0000251 <valueExpressionTypes
252 supportsNestedExpressions="true">
Linda Chan2bcc52b2009-10-01 20:48:52 +0000253 <combinedOperatorTypes>
254 <supportedOdaCombinedOperator
255 id="Add">
256 </supportedOdaCombinedOperator>
257 <supportedOdaCombinedOperator
258 id="Multiply">
259 </supportedOdaCombinedOperator>
260 <supportedOdaCombinedOperator
261 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.MyCombinedOperator"
262 id="Concatenate">
263 </supportedOdaCombinedOperator>
264 <combinedOperatorType
265 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.MyCombinedOperator"
266 displayName="Dot"
267 id="org.eclipse.datatools.connectivity.oda.consumer.testdriver.combinedOperator.dot"
268 literal=".">
269 </combinedOperatorType>
270 <combinedOperatorType
271 displayName="At"
272 id="org.eclipse.datatools.connectivity.oda.consumer.testdriver.combinedOperator.at"
273 literal="@">
274 </combinedOperatorType>
275 </combinedOperatorTypes>
276 <functionExpressionType
277 canIgnoreDuplicates="false"
278 description="Round up to the next higher integer value"
279 displayName="Ceiling(&lt;numerical expression&gt;)"
280 id="CEIL"
281 maxArguments="1"
282 minArguments="1">
283 <variableRestriction
284 variableType="QueryExpression">
285 <variableOdaDataTypeRestriction
286 odaScalarDataType="Double">
287 </variableOdaDataTypeRestriction>
288 <variableOdaDataTypeRestriction
289 odaScalarDataType="Decimal">
290 </variableOdaDataTypeRestriction>
291 <variableOdaDataTypeRestriction
292 odaScalarDataType="Integer">
293 </variableOdaDataTypeRestriction>
294 </variableRestriction>
295 </functionExpressionType>
296 <functionExpressionType
297 canIgnoreDuplicates="false"
298 description="Round down to the next least integer value"
299 displayName="Floor(&lt;numerical expression&gt;)"
300 id="FLOOR"
301 maxArguments="1"
302 minArguments="1">
303 <variableRestriction
304 variableType="QueryExpression">
305 <variableOdaDataTypeRestriction
306 odaScalarDataType="Double">
307 </variableOdaDataTypeRestriction>
308 <variableOdaDataTypeRestriction
309 odaScalarDataType="Decimal">
310 </variableOdaDataTypeRestriction>
311 <variableOdaDataTypeRestriction
312 odaScalarDataType="Integer">
313 </variableOdaDataTypeRestriction>
314 </variableRestriction>
315 </functionExpressionType>
316 <functionExpressionType
317 canIgnoreDuplicates="false"
318 description="Returns the &lt;numeric_expression&gt; raised to the power of &lt;power&gt;"
319 displayName="Power(&lt;numeric_expression&gt;,&lt;power&gt;) "
320 id="POWER"
321 maxArguments="2"
322 minArguments="2">
323 <variableRestriction
324 variableType="QueryExpression">
325 <variableOdaDataTypeRestriction
326 odaScalarDataType="Double">
327 </variableOdaDataTypeRestriction>
328 <variableOdaDataTypeRestriction
329 odaScalarDataType="Decimal">
330 </variableOdaDataTypeRestriction>
331 <variableOdaDataTypeRestriction
332 odaScalarDataType="Integer">
333 </variableOdaDataTypeRestriction>
334 </variableRestriction>
335 </functionExpressionType>
336 <functionExpressionType
337 canIgnoreDuplicates="false"
338 description="Returns the remainder of numeric_expression1 divided by numeric_expression2"
339 displayName="Modulo(&lt;numeric_expression1&gt;,&lt;numeric_expression2&gt;)"
340 id="MOD"
341 maxArguments="2"
342 minArguments="2">
343 <variableRestriction
344 variableType="QueryExpression">
345 <variableOdaDataTypeRestriction
346 odaScalarDataType="Double">
347 </variableOdaDataTypeRestriction>
348 <variableOdaDataTypeRestriction
349 odaScalarDataType="Decimal">
350 </variableOdaDataTypeRestriction>
351 <variableOdaDataTypeRestriction
352 odaScalarDataType="Integer">
353 </variableOdaDataTypeRestriction>
354 </variableRestriction>
355 </functionExpressionType>
356 <functionExpressionType
357 canIgnoreDuplicates="false"
358 description="Returns the square root of the positive numeric_expression"
359 displayName="Sqrt(&lt;numeric_expression&gt;) "
360 id="SQRT">
361 <variableRestriction
362 variableType="QueryExpression">
363 <variableOdaDataTypeRestriction
364 odaScalarDataType="Double">
365 </variableOdaDataTypeRestriction>
366 <variableOdaDataTypeRestriction
367 odaScalarDataType="Decimal">
368 </variableOdaDataTypeRestriction>
369 <variableOdaDataTypeRestriction
370 odaScalarDataType="Integer">
371 </variableOdaDataTypeRestriction>
372 </variableRestriction>
373 </functionExpressionType>
374 <functionExpressionType
375 canIgnoreDuplicates="false"
376 description="Returns the absolute value of an numeric expression"
377 displayName="Absolute(&lt;numeric expression&gt;) "
378 id="ABS"
379 maxArguments="1"
380 minArguments="1">
381 <variableRestriction
382 variableType="QueryExpression">
383 <variableOdaDataTypeRestriction
384 odaScalarDataType="Double">
385 </variableOdaDataTypeRestriction>
386 <variableOdaDataTypeRestriction
387 odaScalarDataType="Decimal">
388 </variableOdaDataTypeRestriction>
389 <variableOdaDataTypeRestriction
390 odaScalarDataType="Integer">
391 </variableOdaDataTypeRestriction>
392 </variableRestriction>
393 </functionExpressionType>
394 <functionExpressionType
395 canIgnoreDuplicates="false"
396 description="Converts all characters in a string into uppercase"
397 displayName="Upper(&lt;string_expression&gt;)"
398 id="UPPER"
399 maxArguments="1"
400 minArguments="1">
401 <variableRestriction
402 variableType="QueryExpression">
403 <variableOdaDataTypeRestriction
404 odaScalarDataType="String">
405 </variableOdaDataTypeRestriction>
406 </variableRestriction>
407 </functionExpressionType>
408 <functionExpressionType
409 canIgnoreDuplicates="false"
410 description="Converts all characters in a string into lowercase"
411 displayName="Lower(&lt;string_expression&gt;)"
412 id="LOWER">
413 <variableRestriction
414 variableType="QueryExpression">
415 <variableOdaDataTypeRestriction
416 odaScalarDataType="String">
417 </variableOdaDataTypeRestriction>
418 </variableRestriction>
419 </functionExpressionType>
420 <functionExpressionType
421 canIgnoreDuplicates="false"
422 description="Returns the current date"
423 displayName="Current Date"
424 id="CURRENT_DATE"
425 maxArguments="0"
426 minArguments="0">
427 </functionExpressionType>
428 <functionExpressionType
429 canIgnoreDuplicates="false"
430 description="Returns an integer value for the month part of date_expression"
431 displayName="Month(&lt;date_expression&gt;)"
432 id="MONTH"
433 maxArguments="1"
434 minArguments="1">
435 <variableRestriction
436 variableType="QueryExpression">
437 <variableOdaDataTypeRestriction
438 odaScalarDataType="Date">
439 </variableOdaDataTypeRestriction>
440 <variableOdaDataTypeRestriction
441 odaScalarDataType="Timestamp">
442 </variableOdaDataTypeRestriction>
443 </variableRestriction>
444 </functionExpressionType>
445 <functionExpressionType
446 canIgnoreDuplicates="false"
447 class="org.eclipse.datatools.connectivity.oda.consumer.testdriver.spec.impl.MyCustomFunction"
448 description="Test custom class implementation"
449 displayName="Custom Function"
450 id="100"
451 maxArguments="1"
452 minArguments="1"
453 name="CustomFunc">
454 </functionExpressionType>
455 </valueExpressionTypes>
Linda Chanf5447c02009-01-30 08:10:44 +0000456 </extension>
Linda Chanbe2ba9d2006-10-21 13:33:34 +0000457
458</plugin>