| 1 | // tlb2java |
| 2 | package com.moesol.bindings.microsoft.dao; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * <code>IDL: [ helpstring(""), dual, nonextensible, oleautomation, dispatchable ] interface</code> |
| 7 | */ |
| 8 | public interface Workspace extends com.moesol.bindings.microsoft.dao._DAO { |
| 9 | public static final Class TYPELIB = TYPELIB_00025E01_0000_0000_C000_000000000046.class; |
| 10 | /** |
| 11 | * <code>IDL: [uuid(00000039-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 | 0x00000039, (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 getName(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @param pbstr |
| 32 | * <code>IDL: [in] BSTR</code> |
| 33 | */ |
| 34 | public void setName( |
| 35 | /*[in]*/ String pbstr); |
| 36 | |
| 37 | /** |
| 38 | * <code>IDL: [ helpstring("") ]</code> |
| 39 | * |
| 40 | * @return |
| 41 | * <code>IDL: [out] [retval] BSTR*</code> |
| 42 | */ |
| 43 | public String getUserName(); |
| 44 | |
| 45 | /** |
| 46 | * <code>IDL: [ helpstring("") ]</code> |
| 47 | * |
| 48 | * @return |
| 49 | * <code>IDL: [out] [retval] SHORT*</code> |
| 50 | */ |
| 51 | public short getIsolateODBCTrans(); |
| 52 | |
| 53 | /** |
| 54 | * <code>IDL: [ helpstring("") ]</code> |
| 55 | * |
| 56 | * @param ps |
| 57 | * <code>IDL: [in] SHORT</code> |
| 58 | */ |
| 59 | public void setIsolateODBCTrans( |
| 60 | /*[in]*/ short ps); |
| 61 | |
| 62 | /** |
| 63 | * <code>IDL: [ helpstring("") ]</code> |
| 64 | * |
| 65 | * @return |
| 66 | * <code>IDL: [out] [retval] Databases**</code> |
| 67 | */ |
| 68 | public com.moesol.bindings.microsoft.dao.Databases getDatabases(); |
| 69 | |
| 70 | /** |
| 71 | * <code>IDL: [ helpstring("") ]</code> |
| 72 | * |
| 73 | * @return |
| 74 | * <code>IDL: [out] [retval] Users**</code> |
| 75 | */ |
| 76 | public com.moesol.bindings.microsoft.dao.Users getUsers(); |
| 77 | |
| 78 | /** |
| 79 | * <code>IDL: [ helpstring("") ]</code> |
| 80 | * |
| 81 | * @return |
| 82 | * <code>IDL: [out] [retval] Groups**</code> |
| 83 | */ |
| 84 | public com.moesol.bindings.microsoft.dao.Groups getGroups(); |
| 85 | |
| 86 | /** |
| 87 | * <code>IDL: [ helpstring("") ]</code> |
| 88 | * |
| 89 | */ |
| 90 | public void BeginTrans(); |
| 91 | |
| 92 | /** |
| 93 | * <code>IDL: [ helpstring("") ]</code> |
| 94 | * |
| 95 | * @param Options |
| 96 | * <code>IDL: [in] [optional] [default] LONG</code> |
| 97 | */ |
| 98 | public void CommitTrans( |
| 99 | /*[in]*/ int Options); |
| 100 | |
| 101 | /** |
| 102 | * <code>IDL: [ helpstring("") ]</code> |
| 103 | * |
| 104 | */ |
| 105 | public void Close(); |
| 106 | |
| 107 | /** |
| 108 | * <code>IDL: [ helpstring("") ]</code> |
| 109 | * |
| 110 | */ |
| 111 | public void Rollback(); |
| 112 | |
| 113 | /** |
| 114 | * <code>IDL: [ helpstring("") ]</code> |
| 115 | * |
| 116 | * @param Name |
| 117 | * <code>IDL: [in] BSTR</code> |
| 118 | * @param Options |
| 119 | * <code>IDL: [in] [optional] VARIANT</code> |
| 120 | * @param ReadOnly |
| 121 | * <code>IDL: [in] [optional] VARIANT</code> |
| 122 | * @param Connect |
| 123 | * <code>IDL: [in] [optional] VARIANT</code> |
| 124 | * @return |
| 125 | * <code>IDL: [out] [retval] Database**</code> |
| 126 | */ |
| 127 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 128 | /*[in]*/ String Name, |
| 129 | /*[in]*/ Object Options, |
| 130 | /*[in]*/ Object ReadOnly, |
| 131 | /*[in]*/ Object Connect); |
| 132 | |
| 133 | /** [optional=1] */ |
| 134 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 135 | /*[in]*/ String Name, |
| 136 | /*[in]*/ Object Options, |
| 137 | /*[in]*/ Object ReadOnly); |
| 138 | |
| 139 | /** [optional=2] */ |
| 140 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 141 | /*[in]*/ String Name, |
| 142 | /*[in]*/ Object Options); |
| 143 | |
| 144 | /** [optional=3] */ |
| 145 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 146 | /*[in]*/ String Name); |
| 147 | |
| 148 | /** |
| 149 | * <code>IDL: [ helpstring("") ]</code> |
| 150 | * |
| 151 | * @param Name |
| 152 | * <code>IDL: [in] BSTR</code> |
| 153 | * @param Connect |
| 154 | * <code>IDL: [in] BSTR</code> |
| 155 | * @param Option |
| 156 | * <code>IDL: [in] [optional] VARIANT</code> |
| 157 | * @return |
| 158 | * <code>IDL: [out] [retval] Database**</code> |
| 159 | */ |
| 160 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 161 | /*[in]*/ String Name, |
| 162 | /*[in]*/ String Connect, |
| 163 | /*[in]*/ Object Option); |
| 164 | |
| 165 | /** [optional=1] */ |
| 166 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 167 | /*[in]*/ String Name, |
| 168 | /*[in]*/ String Connect); |
| 169 | |
| 170 | /** |
| 171 | * <code>IDL: [ helpstring("") ]</code> |
| 172 | * |
| 173 | * @param Name |
| 174 | * <code>IDL: [in] [optional] VARIANT</code> |
| 175 | * @param PID |
| 176 | * <code>IDL: [in] [optional] VARIANT</code> |
| 177 | * @param Password |
| 178 | * <code>IDL: [in] [optional] VARIANT</code> |
| 179 | * @return |
| 180 | * <code>IDL: [out] [retval] User**</code> |
| 181 | */ |
| 182 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 183 | /*[in]*/ Object Name, |
| 184 | /*[in]*/ Object PID, |
| 185 | /*[in]*/ Object Password); |
| 186 | |
| 187 | /** [optional=1] */ |
| 188 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 189 | /*[in]*/ Object Name, |
| 190 | /*[in]*/ Object PID); |
| 191 | |
| 192 | /** [optional=2] */ |
| 193 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 194 | /*[in]*/ Object Name); |
| 195 | |
| 196 | /** [optional=3] */ |
| 197 | public com.moesol.bindings.microsoft.dao.User CreateUser(); |
| 198 | |
| 199 | /** |
| 200 | * <code>IDL: [ helpstring("") ]</code> |
| 201 | * |
| 202 | * @param Name |
| 203 | * <code>IDL: [in] [optional] VARIANT</code> |
| 204 | * @param PID |
| 205 | * <code>IDL: [in] [optional] VARIANT</code> |
| 206 | * @return |
| 207 | * <code>IDL: [out] [retval] Group**</code> |
| 208 | */ |
| 209 | public com.moesol.bindings.microsoft.dao.Group CreateGroup( |
| 210 | /*[in]*/ Object Name, |
| 211 | /*[in]*/ Object PID); |
| 212 | |
| 213 | /** [optional=1] */ |
| 214 | public com.moesol.bindings.microsoft.dao.Group CreateGroup( |
| 215 | /*[in]*/ Object Name); |
| 216 | |
| 217 | /** [optional=2] */ |
| 218 | public com.moesol.bindings.microsoft.dao.Group CreateGroup(); |
| 219 | |
| 220 | /** |
| 221 | * <code>IDL: [ helpstring("") ]</code> |
| 222 | * |
| 223 | * @param Name |
| 224 | * <code>IDL: [in] BSTR</code> |
| 225 | * @param Options |
| 226 | * <code>IDL: [in] [optional] VARIANT</code> |
| 227 | * @param ReadOnly |
| 228 | * <code>IDL: [in] [optional] VARIANT</code> |
| 229 | * @param Connect |
| 230 | * <code>IDL: [in] [optional] VARIANT</code> |
| 231 | * @return |
| 232 | * <code>IDL: [out] [retval] Connection**</code> |
| 233 | */ |
| 234 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 235 | /*[in]*/ String Name, |
| 236 | /*[in]*/ Object Options, |
| 237 | /*[in]*/ Object ReadOnly, |
| 238 | /*[in]*/ Object Connect); |
| 239 | |
| 240 | /** [optional=1] */ |
| 241 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 242 | /*[in]*/ String Name, |
| 243 | /*[in]*/ Object Options, |
| 244 | /*[in]*/ Object ReadOnly); |
| 245 | |
| 246 | /** [optional=2] */ |
| 247 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 248 | /*[in]*/ String Name, |
| 249 | /*[in]*/ Object Options); |
| 250 | |
| 251 | /** [optional=3] */ |
| 252 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 253 | /*[in]*/ String Name); |
| 254 | |
| 255 | /** |
| 256 | * <code>IDL: [ helpstring("") ]</code> |
| 257 | * |
| 258 | * @return |
| 259 | * <code>IDL: [out] [retval] LONG*</code> |
| 260 | */ |
| 261 | public int getLoginTimeout(); |
| 262 | |
| 263 | /** |
| 264 | * <code>IDL: [ helpstring("") ]</code> |
| 265 | * |
| 266 | * @param pTimeout |
| 267 | * <code>IDL: [in] LONG</code> |
| 268 | */ |
| 269 | public void setLoginTimeout( |
| 270 | /*[in]*/ int pTimeout); |
| 271 | |
| 272 | /** |
| 273 | * <code>IDL: [ helpstring("") ]</code> |
| 274 | * |
| 275 | * @return |
| 276 | * <code>IDL: [out] [retval] LONG*</code> |
| 277 | */ |
| 278 | public int getDefaultCursorDriver(); |
| 279 | |
| 280 | /** |
| 281 | * <code>IDL: [ helpstring("") ]</code> |
| 282 | * |
| 283 | * @param pCursorType |
| 284 | * <code>IDL: [in] LONG</code> |
| 285 | */ |
| 286 | public void setDefaultCursorDriver( |
| 287 | /*[in]*/ int pCursorType); |
| 288 | |
| 289 | /** |
| 290 | * <code>IDL: [ helpstring("") ]</code> |
| 291 | * |
| 292 | * @return |
| 293 | * <code>IDL: [out] [retval] LONG*</code> |
| 294 | */ |
| 295 | public int gethEnv(); |
| 296 | |
| 297 | /** |
| 298 | * <code>IDL: [ helpstring("") ]</code> |
| 299 | * |
| 300 | * @return |
| 301 | * <code>IDL: [out] [retval] LONG*</code> |
| 302 | */ |
| 303 | public int getType(); |
| 304 | |
| 305 | /** |
| 306 | * <code>IDL: [ helpstring("") ]</code> |
| 307 | * |
| 308 | * @return |
| 309 | * <code>IDL: [out] [retval] Connections**</code> |
| 310 | */ |
| 311 | public com.moesol.bindings.microsoft.dao.Connections getConnections(); |
| 312 | |
| 313 | |
| 314 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 315 | public static class Jni extends com.moesol.bindings.microsoft.dao._DAO.Jni implements Workspace { |
| 316 | |
| 317 | protected Jni () { |
| 318 | } |
| 319 | protected void internalOnSetInterface() { |
| 320 | MoeSolInternal.recordApartment(this); |
| 321 | } |
| 322 | |
| 323 | |
| 324 | private native String jni_getName(); |
| 325 | public String getName() { |
| 326 | |
| 327 | MoeSolInternal.checkApartment(this); |
| 328 | return jni_getName(); |
| 329 | } |
| 330 | |
| 331 | private native void jni_setName( |
| 332 | /*[in]*/ String p0); |
| 333 | public void setName( |
| 334 | /*[in]*/ String p0) { |
| 335 | |
| 336 | MoeSolInternal.checkApartment(this); |
| 337 | jni_setName(p0); |
| 338 | } |
| 339 | |
| 340 | private native String jni_getUserName(); |
| 341 | public String getUserName() { |
| 342 | |
| 343 | MoeSolInternal.checkApartment(this); |
| 344 | return jni_getUserName(); |
| 345 | } |
| 346 | |
| 347 | private native short jni_getIsolateODBCTrans(); |
| 348 | public short getIsolateODBCTrans() { |
| 349 | |
| 350 | MoeSolInternal.checkApartment(this); |
| 351 | return jni_getIsolateODBCTrans(); |
| 352 | } |
| 353 | |
| 354 | private native void jni_setIsolateODBCTrans( |
| 355 | /*[in]*/ short p0); |
| 356 | public void setIsolateODBCTrans( |
| 357 | /*[in]*/ short p0) { |
| 358 | |
| 359 | MoeSolInternal.checkApartment(this); |
| 360 | jni_setIsolateODBCTrans(p0); |
| 361 | } |
| 362 | |
| 363 | private native com.moesol.bindings.microsoft.dao.Databases jni_getDatabases(); |
| 364 | public com.moesol.bindings.microsoft.dao.Databases getDatabases() { |
| 365 | |
| 366 | MoeSolInternal.checkApartment(this); |
| 367 | return jni_getDatabases(); |
| 368 | } |
| 369 | |
| 370 | private native com.moesol.bindings.microsoft.dao.Users jni_getUsers(); |
| 371 | public com.moesol.bindings.microsoft.dao.Users getUsers() { |
| 372 | |
| 373 | MoeSolInternal.checkApartment(this); |
| 374 | return jni_getUsers(); |
| 375 | } |
| 376 | |
| 377 | private native com.moesol.bindings.microsoft.dao.Groups jni_getGroups(); |
| 378 | public com.moesol.bindings.microsoft.dao.Groups getGroups() { |
| 379 | |
| 380 | MoeSolInternal.checkApartment(this); |
| 381 | return jni_getGroups(); |
| 382 | } |
| 383 | |
| 384 | private native void jni_BeginTrans(); |
| 385 | public void BeginTrans() { |
| 386 | |
| 387 | MoeSolInternal.checkApartment(this); |
| 388 | jni_BeginTrans(); |
| 389 | } |
| 390 | |
| 391 | private native void jni_CommitTrans( |
| 392 | /*[in]*/ int p0); |
| 393 | public void CommitTrans( |
| 394 | /*[in]*/ int p0) { |
| 395 | |
| 396 | MoeSolInternal.checkApartment(this); |
| 397 | jni_CommitTrans(p0); |
| 398 | } |
| 399 | |
| 400 | private native void jni_Close(); |
| 401 | public void Close() { |
| 402 | |
| 403 | MoeSolInternal.checkApartment(this); |
| 404 | jni_Close(); |
| 405 | } |
| 406 | |
| 407 | private native void jni_Rollback(); |
| 408 | public void Rollback() { |
| 409 | |
| 410 | MoeSolInternal.checkApartment(this); |
| 411 | jni_Rollback(); |
| 412 | } |
| 413 | |
| 414 | private native com.moesol.bindings.microsoft.dao.Database jni_OpenDatabase( |
| 415 | /*[in]*/ String p0, |
| 416 | /*[in]*/ Object p1, |
| 417 | /*[in]*/ Object p2, |
| 418 | /*[in]*/ Object p3); |
| 419 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 420 | /*[in]*/ String p0, |
| 421 | /*[in]*/ Object p1, |
| 422 | /*[in]*/ Object p2, |
| 423 | /*[in]*/ Object p3) { |
| 424 | |
| 425 | MoeSolInternal.checkApartment(this); |
| 426 | return jni_OpenDatabase(p0, p1, p2, p3); |
| 427 | } |
| 428 | |
| 429 | /** [optional=1] */ |
| 430 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 431 | /*[in]*/ String p0, |
| 432 | /*[in]*/ Object p1, |
| 433 | /*[in]*/ Object p2) { |
| 434 | |
| 435 | return OpenDatabase(p0, p1, p2, null); |
| 436 | } |
| 437 | /** [optional=2] */ |
| 438 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 439 | /*[in]*/ String p0, |
| 440 | /*[in]*/ Object p1) { |
| 441 | |
| 442 | return OpenDatabase(p0, p1, null, null); |
| 443 | } |
| 444 | /** [optional=3] */ |
| 445 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 446 | /*[in]*/ String p0) { |
| 447 | |
| 448 | return OpenDatabase(p0, null, null, null); |
| 449 | } |
| 450 | private native com.moesol.bindings.microsoft.dao.Database jni_CreateDatabase( |
| 451 | /*[in]*/ String p0, |
| 452 | /*[in]*/ String p1, |
| 453 | /*[in]*/ Object p2); |
| 454 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 455 | /*[in]*/ String p0, |
| 456 | /*[in]*/ String p1, |
| 457 | /*[in]*/ Object p2) { |
| 458 | |
| 459 | MoeSolInternal.checkApartment(this); |
| 460 | return jni_CreateDatabase(p0, p1, p2); |
| 461 | } |
| 462 | |
| 463 | /** [optional=1] */ |
| 464 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 465 | /*[in]*/ String p0, |
| 466 | /*[in]*/ String p1) { |
| 467 | |
| 468 | return CreateDatabase(p0, p1, null); |
| 469 | } |
| 470 | private native com.moesol.bindings.microsoft.dao.User jni_CreateUser( |
| 471 | /*[in]*/ Object p0, |
| 472 | /*[in]*/ Object p1, |
| 473 | /*[in]*/ Object p2); |
| 474 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 475 | /*[in]*/ Object p0, |
| 476 | /*[in]*/ Object p1, |
| 477 | /*[in]*/ Object p2) { |
| 478 | |
| 479 | MoeSolInternal.checkApartment(this); |
| 480 | return jni_CreateUser(p0, p1, p2); |
| 481 | } |
| 482 | |
| 483 | /** [optional=1] */ |
| 484 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 485 | /*[in]*/ Object p0, |
| 486 | /*[in]*/ Object p1) { |
| 487 | |
| 488 | return CreateUser(p0, p1, null); |
| 489 | } |
| 490 | /** [optional=2] */ |
| 491 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 492 | /*[in]*/ Object p0) { |
| 493 | |
| 494 | return CreateUser(p0, null, null); |
| 495 | } |
| 496 | /** [optional=3] */ |
| 497 | public com.moesol.bindings.microsoft.dao.User CreateUser() { |
| 498 | |
| 499 | return CreateUser(null, null, null); |
| 500 | } |
| 501 | private native com.moesol.bindings.microsoft.dao.Group jni_CreateGroup( |
| 502 | /*[in]*/ Object p0, |
| 503 | /*[in]*/ Object p1); |
| 504 | public com.moesol.bindings.microsoft.dao.Group CreateGroup( |
| 505 | /*[in]*/ Object p0, |
| 506 | /*[in]*/ Object p1) { |
| 507 | |
| 508 | MoeSolInternal.checkApartment(this); |
| 509 | return jni_CreateGroup(p0, p1); |
| 510 | } |
| 511 | |
| 512 | /** [optional=1] */ |
| 513 | public com.moesol.bindings.microsoft.dao.Group CreateGroup( |
| 514 | /*[in]*/ Object p0) { |
| 515 | |
| 516 | return CreateGroup(p0, null); |
| 517 | } |
| 518 | /** [optional=2] */ |
| 519 | public com.moesol.bindings.microsoft.dao.Group CreateGroup() { |
| 520 | |
| 521 | return CreateGroup(null, null); |
| 522 | } |
| 523 | private native com.moesol.bindings.microsoft.dao.Connection jni_OpenConnection( |
| 524 | /*[in]*/ String p0, |
| 525 | /*[in]*/ Object p1, |
| 526 | /*[in]*/ Object p2, |
| 527 | /*[in]*/ Object p3); |
| 528 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 529 | /*[in]*/ String p0, |
| 530 | /*[in]*/ Object p1, |
| 531 | /*[in]*/ Object p2, |
| 532 | /*[in]*/ Object p3) { |
| 533 | |
| 534 | MoeSolInternal.checkApartment(this); |
| 535 | return jni_OpenConnection(p0, p1, p2, p3); |
| 536 | } |
| 537 | |
| 538 | /** [optional=1] */ |
| 539 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 540 | /*[in]*/ String p0, |
| 541 | /*[in]*/ Object p1, |
| 542 | /*[in]*/ Object p2) { |
| 543 | |
| 544 | return OpenConnection(p0, p1, p2, null); |
| 545 | } |
| 546 | /** [optional=2] */ |
| 547 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 548 | /*[in]*/ String p0, |
| 549 | /*[in]*/ Object p1) { |
| 550 | |
| 551 | return OpenConnection(p0, p1, null, null); |
| 552 | } |
| 553 | /** [optional=3] */ |
| 554 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 555 | /*[in]*/ String p0) { |
| 556 | |
| 557 | return OpenConnection(p0, null, null, null); |
| 558 | } |
| 559 | private native int jni_getLoginTimeout(); |
| 560 | public int getLoginTimeout() { |
| 561 | |
| 562 | MoeSolInternal.checkApartment(this); |
| 563 | return jni_getLoginTimeout(); |
| 564 | } |
| 565 | |
| 566 | private native void jni_setLoginTimeout( |
| 567 | /*[in]*/ int p0); |
| 568 | public void setLoginTimeout( |
| 569 | /*[in]*/ int p0) { |
| 570 | |
| 571 | MoeSolInternal.checkApartment(this); |
| 572 | jni_setLoginTimeout(p0); |
| 573 | } |
| 574 | |
| 575 | private native int jni_getDefaultCursorDriver(); |
| 576 | public int getDefaultCursorDriver() { |
| 577 | |
| 578 | MoeSolInternal.checkApartment(this); |
| 579 | return jni_getDefaultCursorDriver(); |
| 580 | } |
| 581 | |
| 582 | private native void jni_setDefaultCursorDriver( |
| 583 | /*[in]*/ int p0); |
| 584 | public void setDefaultCursorDriver( |
| 585 | /*[in]*/ int p0) { |
| 586 | |
| 587 | MoeSolInternal.checkApartment(this); |
| 588 | jni_setDefaultCursorDriver(p0); |
| 589 | } |
| 590 | |
| 591 | private native int jni_gethEnv(); |
| 592 | public int gethEnv() { |
| 593 | |
| 594 | MoeSolInternal.checkApartment(this); |
| 595 | return jni_gethEnv(); |
| 596 | } |
| 597 | |
| 598 | private native int jni_getType(); |
| 599 | public int getType() { |
| 600 | |
| 601 | MoeSolInternal.checkApartment(this); |
| 602 | return jni_getType(); |
| 603 | } |
| 604 | |
| 605 | private native com.moesol.bindings.microsoft.dao.Connections jni_getConnections(); |
| 606 | public com.moesol.bindings.microsoft.dao.Connections getConnections() { |
| 607 | |
| 608 | MoeSolInternal.checkApartment(this); |
| 609 | return jni_getConnections(); |
| 610 | } |
| 611 | |
| 612 | } |
| 613 | |
| 614 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 615 | public static class Disp extends com.moesol.bindings.microsoft.dao._DAO.Disp { |
| 616 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 617 | return s_instance; |
| 618 | } |
| 619 | |
| 620 | private static Disp s_instance = new Disp(); |
| 621 | |
| 622 | protected Disp() { |
| 623 | addEntry(1610809344, (short)2, "getName", "()Ljava/lang/String;"); |
| 624 | addEntry(1610809344, (short)4, "setName", "(Ljava/lang/String;)V"); |
| 625 | addEntry(1610809346, (short)2, "getUserName", "()Ljava/lang/String;"); |
| 626 | addEntry(1610809347, (short)4, "set_30_UserName", "(Ljava/lang/String;)V"); |
| 627 | addEntry(1610809348, (short)4, "set_30_Password", "(Ljava/lang/String;)V"); |
| 628 | addEntry(1610809349, (short)2, "getIsolateODBCTrans", "()S"); |
| 629 | addEntry(1610809349, (short)4, "setIsolateODBCTrans", "(S)V"); |
| 630 | addEntry(0, (short)2, "getDatabases", "()Lcom/moesol/bindings/microsoft/dao/Databases;"); |
| 631 | addEntry(1610809352, (short)2, "getUsers", "()Lcom/moesol/bindings/microsoft/dao/Users;"); |
| 632 | addEntry(1610809353, (short)2, "getGroups", "()Lcom/moesol/bindings/microsoft/dao/Groups;"); |
| 633 | addEntry(1610809354, (short)1, "BeginTrans", "()V"); |
| 634 | addEntry(1610809355, (short)1, "CommitTrans", "(I)V"); |
| 635 | addEntry(1610809356, (short)1, "Close", "()V"); |
| 636 | addEntry(1610809357, (short)1, "Rollback", "()V"); |
| 637 | addEntry(1610809358, (short)1, "OpenDatabase", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Database;"); |
| 638 | addEntry(1610809359, (short)1, "CreateDatabase", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Database;"); |
| 639 | addEntry(1610809360, (short)1, "CreateUser", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/User;"); |
| 640 | addEntry(1610809361, (short)1, "CreateGroup", "(Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Group;"); |
| 641 | addEntry(1610809362, (short)1, "OpenConnection", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Connection;"); |
| 642 | addEntry(1610809363, (short)2, "getLoginTimeout", "()I"); |
| 643 | addEntry(1610809363, (short)4, "setLoginTimeout", "(I)V"); |
| 644 | addEntry(1610809365, (short)2, "getDefaultCursorDriver", "()I"); |
| 645 | addEntry(1610809365, (short)4, "setDefaultCursorDriver", "(I)V"); |
| 646 | addEntry(1610809367, (short)2, "gethEnv", "()I"); |
| 647 | addEntry(1610809368, (short)2, "getType", "()I"); |
| 648 | addEntry(1610809369, (short)2, "getConnections", "()Lcom/moesol/bindings/microsoft/dao/Connections;"); |
| 649 | } |
| 650 | } |
| 651 | } |