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 _Record 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(00000562-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 | 0x00000562, (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] VARIANT*</code> |
25 | */ |
26 | public Object getActiveConnection(); |
27 | |
28 | /** |
29 | * <code>IDL: [ helpstring("") ]</code> |
30 | * |
31 | * @param pvar |
32 | * <code>IDL: [in] BSTR</code> |
33 | */ |
34 | public void setActiveConnection( |
35 | /*[in]*/ String pvar); |
36 | |
37 | /** |
38 | * <code>IDL: [ helpstring("") ]</code> |
39 | * |
40 | * @param pvar |
41 | * <code>IDL: [in] _Connection*</code> |
42 | */ |
43 | public void setrefActiveConnection( |
44 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection pvar); |
45 | |
46 | /** |
47 | * <code>IDL: [ helpstring("") ]</code> |
48 | * |
49 | * @return |
50 | * <code>IDL: [out] [retval] ObjectStateEnum*</code> |
51 | */ |
52 | public int getState(); |
53 | |
54 | /** |
55 | * <code>IDL: [ helpstring("") ]</code> |
56 | * |
57 | * @return |
58 | * <code>IDL: [out] [retval] VARIANT*</code> |
59 | */ |
60 | public Object getSource(); |
61 | |
62 | /** |
63 | * <code>IDL: [ helpstring("") ]</code> |
64 | * |
65 | * @param pvar |
66 | * <code>IDL: [in] BSTR</code> |
67 | */ |
68 | public void setSource( |
69 | /*[in]*/ String pvar); |
70 | |
71 | /** |
72 | * <code>IDL: [ helpstring("") ]</code> |
73 | * |
74 | * @param pvar |
75 | * <code>IDL: [in] IDispatch*</code> |
76 | */ |
77 | public void setrefSource( |
78 | /*[in]*/ com.moesol.bindings.platform_sdk.component_services.IDispatch pvar); |
79 | |
80 | /** |
81 | * <code>IDL: [ helpstring("") ]</code> |
82 | * |
83 | * @return |
84 | * <code>IDL: [out] [retval] ConnectModeEnum*</code> |
85 | */ |
86 | public int getMode(); |
87 | |
88 | /** |
89 | * <code>IDL: [ helpstring("") ]</code> |
90 | * |
91 | * @param pMode |
92 | * <code>IDL: [in] ConnectModeEnum</code> |
93 | */ |
94 | public void setMode( |
95 | /*[in]*/ int pMode); |
96 | |
97 | /** |
98 | * <code>IDL: [ helpstring("") ]</code> |
99 | * |
100 | * @return |
101 | * <code>IDL: [out] [retval] BSTR*</code> |
102 | */ |
103 | public String getParentURL(); |
104 | |
105 | /** |
106 | * <code>IDL: [ helpstring("") ]</code> |
107 | * |
108 | * @param Source |
109 | * <code>IDL: [in] [optional] [default] BSTR</code> |
110 | * @param Destination |
111 | * <code>IDL: [in] [optional] [default] BSTR</code> |
112 | * @param UserName |
113 | * <code>IDL: [in] [optional] [default] BSTR</code> |
114 | * @param Password |
115 | * <code>IDL: [in] [optional] [default] BSTR</code> |
116 | * @param Options |
117 | * <code>IDL: [in] [optional] [default] MoveRecordOptionsEnum</code> |
118 | * @param Async |
119 | * <code>IDL: [in] [optional] [default] VARIANT_BOOL</code> |
120 | * @return |
121 | * <code>IDL: [out] [retval] BSTR*</code> |
122 | */ |
123 | public String MoveRecord( |
124 | /*[in]*/ String Source, |
125 | /*[in]*/ String Destination, |
126 | /*[in]*/ String UserName, |
127 | /*[in]*/ String Password, |
128 | /*[in]*/ int Options, |
129 | /*[in]*/ boolean Async); |
130 | |
131 | /** |
132 | * <code>IDL: [ helpstring("") ]</code> |
133 | * |
134 | * @param Source |
135 | * <code>IDL: [in] [optional] [default] BSTR</code> |
136 | * @param Destination |
137 | * <code>IDL: [in] [optional] [default] BSTR</code> |
138 | * @param UserName |
139 | * <code>IDL: [in] [optional] [default] BSTR</code> |
140 | * @param Password |
141 | * <code>IDL: [in] [optional] [default] BSTR</code> |
142 | * @param Options |
143 | * <code>IDL: [in] [optional] [default] CopyRecordOptionsEnum</code> |
144 | * @param Async |
145 | * <code>IDL: [in] [optional] [default] VARIANT_BOOL</code> |
146 | * @return |
147 | * <code>IDL: [out] [retval] BSTR*</code> |
148 | */ |
149 | public String CopyRecord( |
150 | /*[in]*/ String Source, |
151 | /*[in]*/ String Destination, |
152 | /*[in]*/ String UserName, |
153 | /*[in]*/ String Password, |
154 | /*[in]*/ int Options, |
155 | /*[in]*/ boolean Async); |
156 | |
157 | /** |
158 | * <code>IDL: [ helpstring("") ]</code> |
159 | * |
160 | * @param Source |
161 | * <code>IDL: [in] [optional] [default] BSTR</code> |
162 | * @param Async |
163 | * <code>IDL: [in] [optional] [default] VARIANT_BOOL</code> |
164 | */ |
165 | public void DeleteRecord( |
166 | /*[in]*/ String Source, |
167 | /*[in]*/ boolean Async); |
168 | |
169 | /** |
170 | * <code>IDL: [ helpstring("") ]</code> |
171 | * |
172 | * @param Source |
173 | * <code>IDL: [in] [optional] VARIANT</code> |
174 | * @param ActiveConnection |
175 | * <code>IDL: [in] [optional] VARIANT</code> |
176 | * @param Mode |
177 | * <code>IDL: [in] [optional] [default] ConnectModeEnum</code> |
178 | * @param CreateOptions |
179 | * <code>IDL: [in] [optional] [default] RecordCreateOptionsEnum</code> |
180 | * @param Options |
181 | * <code>IDL: [in] [optional] [default] RecordOpenOptionsEnum</code> |
182 | * @param UserName |
183 | * <code>IDL: [in] [optional] [default] BSTR</code> |
184 | * @param Password |
185 | * <code>IDL: [in] [optional] [default] BSTR</code> |
186 | */ |
187 | public void Open( |
188 | /*[in]*/ Object Source, |
189 | /*[in]*/ Object ActiveConnection, |
190 | /*[in]*/ int Mode, |
191 | /*[in]*/ int CreateOptions, |
192 | /*[in]*/ int Options, |
193 | /*[in]*/ String UserName, |
194 | /*[in]*/ String Password); |
195 | |
196 | /** |
197 | * <code>IDL: [ helpstring("") ]</code> |
198 | * |
199 | */ |
200 | public void Close(); |
201 | |
202 | /** |
203 | * <code>IDL: [ helpstring("") ]</code> |
204 | * |
205 | * @return |
206 | * <code>IDL: [out] [retval] Fields**</code> |
207 | */ |
208 | public com.moesol.bindings.platform_sdk.data_services.Fields getFields(); |
209 | |
210 | /** |
211 | * <code>IDL: [ helpstring("") ]</code> |
212 | * |
213 | * @return |
214 | * <code>IDL: [out] [retval] RecordTypeEnum*</code> |
215 | */ |
216 | public int getRecordType(); |
217 | |
218 | /** |
219 | * <code>IDL: [ helpstring("") ]</code> |
220 | * |
221 | * @return |
222 | * <code>IDL: [out] [retval] _Recordset**</code> |
223 | */ |
224 | public com.moesol.bindings.platform_sdk.data_services._Recordset GetChildren(); |
225 | |
226 | /** |
227 | * <code>IDL: [ helpstring("") ]</code> |
228 | * |
229 | */ |
230 | public void Cancel(); |
231 | |
232 | |
233 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
234 | public static class Jni extends com.moesol.bindings.platform_sdk.data_services._ADO.Jni implements _Record { |
235 | |
236 | protected Jni () { |
237 | } |
238 | |
239 | |
240 | private native Object jni_getActiveConnection(); |
241 | public Object getActiveConnection() { |
242 | |
243 | return jni_getActiveConnection(); |
244 | } |
245 | |
246 | private native void jni_setActiveConnection( |
247 | /*[in]*/ String p0); |
248 | public void setActiveConnection( |
249 | /*[in]*/ String p0) { |
250 | |
251 | jni_setActiveConnection(p0); |
252 | } |
253 | |
254 | private native void jni_setrefActiveConnection( |
255 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection p0); |
256 | public void setrefActiveConnection( |
257 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection p0) { |
258 | |
259 | jni_setrefActiveConnection(p0); |
260 | } |
261 | |
262 | private native int jni_getState(); |
263 | public int getState() { |
264 | |
265 | return jni_getState(); |
266 | } |
267 | |
268 | private native Object jni_getSource(); |
269 | public Object getSource() { |
270 | |
271 | return jni_getSource(); |
272 | } |
273 | |
274 | private native void jni_setSource( |
275 | /*[in]*/ String p0); |
276 | public void setSource( |
277 | /*[in]*/ String p0) { |
278 | |
279 | jni_setSource(p0); |
280 | } |
281 | |
282 | private native void jni_setrefSource( |
283 | /*[in]*/ com.moesol.bindings.platform_sdk.component_services.IDispatch p0); |
284 | public void setrefSource( |
285 | /*[in]*/ com.moesol.bindings.platform_sdk.component_services.IDispatch p0) { |
286 | |
287 | jni_setrefSource(p0); |
288 | } |
289 | |
290 | private native int jni_getMode(); |
291 | public int getMode() { |
292 | |
293 | return jni_getMode(); |
294 | } |
295 | |
296 | private native void jni_setMode( |
297 | /*[in]*/ int p0); |
298 | public void setMode( |
299 | /*[in]*/ int p0) { |
300 | |
301 | jni_setMode(p0); |
302 | } |
303 | |
304 | private native String jni_getParentURL(); |
305 | public String getParentURL() { |
306 | |
307 | return jni_getParentURL(); |
308 | } |
309 | |
310 | private native String jni_MoveRecord( |
311 | /*[in]*/ String p0, |
312 | /*[in]*/ String p1, |
313 | /*[in]*/ String p2, |
314 | /*[in]*/ String p3, |
315 | /*[in]*/ int p4, |
316 | /*[in]*/ boolean p5); |
317 | public String MoveRecord( |
318 | /*[in]*/ String p0, |
319 | /*[in]*/ String p1, |
320 | /*[in]*/ String p2, |
321 | /*[in]*/ String p3, |
322 | /*[in]*/ int p4, |
323 | /*[in]*/ boolean p5) { |
324 | |
325 | return jni_MoveRecord(p0, p1, p2, p3, p4, p5); |
326 | } |
327 | |
328 | private native String jni_CopyRecord( |
329 | /*[in]*/ String p0, |
330 | /*[in]*/ String p1, |
331 | /*[in]*/ String p2, |
332 | /*[in]*/ String p3, |
333 | /*[in]*/ int p4, |
334 | /*[in]*/ boolean p5); |
335 | public String CopyRecord( |
336 | /*[in]*/ String p0, |
337 | /*[in]*/ String p1, |
338 | /*[in]*/ String p2, |
339 | /*[in]*/ String p3, |
340 | /*[in]*/ int p4, |
341 | /*[in]*/ boolean p5) { |
342 | |
343 | return jni_CopyRecord(p0, p1, p2, p3, p4, p5); |
344 | } |
345 | |
346 | private native void jni_DeleteRecord( |
347 | /*[in]*/ String p0, |
348 | /*[in]*/ boolean p1); |
349 | public void DeleteRecord( |
350 | /*[in]*/ String p0, |
351 | /*[in]*/ boolean p1) { |
352 | |
353 | jni_DeleteRecord(p0, p1); |
354 | } |
355 | |
356 | private native void jni_Open( |
357 | /*[in]*/ Object p0, |
358 | /*[in]*/ Object p1, |
359 | /*[in]*/ int p2, |
360 | /*[in]*/ int p3, |
361 | /*[in]*/ int p4, |
362 | /*[in]*/ String p5, |
363 | /*[in]*/ String p6); |
364 | public void Open( |
365 | /*[in]*/ Object p0, |
366 | /*[in]*/ Object p1, |
367 | /*[in]*/ int p2, |
368 | /*[in]*/ int p3, |
369 | /*[in]*/ int p4, |
370 | /*[in]*/ String p5, |
371 | /*[in]*/ String p6) { |
372 | |
373 | jni_Open(p0, p1, p2, p3, p4, p5, p6); |
374 | } |
375 | |
376 | private native void jni_Close(); |
377 | public void Close() { |
378 | |
379 | jni_Close(); |
380 | } |
381 | |
382 | private native com.moesol.bindings.platform_sdk.data_services.Fields jni_getFields(); |
383 | public com.moesol.bindings.platform_sdk.data_services.Fields getFields() { |
384 | |
385 | return jni_getFields(); |
386 | } |
387 | |
388 | private native int jni_getRecordType(); |
389 | public int getRecordType() { |
390 | |
391 | return jni_getRecordType(); |
392 | } |
393 | |
394 | private native com.moesol.bindings.platform_sdk.data_services._Recordset jni_GetChildren(); |
395 | public com.moesol.bindings.platform_sdk.data_services._Recordset GetChildren() { |
396 | |
397 | return jni_GetChildren(); |
398 | } |
399 | |
400 | private native void jni_Cancel(); |
401 | public void Cancel() { |
402 | |
403 | jni_Cancel(); |
404 | } |
405 | |
406 | } |
407 | |
408 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
409 | public static class Disp extends com.moesol.bindings.platform_sdk.data_services._ADO.Disp { |
410 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
411 | return s_instance; |
412 | } |
413 | |
414 | private static Disp s_instance = new Disp(); |
415 | |
416 | protected Disp() { |
417 | addEntry(1, (short)2, "getActiveConnection", "()Ljava/lang/Object;"); |
418 | addEntry(1, (short)4, "setActiveConnection", "(Ljava/lang/String;)V"); |
419 | addEntry(1, (short)8, "setrefActiveConnection", "(Lcom/moesol/bindings/platform_sdk/data_services/_Connection;)V"); |
420 | addEntry(2, (short)2, "getState", "()I"); |
421 | addEntry(3, (short)2, "getSource", "()Ljava/lang/Object;"); |
422 | addEntry(3, (short)4, "setSource", "(Ljava/lang/String;)V"); |
423 | addEntry(3, (short)8, "setrefSource", "(Lcom/moesol/bindings/platform_sdk/component_services/IDispatch;)V"); |
424 | addEntry(4, (short)2, "getMode", "()I"); |
425 | addEntry(4, (short)4, "setMode", "(I)V"); |
426 | addEntry(5, (short)2, "getParentURL", "()Ljava/lang/String;"); |
427 | addEntry(6, (short)1, "MoveRecord", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)Ljava/lang/String;"); |
428 | addEntry(7, (short)1, "CopyRecord", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)Ljava/lang/String;"); |
429 | addEntry(8, (short)1, "DeleteRecord", "(Ljava/lang/String;Z)V"); |
430 | addEntry(9, (short)1, "Open", "(Ljava/lang/Object;Ljava/lang/Object;IIILjava/lang/String;Ljava/lang/String;)V"); |
431 | addEntry(10, (short)1, "Close", "()V"); |
432 | addEntry(0, (short)2, "getFields", "()Lcom/moesol/bindings/platform_sdk/data_services/Fields;"); |
433 | addEntry(11, (short)2, "getRecordType", "()I"); |
434 | addEntry(12, (short)1, "GetChildren", "()Lcom/moesol/bindings/platform_sdk/data_services/_Recordset;"); |
435 | addEntry(13, (short)1, "Cancel", "()V"); |
436 | } |
437 | } |
438 | } |