1 | // tlb2java |
2 | package com.moesol.bindings.platform_sdk.data_services; |
3 | |
4 | |
5 | /** |
6 | * <code>IDL: [ helpstring(""), hidden, dual, nonextensible, oleautomation, dispatchable ] interface</code> |
7 | */ |
8 | public interface Command15 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(00000508-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 | 0x00000508, (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] _Connection**</code> |
25 | */ |
26 | public com.moesol.bindings.platform_sdk.data_services._Connection getActiveConnection(); |
27 | |
28 | /** |
29 | * <code>IDL: [ helpstring("") ]</code> |
30 | * |
31 | * @param ppvObject |
32 | * <code>IDL: [in] _Connection*</code> |
33 | */ |
34 | public void setrefActiveConnection( |
35 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection ppvObject); |
36 | |
37 | /** |
38 | * <code>IDL: [ helpstring("") ]</code> |
39 | * |
40 | * @param ppvObject |
41 | * <code>IDL: [in] VARIANT</code> |
42 | */ |
43 | public void setActiveConnection( |
44 | /*[in]*/ Object ppvObject); |
45 | |
46 | /** |
47 | * <code>IDL: [ helpstring("") ]</code> |
48 | * |
49 | * @return |
50 | * <code>IDL: [out] [retval] BSTR*</code> |
51 | */ |
52 | public String getCommandText(); |
53 | |
54 | /** |
55 | * <code>IDL: [ helpstring("") ]</code> |
56 | * |
57 | * @param pbstr |
58 | * <code>IDL: [in] BSTR</code> |
59 | */ |
60 | public void setCommandText( |
61 | /*[in]*/ String pbstr); |
62 | |
63 | /** |
64 | * <code>IDL: [ helpstring("") ]</code> |
65 | * |
66 | * @return |
67 | * <code>IDL: [out] [retval] LONG*</code> |
68 | */ |
69 | public int getCommandTimeout(); |
70 | |
71 | /** |
72 | * <code>IDL: [ helpstring("") ]</code> |
73 | * |
74 | * @param pl |
75 | * <code>IDL: [in] LONG</code> |
76 | */ |
77 | public void setCommandTimeout( |
78 | /*[in]*/ int pl); |
79 | |
80 | /** |
81 | * <code>IDL: [ helpstring("") ]</code> |
82 | * |
83 | * @return |
84 | * <code>IDL: [out] [retval] VARIANT_BOOL*</code> |
85 | */ |
86 | public boolean getPrepared(); |
87 | |
88 | /** |
89 | * <code>IDL: [ helpstring("") ]</code> |
90 | * |
91 | * @param pfPrepared |
92 | * <code>IDL: [in] VARIANT_BOOL</code> |
93 | */ |
94 | public void setPrepared( |
95 | /*[in]*/ boolean pfPrepared); |
96 | |
97 | /** |
98 | * <code>IDL: [ helpstring("") ]</code> |
99 | * |
100 | * @param RecordsAffected |
101 | * <code>IDL: [out] [optional] VARIANT*</code> |
102 | * @param Parameters |
103 | * <code>IDL: [in] [optional] VARIANT*</code> |
104 | * @param Options |
105 | * <code>IDL: [in] [optional] [default] LONG</code> |
106 | * @return |
107 | * <code>IDL: [out] [retval] _Recordset**</code> |
108 | */ |
109 | public com.moesol.bindings.platform_sdk.data_services._Recordset Execute( |
110 | /*[out]*/ Object[] RecordsAffected, |
111 | /*[in]*/ Object[] Parameters, |
112 | /*[in]*/ int Options); |
113 | |
114 | /** |
115 | * <code>IDL: [ helpstring("") ]</code> |
116 | * |
117 | * @param Name |
118 | * <code>IDL: [in] [optional] [default] BSTR</code> |
119 | * @param Type |
120 | * <code>IDL: [in] [optional] [default] DataTypeEnum</code> |
121 | * @param Direction |
122 | * <code>IDL: [in] [optional] [default] ParameterDirectionEnum</code> |
123 | * @param Size |
124 | * <code>IDL: [in] [optional] [default] LONG</code> |
125 | * @param Value |
126 | * <code>IDL: [in] [optional] VARIANT</code> |
127 | * @return |
128 | * <code>IDL: [out] [retval] _Parameter**</code> |
129 | */ |
130 | public com.moesol.bindings.platform_sdk.data_services._Parameter CreateParameter( |
131 | /*[in]*/ String Name, |
132 | /*[in]*/ int Type, |
133 | /*[in]*/ int Direction, |
134 | /*[in]*/ int Size, |
135 | /*[in]*/ Object Value); |
136 | |
137 | /** [optional=1] */ |
138 | public com.moesol.bindings.platform_sdk.data_services._Parameter CreateParameter( |
139 | /*[in]*/ String Name, |
140 | /*[in]*/ int Type, |
141 | /*[in]*/ int Direction, |
142 | /*[in]*/ int Size); |
143 | |
144 | /** |
145 | * <code>IDL: [ helpstring("") ]</code> |
146 | * |
147 | * @return |
148 | * <code>IDL: [out] [retval] Parameters**</code> |
149 | */ |
150 | public com.moesol.bindings.platform_sdk.data_services.Parameters getParameters(); |
151 | |
152 | /** |
153 | * <code>IDL: [ helpstring("") ]</code> |
154 | * |
155 | * @param plCmdType |
156 | * <code>IDL: [in] CommandTypeEnum</code> |
157 | */ |
158 | public void setCommandType( |
159 | /*[in]*/ int plCmdType); |
160 | |
161 | /** |
162 | * <code>IDL: [ helpstring("") ]</code> |
163 | * |
164 | * @return |
165 | * <code>IDL: [out] [retval] CommandTypeEnum*</code> |
166 | */ |
167 | public int getCommandType(); |
168 | |
169 | /** |
170 | * <code>IDL: [ helpstring("") ]</code> |
171 | * |
172 | * @return |
173 | * <code>IDL: [out] [retval] BSTR*</code> |
174 | */ |
175 | public String getName(); |
176 | |
177 | /** |
178 | * <code>IDL: [ helpstring("") ]</code> |
179 | * |
180 | * @param pbstrName |
181 | * <code>IDL: [in] BSTR</code> |
182 | */ |
183 | public void setName( |
184 | /*[in]*/ String pbstrName); |
185 | |
186 | |
187 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
188 | public static class Jni extends com.moesol.bindings.platform_sdk.data_services._ADO.Jni implements Command15 { |
189 | |
190 | protected Jni () { |
191 | } |
192 | |
193 | |
194 | private native com.moesol.bindings.platform_sdk.data_services._Connection jni_getActiveConnection(); |
195 | public com.moesol.bindings.platform_sdk.data_services._Connection getActiveConnection() { |
196 | |
197 | return jni_getActiveConnection(); |
198 | } |
199 | |
200 | private native void jni_setrefActiveConnection( |
201 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection p0); |
202 | public void setrefActiveConnection( |
203 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Connection p0) { |
204 | |
205 | jni_setrefActiveConnection(p0); |
206 | } |
207 | |
208 | private native void jni_setActiveConnection( |
209 | /*[in]*/ Object p0); |
210 | public void setActiveConnection( |
211 | /*[in]*/ Object p0) { |
212 | |
213 | jni_setActiveConnection(p0); |
214 | } |
215 | |
216 | private native String jni_getCommandText(); |
217 | public String getCommandText() { |
218 | |
219 | return jni_getCommandText(); |
220 | } |
221 | |
222 | private native void jni_setCommandText( |
223 | /*[in]*/ String p0); |
224 | public void setCommandText( |
225 | /*[in]*/ String p0) { |
226 | |
227 | jni_setCommandText(p0); |
228 | } |
229 | |
230 | private native int jni_getCommandTimeout(); |
231 | public int getCommandTimeout() { |
232 | |
233 | return jni_getCommandTimeout(); |
234 | } |
235 | |
236 | private native void jni_setCommandTimeout( |
237 | /*[in]*/ int p0); |
238 | public void setCommandTimeout( |
239 | /*[in]*/ int p0) { |
240 | |
241 | jni_setCommandTimeout(p0); |
242 | } |
243 | |
244 | private native boolean jni_getPrepared(); |
245 | public boolean getPrepared() { |
246 | |
247 | return jni_getPrepared(); |
248 | } |
249 | |
250 | private native void jni_setPrepared( |
251 | /*[in]*/ boolean p0); |
252 | public void setPrepared( |
253 | /*[in]*/ boolean p0) { |
254 | |
255 | jni_setPrepared(p0); |
256 | } |
257 | |
258 | private native com.moesol.bindings.platform_sdk.data_services._Recordset jni_Execute( |
259 | /*[out]*/ Object[] p0, |
260 | /*[in]*/ Object[] p1, |
261 | /*[in]*/ int p2); |
262 | public com.moesol.bindings.platform_sdk.data_services._Recordset Execute( |
263 | /*[out]*/ Object[] p0, |
264 | /*[in]*/ Object[] p1, |
265 | /*[in]*/ int p2) { |
266 | |
267 | return jni_Execute(p0, p1, p2); |
268 | } |
269 | |
270 | private native com.moesol.bindings.platform_sdk.data_services._Parameter jni_CreateParameter( |
271 | /*[in]*/ String p0, |
272 | /*[in]*/ int p1, |
273 | /*[in]*/ int p2, |
274 | /*[in]*/ int p3, |
275 | /*[in]*/ Object p4); |
276 | public com.moesol.bindings.platform_sdk.data_services._Parameter CreateParameter( |
277 | /*[in]*/ String p0, |
278 | /*[in]*/ int p1, |
279 | /*[in]*/ int p2, |
280 | /*[in]*/ int p3, |
281 | /*[in]*/ Object p4) { |
282 | |
283 | return jni_CreateParameter(p0, p1, p2, p3, p4); |
284 | } |
285 | |
286 | /** [optional=1] */ |
287 | public com.moesol.bindings.platform_sdk.data_services._Parameter CreateParameter( |
288 | /*[in]*/ String p0, |
289 | /*[in]*/ int p1, |
290 | /*[in]*/ int p2, |
291 | /*[in]*/ int p3) { |
292 | |
293 | return CreateParameter(p0, p1, p2, p3, null); |
294 | } |
295 | private native com.moesol.bindings.platform_sdk.data_services.Parameters jni_getParameters(); |
296 | public com.moesol.bindings.platform_sdk.data_services.Parameters getParameters() { |
297 | |
298 | return jni_getParameters(); |
299 | } |
300 | |
301 | private native void jni_setCommandType( |
302 | /*[in]*/ int p0); |
303 | public void setCommandType( |
304 | /*[in]*/ int p0) { |
305 | |
306 | jni_setCommandType(p0); |
307 | } |
308 | |
309 | private native int jni_getCommandType(); |
310 | public int getCommandType() { |
311 | |
312 | return jni_getCommandType(); |
313 | } |
314 | |
315 | private native String jni_getName(); |
316 | public String getName() { |
317 | |
318 | return jni_getName(); |
319 | } |
320 | |
321 | private native void jni_setName( |
322 | /*[in]*/ String p0); |
323 | public void setName( |
324 | /*[in]*/ String p0) { |
325 | |
326 | jni_setName(p0); |
327 | } |
328 | |
329 | } |
330 | |
331 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
332 | public static class Disp extends com.moesol.bindings.platform_sdk.data_services._ADO.Disp { |
333 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
334 | return s_instance; |
335 | } |
336 | |
337 | private static Disp s_instance = new Disp(); |
338 | |
339 | protected Disp() { |
340 | addEntry(1, (short)2, "getActiveConnection", "()Lcom/moesol/bindings/platform_sdk/data_services/_Connection;"); |
341 | addEntry(1, (short)8, "setrefActiveConnection", "(Lcom/moesol/bindings/platform_sdk/data_services/_Connection;)V"); |
342 | addEntry(1, (short)4, "setActiveConnection", "(Ljava/lang/Object;)V"); |
343 | addEntry(2, (short)2, "getCommandText", "()Ljava/lang/String;"); |
344 | addEntry(2, (short)4, "setCommandText", "(Ljava/lang/String;)V"); |
345 | addEntry(3, (short)2, "getCommandTimeout", "()I"); |
346 | addEntry(3, (short)4, "setCommandTimeout", "(I)V"); |
347 | addEntry(4, (short)2, "getPrepared", "()Z"); |
348 | addEntry(4, (short)4, "setPrepared", "(Z)V"); |
349 | addEntry(5, (short)1, "Execute", "([Ljava/lang/Object;[Ljava/lang/Object;I)Lcom/moesol/bindings/platform_sdk/data_services/_Recordset;"); |
350 | addEntry(6, (short)1, "CreateParameter", "(Ljava/lang/String;IIILjava/lang/Object;)Lcom/moesol/bindings/platform_sdk/data_services/_Parameter;"); |
351 | addEntry(0, (short)2, "getParameters", "()Lcom/moesol/bindings/platform_sdk/data_services/Parameters;"); |
352 | addEntry(7, (short)4, "setCommandType", "(I)V"); |
353 | addEntry(7, (short)2, "getCommandType", "()I"); |
354 | addEntry(8, (short)2, "getName", "()Ljava/lang/String;"); |
355 | addEntry(8, (short)4, "setName", "(Ljava/lang/String;)V"); |
356 | } |
357 | } |
358 | } |