1 | // tlb2java |
2 | package com.moesol.bindings.platform_sdk.data_services; |
3 | |
4 | |
5 | /** |
6 | * <code>IDL: [ helpstring(""), hidden, dual, oleautomation, dispatchable ] interface</code> |
7 | */ |
8 | public interface Connection15 extends com.moesol.bindings.platform_sdk.data_services._ADO { |
9 | public static final Class TYPELIB = TYPELIB_2A75196C_D9EB_4129_B803_931327F72D5C.class; |
10 | /** |
11 | * <code>IDL: [uuid(00000515-0000-0010-8000-00AA006D2EA4)]</code> |
12 | */ |
13 | public static final com.moesol.bindings.platform_sdk.component_services.GUID IID = new com.moesol.bindings.platform_sdk.component_services.GUID( |
14 | 0x00000515, (short)0x0000, (short)0x0010, |
15 | new byte[] { |
16 | (byte)0x80, (byte)0x00, |
17 | (byte)0x00, (byte)0xaa, (byte)0x00, (byte)0x6d, (byte)0x2e, (byte)0xa4 |
18 | } ); |
19 | |
20 | /** |
21 | * <code>IDL: [ helpstring("") ]</code> |
22 | * |
23 | * @return |
24 | * <code>IDL: [out] [retval] BSTR*</code> |
25 | */ |
26 | public String getConnectionString(); |
27 | |
28 | /** |
29 | * <code>IDL: [ helpstring("") ]</code> |
30 | * |
31 | * @param pbstr |
32 | * <code>IDL: [in] BSTR</code> |
33 | */ |
34 | public void setConnectionString( |
35 | /*[in]*/ String pbstr); |
36 | |
37 | /** |
38 | * <code>IDL: [ helpstring("") ]</code> |
39 | * |
40 | * @return |
41 | * <code>IDL: [out] [retval] LONG*</code> |
42 | */ |
43 | public int getCommandTimeout(); |
44 | |
45 | /** |
46 | * <code>IDL: [ helpstring("") ]</code> |
47 | * |
48 | * @param plTimeout |
49 | * <code>IDL: [in] LONG</code> |
50 | */ |
51 | public void setCommandTimeout( |
52 | /*[in]*/ int plTimeout); |
53 | |
54 | /** |
55 | * <code>IDL: [ helpstring("") ]</code> |
56 | * |
57 | * @return |
58 | * <code>IDL: [out] [retval] LONG*</code> |
59 | */ |
60 | public int getConnectionTimeout(); |
61 | |
62 | /** |
63 | * <code>IDL: [ helpstring("") ]</code> |
64 | * |
65 | * @param plTimeout |
66 | * <code>IDL: [in] LONG</code> |
67 | */ |
68 | public void setConnectionTimeout( |
69 | /*[in]*/ int plTimeout); |
70 | |
71 | /** |
72 | * <code>IDL: [ helpstring("") ]</code> |
73 | * |
74 | * @return |
75 | * <code>IDL: [out] [retval] BSTR*</code> |
76 | */ |
77 | public String getVersion(); |
78 | |
79 | /** |
80 | * <code>IDL: [ helpstring("") ]</code> |
81 | * |
82 | */ |
83 | public void Close(); |
84 | |
85 | /** |
86 | * <code>IDL: [ helpstring("") ]</code> |
87 | * |
88 | * @param CommandText |
89 | * <code>IDL: [in] BSTR</code> |
90 | * @param RecordsAffected |
91 | * <code>IDL: [out] [optional] VARIANT*</code> |
92 | * @param Options |
93 | * <code>IDL: [in] [optional] [default] LONG</code> |
94 | * @return |
95 | * <code>IDL: [out] [retval] _Recordset**</code> |
96 | */ |
97 | public com.moesol.bindings.platform_sdk.data_services._Recordset Execute( |
98 | /*[in]*/ String CommandText, |
99 | /*[out]*/ Object[] RecordsAffected, |
100 | /*[in]*/ int Options); |
101 | |
102 | /** |
103 | * <code>IDL: [ helpstring("") ]</code> |
104 | * |
105 | * @return |
106 | * <code>IDL: [out] [retval] LONG*</code> |
107 | */ |
108 | public int BeginTrans(); |
109 | |
110 | /** |
111 | * <code>IDL: [ helpstring("") ]</code> |
112 | * |
113 | */ |
114 | public void CommitTrans(); |
115 | |
116 | /** |
117 | * <code>IDL: [ helpstring("") ]</code> |
118 | * |
119 | */ |
120 | public void RollbackTrans(); |
121 | |
122 | /** |
123 | * <code>IDL: [ helpstring("") ]</code> |
124 | * |
125 | * @param ConnectionString |
126 | * <code>IDL: [in] [optional] [default] BSTR</code> |
127 | * @param UserID |
128 | * <code>IDL: [in] [optional] [default] BSTR</code> |
129 | * @param Password |
130 | * <code>IDL: [in] [optional] [default] BSTR</code> |
131 | * @param Options |
132 | * <code>IDL: [in] [optional] [default] LONG</code> |
133 | */ |
134 | public void Open( |
135 | /*[in]*/ String ConnectionString, |
136 | /*[in]*/ String UserID, |
137 | /*[in]*/ String Password, |
138 | /*[in]*/ int Options); |
139 | |
140 | /** |
141 | * <code>IDL: [ helpstring("") ]</code> |
142 | * |
143 | * @return |
144 | * <code>IDL: [out] [retval] Errors**</code> |
145 | */ |
146 | public com.moesol.bindings.platform_sdk.data_services.Errors getErrors(); |
147 | |
148 | /** |
149 | * <code>IDL: [ helpstring("") ]</code> |
150 | * |
151 | * @return |
152 | * <code>IDL: [out] [retval] BSTR*</code> |
153 | */ |
154 | public String getDefaultDatabase(); |
155 | |
156 | /** |
157 | * <code>IDL: [ helpstring("") ]</code> |
158 | * |
159 | * @param pbstr |
160 | * <code>IDL: [in] BSTR</code> |
161 | */ |
162 | public void setDefaultDatabase( |
163 | /*[in]*/ String pbstr); |
164 | |
165 | /** |
166 | * <code>IDL: [ helpstring("") ]</code> |
167 | * |
168 | * @return |
169 | * <code>IDL: [out] [retval] IsolationLevelEnum*</code> |
170 | */ |
171 | public int getIsolationLevel(); |
172 | |
173 | /** |
174 | * <code>IDL: [ helpstring("") ]</code> |
175 | * |
176 | * @param Level |
177 | * <code>IDL: [in] IsolationLevelEnum</code> |
178 | */ |
179 | public void setIsolationLevel( |
180 | /*[in]*/ int Level); |
181 | |
182 | /** |
183 | * <code>IDL: [ helpstring("") ]</code> |
184 | * |
185 | * @return |
186 | * <code>IDL: [out] [retval] LONG*</code> |
187 | */ |
188 | public int getAttributes(); |
189 | |
190 | /** |
191 | * <code>IDL: [ helpstring("") ]</code> |
192 | * |
193 | * @param plAttr |
194 | * <code>IDL: [in] LONG</code> |
195 | */ |
196 | public void setAttributes( |
197 | /*[in]*/ int plAttr); |
198 | |
199 | /** |
200 | * <code>IDL: [ helpstring("") ]</code> |
201 | * |
202 | * @return |
203 | * <code>IDL: [out] [retval] CursorLocationEnum*</code> |
204 | */ |
205 | public int getCursorLocation(); |
206 | |
207 | /** |
208 | * <code>IDL: [ helpstring("") ]</code> |
209 | * |
210 | * @param plCursorLoc |
211 | * <code>IDL: [in] CursorLocationEnum</code> |
212 | */ |
213 | public void setCursorLocation( |
214 | /*[in]*/ int plCursorLoc); |
215 | |
216 | /** |
217 | * <code>IDL: [ helpstring("") ]</code> |
218 | * |
219 | * @return |
220 | * <code>IDL: [out] [retval] ConnectModeEnum*</code> |
221 | */ |
222 | public int getMode(); |
223 | |
224 | /** |
225 | * <code>IDL: [ helpstring("") ]</code> |
226 | * |
227 | * @param plMode |
228 | * <code>IDL: [in] ConnectModeEnum</code> |
229 | */ |
230 | public void setMode( |
231 | /*[in]*/ int plMode); |
232 | |
233 | /** |
234 | * <code>IDL: [ helpstring("") ]</code> |
235 | * |
236 | * @return |
237 | * <code>IDL: [out] [retval] BSTR*</code> |
238 | */ |
239 | public String getProvider(); |
240 | |
241 | /** |
242 | * <code>IDL: [ helpstring("") ]</code> |
243 | * |
244 | * @param pbstr |
245 | * <code>IDL: [in] BSTR</code> |
246 | */ |
247 | public void setProvider( |
248 | /*[in]*/ String pbstr); |
249 | |
250 | /** |
251 | * <code>IDL: [ helpstring("") ]</code> |
252 | * |
253 | * @return |
254 | * <code>IDL: [out] [retval] LONG*</code> |
255 | */ |
256 | public int getState(); |
257 | |
258 | /** |
259 | * <code>IDL: [ helpstring("") ]</code> |
260 | * |
261 | * @param Schema |
262 | * <code>IDL: [in] SchemaEnum</code> |
263 | * @param Restrictions |
264 | * <code>IDL: [in] [optional] VARIANT</code> |
265 | * @param SchemaID |
266 | * <code>IDL: [in] [optional] VARIANT</code> |
267 | * @return |
268 | * <code>IDL: [out] [retval] _Recordset**</code> |
269 | */ |
270 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
271 | /*[in]*/ int Schema, |
272 | /*[in]*/ Object Restrictions, |
273 | /*[in]*/ Object SchemaID); |
274 | |
275 | /** [optional=1] */ |
276 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
277 | /*[in]*/ int Schema, |
278 | /*[in]*/ Object Restrictions); |
279 | |
280 | /** [optional=2] */ |
281 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
282 | /*[in]*/ int Schema); |
283 | |
284 | |
285 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
286 | public static class Jni extends com.moesol.bindings.platform_sdk.data_services._ADO.Jni implements Connection15 { |
287 | |
288 | protected Jni () { |
289 | } |
290 | |
291 | |
292 | private native String jni_getConnectionString(); |
293 | public String getConnectionString() { |
294 | |
295 | return jni_getConnectionString(); |
296 | } |
297 | |
298 | private native void jni_setConnectionString( |
299 | /*[in]*/ String p0); |
300 | public void setConnectionString( |
301 | /*[in]*/ String p0) { |
302 | |
303 | jni_setConnectionString(p0); |
304 | } |
305 | |
306 | private native int jni_getCommandTimeout(); |
307 | public int getCommandTimeout() { |
308 | |
309 | return jni_getCommandTimeout(); |
310 | } |
311 | |
312 | private native void jni_setCommandTimeout( |
313 | /*[in]*/ int p0); |
314 | public void setCommandTimeout( |
315 | /*[in]*/ int p0) { |
316 | |
317 | jni_setCommandTimeout(p0); |
318 | } |
319 | |
320 | private native int jni_getConnectionTimeout(); |
321 | public int getConnectionTimeout() { |
322 | |
323 | return jni_getConnectionTimeout(); |
324 | } |
325 | |
326 | private native void jni_setConnectionTimeout( |
327 | /*[in]*/ int p0); |
328 | public void setConnectionTimeout( |
329 | /*[in]*/ int p0) { |
330 | |
331 | jni_setConnectionTimeout(p0); |
332 | } |
333 | |
334 | private native String jni_getVersion(); |
335 | public String getVersion() { |
336 | |
337 | return jni_getVersion(); |
338 | } |
339 | |
340 | private native void jni_Close(); |
341 | public void Close() { |
342 | |
343 | jni_Close(); |
344 | } |
345 | |
346 | private native com.moesol.bindings.platform_sdk.data_services._Recordset jni_Execute( |
347 | /*[in]*/ String p0, |
348 | /*[out]*/ Object[] p1, |
349 | /*[in]*/ int p2); |
350 | public com.moesol.bindings.platform_sdk.data_services._Recordset Execute( |
351 | /*[in]*/ String p0, |
352 | /*[out]*/ Object[] p1, |
353 | /*[in]*/ int p2) { |
354 | |
355 | return jni_Execute(p0, p1, p2); |
356 | } |
357 | |
358 | private native int jni_BeginTrans(); |
359 | public int BeginTrans() { |
360 | |
361 | return jni_BeginTrans(); |
362 | } |
363 | |
364 | private native void jni_CommitTrans(); |
365 | public void CommitTrans() { |
366 | |
367 | jni_CommitTrans(); |
368 | } |
369 | |
370 | private native void jni_RollbackTrans(); |
371 | public void RollbackTrans() { |
372 | |
373 | jni_RollbackTrans(); |
374 | } |
375 | |
376 | private native void jni_Open( |
377 | /*[in]*/ String p0, |
378 | /*[in]*/ String p1, |
379 | /*[in]*/ String p2, |
380 | /*[in]*/ int p3); |
381 | public void Open( |
382 | /*[in]*/ String p0, |
383 | /*[in]*/ String p1, |
384 | /*[in]*/ String p2, |
385 | /*[in]*/ int p3) { |
386 | |
387 | jni_Open(p0, p1, p2, p3); |
388 | } |
389 | |
390 | private native com.moesol.bindings.platform_sdk.data_services.Errors jni_getErrors(); |
391 | public com.moesol.bindings.platform_sdk.data_services.Errors getErrors() { |
392 | |
393 | return jni_getErrors(); |
394 | } |
395 | |
396 | private native String jni_getDefaultDatabase(); |
397 | public String getDefaultDatabase() { |
398 | |
399 | return jni_getDefaultDatabase(); |
400 | } |
401 | |
402 | private native void jni_setDefaultDatabase( |
403 | /*[in]*/ String p0); |
404 | public void setDefaultDatabase( |
405 | /*[in]*/ String p0) { |
406 | |
407 | jni_setDefaultDatabase(p0); |
408 | } |
409 | |
410 | private native int jni_getIsolationLevel(); |
411 | public int getIsolationLevel() { |
412 | |
413 | return jni_getIsolationLevel(); |
414 | } |
415 | |
416 | private native void jni_setIsolationLevel( |
417 | /*[in]*/ int p0); |
418 | public void setIsolationLevel( |
419 | /*[in]*/ int p0) { |
420 | |
421 | jni_setIsolationLevel(p0); |
422 | } |
423 | |
424 | private native int jni_getAttributes(); |
425 | public int getAttributes() { |
426 | |
427 | return jni_getAttributes(); |
428 | } |
429 | |
430 | private native void jni_setAttributes( |
431 | /*[in]*/ int p0); |
432 | public void setAttributes( |
433 | /*[in]*/ int p0) { |
434 | |
435 | jni_setAttributes(p0); |
436 | } |
437 | |
438 | private native int jni_getCursorLocation(); |
439 | public int getCursorLocation() { |
440 | |
441 | return jni_getCursorLocation(); |
442 | } |
443 | |
444 | private native void jni_setCursorLocation( |
445 | /*[in]*/ int p0); |
446 | public void setCursorLocation( |
447 | /*[in]*/ int p0) { |
448 | |
449 | jni_setCursorLocation(p0); |
450 | } |
451 | |
452 | private native int jni_getMode(); |
453 | public int getMode() { |
454 | |
455 | return jni_getMode(); |
456 | } |
457 | |
458 | private native void jni_setMode( |
459 | /*[in]*/ int p0); |
460 | public void setMode( |
461 | /*[in]*/ int p0) { |
462 | |
463 | jni_setMode(p0); |
464 | } |
465 | |
466 | private native String jni_getProvider(); |
467 | public String getProvider() { |
468 | |
469 | return jni_getProvider(); |
470 | } |
471 | |
472 | private native void jni_setProvider( |
473 | /*[in]*/ String p0); |
474 | public void setProvider( |
475 | /*[in]*/ String p0) { |
476 | |
477 | jni_setProvider(p0); |
478 | } |
479 | |
480 | private native int jni_getState(); |
481 | public int getState() { |
482 | |
483 | return jni_getState(); |
484 | } |
485 | |
486 | private native com.moesol.bindings.platform_sdk.data_services._Recordset jni_OpenSchema( |
487 | /*[in]*/ int p0, |
488 | /*[in]*/ Object p1, |
489 | /*[in]*/ Object p2); |
490 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
491 | /*[in]*/ int p0, |
492 | /*[in]*/ Object p1, |
493 | /*[in]*/ Object p2) { |
494 | |
495 | return jni_OpenSchema(p0, p1, p2); |
496 | } |
497 | |
498 | /** [optional=1] */ |
499 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
500 | /*[in]*/ int p0, |
501 | /*[in]*/ Object p1) { |
502 | |
503 | return OpenSchema(p0, p1, null); |
504 | } |
505 | /** [optional=2] */ |
506 | public com.moesol.bindings.platform_sdk.data_services._Recordset OpenSchema( |
507 | /*[in]*/ int p0) { |
508 | |
509 | return OpenSchema(p0, null, null); |
510 | } |
511 | } |
512 | |
513 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
514 | public static class Disp extends com.moesol.bindings.platform_sdk.data_services._ADO.Disp { |
515 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
516 | return s_instance; |
517 | } |
518 | |
519 | private static Disp s_instance = new Disp(); |
520 | |
521 | protected Disp() { |
522 | addEntry(0, (short)2, "getConnectionString", "()Ljava/lang/String;"); |
523 | addEntry(0, (short)4, "setConnectionString", "(Ljava/lang/String;)V"); |
524 | addEntry(2, (short)2, "getCommandTimeout", "()I"); |
525 | addEntry(2, (short)4, "setCommandTimeout", "(I)V"); |
526 | addEntry(3, (short)2, "getConnectionTimeout", "()I"); |
527 | addEntry(3, (short)4, "setConnectionTimeout", "(I)V"); |
528 | addEntry(4, (short)2, "getVersion", "()Ljava/lang/String;"); |
529 | addEntry(5, (short)1, "Close", "()V"); |
530 | addEntry(6, (short)1, "Execute", "(Ljava/lang/String;[Ljava/lang/Object;I)Lcom/moesol/bindings/platform_sdk/data_services/_Recordset;"); |
531 | addEntry(7, (short)1, "BeginTrans", "()I"); |
532 | addEntry(8, (short)1, "CommitTrans", "()V"); |
533 | addEntry(9, (short)1, "RollbackTrans", "()V"); |
534 | addEntry(10, (short)1, "Open", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"); |
535 | addEntry(11, (short)2, "getErrors", "()Lcom/moesol/bindings/platform_sdk/data_services/Errors;"); |
536 | addEntry(12, (short)2, "getDefaultDatabase", "()Ljava/lang/String;"); |
537 | addEntry(12, (short)4, "setDefaultDatabase", "(Ljava/lang/String;)V"); |
538 | addEntry(13, (short)2, "getIsolationLevel", "()I"); |
539 | addEntry(13, (short)4, "setIsolationLevel", "(I)V"); |
540 | addEntry(14, (short)2, "getAttributes", "()I"); |
541 | addEntry(14, (short)4, "setAttributes", "(I)V"); |
542 | addEntry(15, (short)2, "getCursorLocation", "()I"); |
543 | addEntry(15, (short)4, "setCursorLocation", "(I)V"); |
544 | addEntry(16, (short)2, "getMode", "()I"); |
545 | addEntry(16, (short)4, "setMode", "(I)V"); |
546 | addEntry(17, (short)2, "getProvider", "()Ljava/lang/String;"); |
547 | addEntry(17, (short)4, "setProvider", "(Ljava/lang/String;)V"); |
548 | addEntry(18, (short)2, "getState", "()I"); |
549 | addEntry(19, (short)1, "OpenSchema", "(ILjava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/platform_sdk/data_services/_Recordset;"); |
550 | } |
551 | } |
552 | } |