| 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 _DBEngine 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(00000021-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 | 0x00000021, (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 getVersion(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @return |
| 32 | * <code>IDL: [out] [retval] BSTR*</code> |
| 33 | */ |
| 34 | public String getIniPath(); |
| 35 | |
| 36 | /** |
| 37 | * <code>IDL: [ helpstring("") ]</code> |
| 38 | * |
| 39 | * @param pbstr |
| 40 | * <code>IDL: [in] BSTR</code> |
| 41 | */ |
| 42 | public void setIniPath( |
| 43 | /*[in]*/ String pbstr); |
| 44 | |
| 45 | /** |
| 46 | * <code>IDL: [ helpstring("") ]</code> |
| 47 | * |
| 48 | * @param rhs |
| 49 | * <code>IDL: [in] BSTR</code> |
| 50 | */ |
| 51 | public void setDefaultUser( |
| 52 | /*[in]*/ String rhs); |
| 53 | |
| 54 | /** |
| 55 | * <code>IDL: [ helpstring("") ]</code> |
| 56 | * |
| 57 | * @param rhs |
| 58 | * <code>IDL: [in] BSTR</code> |
| 59 | */ |
| 60 | public void setDefaultPassword( |
| 61 | /*[in]*/ String rhs); |
| 62 | |
| 63 | /** |
| 64 | * <code>IDL: [ helpstring("") ]</code> |
| 65 | * |
| 66 | * @return |
| 67 | * <code>IDL: [out] [retval] SHORT*</code> |
| 68 | */ |
| 69 | public short getLoginTimeout(); |
| 70 | |
| 71 | /** |
| 72 | * <code>IDL: [ helpstring("") ]</code> |
| 73 | * |
| 74 | * @param ps |
| 75 | * <code>IDL: [in] SHORT</code> |
| 76 | */ |
| 77 | public void setLoginTimeout( |
| 78 | /*[in]*/ short ps); |
| 79 | |
| 80 | /** |
| 81 | * <code>IDL: [ helpstring("") ]</code> |
| 82 | * |
| 83 | * @return |
| 84 | * <code>IDL: [out] [retval] Workspaces**</code> |
| 85 | */ |
| 86 | public com.moesol.bindings.microsoft.dao.Workspaces getWorkspaces(); |
| 87 | |
| 88 | /** |
| 89 | * <code>IDL: [ helpstring("") ]</code> |
| 90 | * |
| 91 | * @return |
| 92 | * <code>IDL: [out] [retval] Errors**</code> |
| 93 | */ |
| 94 | public com.moesol.bindings.microsoft.dao.Errors getErrors(); |
| 95 | |
| 96 | /** |
| 97 | * <code>IDL: [ helpstring("") ]</code> |
| 98 | * |
| 99 | * @param Action |
| 100 | * <code>IDL: [in] [optional] VARIANT</code> |
| 101 | */ |
| 102 | public void Idle( |
| 103 | /*[in]*/ Object Action); |
| 104 | |
| 105 | /** [optional=1] */ |
| 106 | public void Idle(); |
| 107 | |
| 108 | /** |
| 109 | * <code>IDL: [ helpstring("") ]</code> |
| 110 | * |
| 111 | * @param SrcName |
| 112 | * <code>IDL: [in] BSTR</code> |
| 113 | * @param DstName |
| 114 | * <code>IDL: [in] BSTR</code> |
| 115 | * @param DstLocale |
| 116 | * <code>IDL: [in] [optional] VARIANT</code> |
| 117 | * @param Options |
| 118 | * <code>IDL: [in] [optional] VARIANT</code> |
| 119 | * @param SrcLocale |
| 120 | * <code>IDL: [in] [optional] VARIANT</code> |
| 121 | */ |
| 122 | public void CompactDatabase( |
| 123 | /*[in]*/ String SrcName, |
| 124 | /*[in]*/ String DstName, |
| 125 | /*[in]*/ Object DstLocale, |
| 126 | /*[in]*/ Object Options, |
| 127 | /*[in]*/ Object SrcLocale); |
| 128 | |
| 129 | /** [optional=1] */ |
| 130 | public void CompactDatabase( |
| 131 | /*[in]*/ String SrcName, |
| 132 | /*[in]*/ String DstName, |
| 133 | /*[in]*/ Object DstLocale, |
| 134 | /*[in]*/ Object Options); |
| 135 | |
| 136 | /** [optional=2] */ |
| 137 | public void CompactDatabase( |
| 138 | /*[in]*/ String SrcName, |
| 139 | /*[in]*/ String DstName, |
| 140 | /*[in]*/ Object DstLocale); |
| 141 | |
| 142 | /** [optional=3] */ |
| 143 | public void CompactDatabase( |
| 144 | /*[in]*/ String SrcName, |
| 145 | /*[in]*/ String DstName); |
| 146 | |
| 147 | /** |
| 148 | * <code>IDL: [ helpstring("") ]</code> |
| 149 | * |
| 150 | * @param Name |
| 151 | * <code>IDL: [in] BSTR</code> |
| 152 | */ |
| 153 | public void RepairDatabase( |
| 154 | /*[in]*/ String Name); |
| 155 | |
| 156 | /** |
| 157 | * <code>IDL: [ helpstring("") ]</code> |
| 158 | * |
| 159 | * @param Dsn |
| 160 | * <code>IDL: [in] BSTR</code> |
| 161 | * @param Driver |
| 162 | * <code>IDL: [in] BSTR</code> |
| 163 | * @param Silent |
| 164 | * <code>IDL: [in] VARIANT_BOOL</code> |
| 165 | * @param Attributes |
| 166 | * <code>IDL: [in] BSTR</code> |
| 167 | */ |
| 168 | public void RegisterDatabase( |
| 169 | /*[in]*/ String Dsn, |
| 170 | /*[in]*/ String Driver, |
| 171 | /*[in]*/ boolean Silent, |
| 172 | /*[in]*/ String Attributes); |
| 173 | |
| 174 | /** |
| 175 | * <code>IDL: [ helpstring("") ]</code> |
| 176 | * |
| 177 | * @param Name |
| 178 | * <code>IDL: [in] BSTR</code> |
| 179 | * @param Options |
| 180 | * <code>IDL: [in] [optional] VARIANT</code> |
| 181 | * @param ReadOnly |
| 182 | * <code>IDL: [in] [optional] VARIANT</code> |
| 183 | * @param Connect |
| 184 | * <code>IDL: [in] [optional] VARIANT</code> |
| 185 | * @return |
| 186 | * <code>IDL: [out] [retval] Database**</code> |
| 187 | */ |
| 188 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 189 | /*[in]*/ String Name, |
| 190 | /*[in]*/ Object Options, |
| 191 | /*[in]*/ Object ReadOnly, |
| 192 | /*[in]*/ Object Connect); |
| 193 | |
| 194 | /** [optional=1] */ |
| 195 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 196 | /*[in]*/ String Name, |
| 197 | /*[in]*/ Object Options, |
| 198 | /*[in]*/ Object ReadOnly); |
| 199 | |
| 200 | /** [optional=2] */ |
| 201 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 202 | /*[in]*/ String Name, |
| 203 | /*[in]*/ Object Options); |
| 204 | |
| 205 | /** [optional=3] */ |
| 206 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 207 | /*[in]*/ String Name); |
| 208 | |
| 209 | /** |
| 210 | * <code>IDL: [ helpstring("") ]</code> |
| 211 | * |
| 212 | * @param Name |
| 213 | * <code>IDL: [in] BSTR</code> |
| 214 | * @param Locale |
| 215 | * <code>IDL: [in] BSTR</code> |
| 216 | * @param Option |
| 217 | * <code>IDL: [in] [optional] VARIANT</code> |
| 218 | * @return |
| 219 | * <code>IDL: [out] [retval] Database**</code> |
| 220 | */ |
| 221 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 222 | /*[in]*/ String Name, |
| 223 | /*[in]*/ String Locale, |
| 224 | /*[in]*/ Object Option); |
| 225 | |
| 226 | /** [optional=1] */ |
| 227 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 228 | /*[in]*/ String Name, |
| 229 | /*[in]*/ String Locale); |
| 230 | |
| 231 | /** |
| 232 | * <code>IDL: [ helpstring("") ]</code> |
| 233 | * |
| 234 | */ |
| 235 | public void BeginTrans(); |
| 236 | |
| 237 | /** |
| 238 | * <code>IDL: [ helpstring("") ]</code> |
| 239 | * |
| 240 | * @param Option |
| 241 | * <code>IDL: [in] [optional] [default] LONG</code> |
| 242 | */ |
| 243 | public void CommitTrans( |
| 244 | /*[in]*/ int Option); |
| 245 | |
| 246 | /** |
| 247 | * <code>IDL: [ helpstring("") ]</code> |
| 248 | * |
| 249 | */ |
| 250 | public void Rollback(); |
| 251 | |
| 252 | /** |
| 253 | * <code>IDL: [ helpstring("") ]</code> |
| 254 | * |
| 255 | * @param StatNum |
| 256 | * <code>IDL: [in] LONG</code> |
| 257 | * @param Reset |
| 258 | * <code>IDL: [in] [optional] VARIANT</code> |
| 259 | * @return |
| 260 | * <code>IDL: [out] [retval] LONG*</code> |
| 261 | */ |
| 262 | public int ISAMStats( |
| 263 | /*[in]*/ int StatNum, |
| 264 | /*[in]*/ Object Reset); |
| 265 | |
| 266 | /** [optional=1] */ |
| 267 | public int ISAMStats( |
| 268 | /*[in]*/ int StatNum); |
| 269 | |
| 270 | /** |
| 271 | * <code>IDL: [ helpstring("") ]</code> |
| 272 | * |
| 273 | * @return |
| 274 | * <code>IDL: [out] [retval] BSTR*</code> |
| 275 | */ |
| 276 | public String getSystemDB(); |
| 277 | |
| 278 | /** |
| 279 | * <code>IDL: [ helpstring("") ]</code> |
| 280 | * |
| 281 | * @param pbstr |
| 282 | * <code>IDL: [in] BSTR</code> |
| 283 | */ |
| 284 | public void setSystemDB( |
| 285 | /*[in]*/ String pbstr); |
| 286 | |
| 287 | /** |
| 288 | * <code>IDL: [ helpstring("") ]</code> |
| 289 | * |
| 290 | * @param Name |
| 291 | * <code>IDL: [in] BSTR</code> |
| 292 | * @param UserName |
| 293 | * <code>IDL: [in] BSTR</code> |
| 294 | * @param Password |
| 295 | * <code>IDL: [in] BSTR</code> |
| 296 | * @param UseType |
| 297 | * <code>IDL: [in] [optional] VARIANT</code> |
| 298 | * @return |
| 299 | * <code>IDL: [out] [retval] Workspace**</code> |
| 300 | */ |
| 301 | public com.moesol.bindings.microsoft.dao.Workspace CreateWorkspace( |
| 302 | /*[in]*/ String Name, |
| 303 | /*[in]*/ String UserName, |
| 304 | /*[in]*/ String Password, |
| 305 | /*[in]*/ Object UseType); |
| 306 | |
| 307 | /** [optional=1] */ |
| 308 | public com.moesol.bindings.microsoft.dao.Workspace CreateWorkspace( |
| 309 | /*[in]*/ String Name, |
| 310 | /*[in]*/ String UserName, |
| 311 | /*[in]*/ String Password); |
| 312 | |
| 313 | /** |
| 314 | * <code>IDL: [ helpstring("") ]</code> |
| 315 | * |
| 316 | * @param Name |
| 317 | * <code>IDL: [in] BSTR</code> |
| 318 | * @param Options |
| 319 | * <code>IDL: [in] [optional] VARIANT</code> |
| 320 | * @param ReadOnly |
| 321 | * <code>IDL: [in] [optional] VARIANT</code> |
| 322 | * @param Connect |
| 323 | * <code>IDL: [in] [optional] VARIANT</code> |
| 324 | * @return |
| 325 | * <code>IDL: [out] [retval] Connection**</code> |
| 326 | */ |
| 327 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 328 | /*[in]*/ String Name, |
| 329 | /*[in]*/ Object Options, |
| 330 | /*[in]*/ Object ReadOnly, |
| 331 | /*[in]*/ Object Connect); |
| 332 | |
| 333 | /** [optional=1] */ |
| 334 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 335 | /*[in]*/ String Name, |
| 336 | /*[in]*/ Object Options, |
| 337 | /*[in]*/ Object ReadOnly); |
| 338 | |
| 339 | /** [optional=2] */ |
| 340 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 341 | /*[in]*/ String Name, |
| 342 | /*[in]*/ Object Options); |
| 343 | |
| 344 | /** [optional=3] */ |
| 345 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 346 | /*[in]*/ String Name); |
| 347 | |
| 348 | /** |
| 349 | * <code>IDL: [ helpstring("") ]</code> |
| 350 | * |
| 351 | * @return |
| 352 | * <code>IDL: [out] [retval] LONG*</code> |
| 353 | */ |
| 354 | public int getDefaultType(); |
| 355 | |
| 356 | /** |
| 357 | * <code>IDL: [ helpstring("") ]</code> |
| 358 | * |
| 359 | * @param Option |
| 360 | * <code>IDL: [in] LONG</code> |
| 361 | */ |
| 362 | public void setDefaultType( |
| 363 | /*[in]*/ int Option); |
| 364 | |
| 365 | /** |
| 366 | * <code>IDL: [ helpstring("") ]</code> |
| 367 | * |
| 368 | * @param Option |
| 369 | * <code>IDL: [in] LONG</code> |
| 370 | * @param Value |
| 371 | * <code>IDL: [in] VARIANT</code> |
| 372 | */ |
| 373 | public void SetOption( |
| 374 | /*[in]*/ int Option, |
| 375 | /*[in]*/ Object Value); |
| 376 | |
| 377 | |
| 378 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 379 | public static class Jni extends com.moesol.bindings.microsoft.dao._DAO.Jni implements _DBEngine { |
| 380 | |
| 381 | protected Jni () { |
| 382 | } |
| 383 | protected void internalOnSetInterface() { |
| 384 | MoeSolInternal.recordApartment(this); |
| 385 | } |
| 386 | |
| 387 | |
| 388 | private native String jni_getVersion(); |
| 389 | public String getVersion() { |
| 390 | |
| 391 | MoeSolInternal.checkApartment(this); |
| 392 | return jni_getVersion(); |
| 393 | } |
| 394 | |
| 395 | private native String jni_getIniPath(); |
| 396 | public String getIniPath() { |
| 397 | |
| 398 | MoeSolInternal.checkApartment(this); |
| 399 | return jni_getIniPath(); |
| 400 | } |
| 401 | |
| 402 | private native void jni_setIniPath( |
| 403 | /*[in]*/ String p0); |
| 404 | public void setIniPath( |
| 405 | /*[in]*/ String p0) { |
| 406 | |
| 407 | MoeSolInternal.checkApartment(this); |
| 408 | jni_setIniPath(p0); |
| 409 | } |
| 410 | |
| 411 | private native void jni_setDefaultUser( |
| 412 | /*[in]*/ String p0); |
| 413 | public void setDefaultUser( |
| 414 | /*[in]*/ String p0) { |
| 415 | |
| 416 | MoeSolInternal.checkApartment(this); |
| 417 | jni_setDefaultUser(p0); |
| 418 | } |
| 419 | |
| 420 | private native void jni_setDefaultPassword( |
| 421 | /*[in]*/ String p0); |
| 422 | public void setDefaultPassword( |
| 423 | /*[in]*/ String p0) { |
| 424 | |
| 425 | MoeSolInternal.checkApartment(this); |
| 426 | jni_setDefaultPassword(p0); |
| 427 | } |
| 428 | |
| 429 | private native short jni_getLoginTimeout(); |
| 430 | public short getLoginTimeout() { |
| 431 | |
| 432 | MoeSolInternal.checkApartment(this); |
| 433 | return jni_getLoginTimeout(); |
| 434 | } |
| 435 | |
| 436 | private native void jni_setLoginTimeout( |
| 437 | /*[in]*/ short p0); |
| 438 | public void setLoginTimeout( |
| 439 | /*[in]*/ short p0) { |
| 440 | |
| 441 | MoeSolInternal.checkApartment(this); |
| 442 | jni_setLoginTimeout(p0); |
| 443 | } |
| 444 | |
| 445 | private native com.moesol.bindings.microsoft.dao.Workspaces jni_getWorkspaces(); |
| 446 | public com.moesol.bindings.microsoft.dao.Workspaces getWorkspaces() { |
| 447 | |
| 448 | MoeSolInternal.checkApartment(this); |
| 449 | return jni_getWorkspaces(); |
| 450 | } |
| 451 | |
| 452 | private native com.moesol.bindings.microsoft.dao.Errors jni_getErrors(); |
| 453 | public com.moesol.bindings.microsoft.dao.Errors getErrors() { |
| 454 | |
| 455 | MoeSolInternal.checkApartment(this); |
| 456 | return jni_getErrors(); |
| 457 | } |
| 458 | |
| 459 | private native void jni_Idle( |
| 460 | /*[in]*/ Object p0); |
| 461 | public void Idle( |
| 462 | /*[in]*/ Object p0) { |
| 463 | |
| 464 | MoeSolInternal.checkApartment(this); |
| 465 | jni_Idle(p0); |
| 466 | } |
| 467 | |
| 468 | /** [optional=1] */ |
| 469 | public void Idle() { |
| 470 | |
| 471 | Idle(null); |
| 472 | } |
| 473 | private native void jni_CompactDatabase( |
| 474 | /*[in]*/ String p0, |
| 475 | /*[in]*/ String p1, |
| 476 | /*[in]*/ Object p2, |
| 477 | /*[in]*/ Object p3, |
| 478 | /*[in]*/ Object p4); |
| 479 | public void CompactDatabase( |
| 480 | /*[in]*/ String p0, |
| 481 | /*[in]*/ String p1, |
| 482 | /*[in]*/ Object p2, |
| 483 | /*[in]*/ Object p3, |
| 484 | /*[in]*/ Object p4) { |
| 485 | |
| 486 | MoeSolInternal.checkApartment(this); |
| 487 | jni_CompactDatabase(p0, p1, p2, p3, p4); |
| 488 | } |
| 489 | |
| 490 | /** [optional=1] */ |
| 491 | public void CompactDatabase( |
| 492 | /*[in]*/ String p0, |
| 493 | /*[in]*/ String p1, |
| 494 | /*[in]*/ Object p2, |
| 495 | /*[in]*/ Object p3) { |
| 496 | |
| 497 | CompactDatabase(p0, p1, p2, p3, null); |
| 498 | } |
| 499 | /** [optional=2] */ |
| 500 | public void CompactDatabase( |
| 501 | /*[in]*/ String p0, |
| 502 | /*[in]*/ String p1, |
| 503 | /*[in]*/ Object p2) { |
| 504 | |
| 505 | CompactDatabase(p0, p1, p2, null, null); |
| 506 | } |
| 507 | /** [optional=3] */ |
| 508 | public void CompactDatabase( |
| 509 | /*[in]*/ String p0, |
| 510 | /*[in]*/ String p1) { |
| 511 | |
| 512 | CompactDatabase(p0, p1, null, null, null); |
| 513 | } |
| 514 | private native void jni_RepairDatabase( |
| 515 | /*[in]*/ String p0); |
| 516 | public void RepairDatabase( |
| 517 | /*[in]*/ String p0) { |
| 518 | |
| 519 | MoeSolInternal.checkApartment(this); |
| 520 | jni_RepairDatabase(p0); |
| 521 | } |
| 522 | |
| 523 | private native void jni_RegisterDatabase( |
| 524 | /*[in]*/ String p0, |
| 525 | /*[in]*/ String p1, |
| 526 | /*[in]*/ boolean p2, |
| 527 | /*[in]*/ String p3); |
| 528 | public void RegisterDatabase( |
| 529 | /*[in]*/ String p0, |
| 530 | /*[in]*/ String p1, |
| 531 | /*[in]*/ boolean p2, |
| 532 | /*[in]*/ String p3) { |
| 533 | |
| 534 | MoeSolInternal.checkApartment(this); |
| 535 | jni_RegisterDatabase(p0, p1, p2, p3); |
| 536 | } |
| 537 | |
| 538 | private native com.moesol.bindings.microsoft.dao.Database jni_OpenDatabase( |
| 539 | /*[in]*/ String p0, |
| 540 | /*[in]*/ Object p1, |
| 541 | /*[in]*/ Object p2, |
| 542 | /*[in]*/ Object p3); |
| 543 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 544 | /*[in]*/ String p0, |
| 545 | /*[in]*/ Object p1, |
| 546 | /*[in]*/ Object p2, |
| 547 | /*[in]*/ Object p3) { |
| 548 | |
| 549 | MoeSolInternal.checkApartment(this); |
| 550 | return jni_OpenDatabase(p0, p1, p2, p3); |
| 551 | } |
| 552 | |
| 553 | /** [optional=1] */ |
| 554 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 555 | /*[in]*/ String p0, |
| 556 | /*[in]*/ Object p1, |
| 557 | /*[in]*/ Object p2) { |
| 558 | |
| 559 | return OpenDatabase(p0, p1, p2, null); |
| 560 | } |
| 561 | /** [optional=2] */ |
| 562 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 563 | /*[in]*/ String p0, |
| 564 | /*[in]*/ Object p1) { |
| 565 | |
| 566 | return OpenDatabase(p0, p1, null, null); |
| 567 | } |
| 568 | /** [optional=3] */ |
| 569 | public com.moesol.bindings.microsoft.dao.Database OpenDatabase( |
| 570 | /*[in]*/ String p0) { |
| 571 | |
| 572 | return OpenDatabase(p0, null, null, null); |
| 573 | } |
| 574 | private native com.moesol.bindings.microsoft.dao.Database jni_CreateDatabase( |
| 575 | /*[in]*/ String p0, |
| 576 | /*[in]*/ String p1, |
| 577 | /*[in]*/ Object p2); |
| 578 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 579 | /*[in]*/ String p0, |
| 580 | /*[in]*/ String p1, |
| 581 | /*[in]*/ Object p2) { |
| 582 | |
| 583 | MoeSolInternal.checkApartment(this); |
| 584 | return jni_CreateDatabase(p0, p1, p2); |
| 585 | } |
| 586 | |
| 587 | /** [optional=1] */ |
| 588 | public com.moesol.bindings.microsoft.dao.Database CreateDatabase( |
| 589 | /*[in]*/ String p0, |
| 590 | /*[in]*/ String p1) { |
| 591 | |
| 592 | return CreateDatabase(p0, p1, null); |
| 593 | } |
| 594 | private native void jni_BeginTrans(); |
| 595 | public void BeginTrans() { |
| 596 | |
| 597 | MoeSolInternal.checkApartment(this); |
| 598 | jni_BeginTrans(); |
| 599 | } |
| 600 | |
| 601 | private native void jni_CommitTrans( |
| 602 | /*[in]*/ int p0); |
| 603 | public void CommitTrans( |
| 604 | /*[in]*/ int p0) { |
| 605 | |
| 606 | MoeSolInternal.checkApartment(this); |
| 607 | jni_CommitTrans(p0); |
| 608 | } |
| 609 | |
| 610 | private native void jni_Rollback(); |
| 611 | public void Rollback() { |
| 612 | |
| 613 | MoeSolInternal.checkApartment(this); |
| 614 | jni_Rollback(); |
| 615 | } |
| 616 | |
| 617 | private native int jni_ISAMStats( |
| 618 | /*[in]*/ int p0, |
| 619 | /*[in]*/ Object p1); |
| 620 | public int ISAMStats( |
| 621 | /*[in]*/ int p0, |
| 622 | /*[in]*/ Object p1) { |
| 623 | |
| 624 | MoeSolInternal.checkApartment(this); |
| 625 | return jni_ISAMStats(p0, p1); |
| 626 | } |
| 627 | |
| 628 | /** [optional=1] */ |
| 629 | public int ISAMStats( |
| 630 | /*[in]*/ int p0) { |
| 631 | |
| 632 | return ISAMStats(p0, null); |
| 633 | } |
| 634 | private native String jni_getSystemDB(); |
| 635 | public String getSystemDB() { |
| 636 | |
| 637 | MoeSolInternal.checkApartment(this); |
| 638 | return jni_getSystemDB(); |
| 639 | } |
| 640 | |
| 641 | private native void jni_setSystemDB( |
| 642 | /*[in]*/ String p0); |
| 643 | public void setSystemDB( |
| 644 | /*[in]*/ String p0) { |
| 645 | |
| 646 | MoeSolInternal.checkApartment(this); |
| 647 | jni_setSystemDB(p0); |
| 648 | } |
| 649 | |
| 650 | private native com.moesol.bindings.microsoft.dao.Workspace jni_CreateWorkspace( |
| 651 | /*[in]*/ String p0, |
| 652 | /*[in]*/ String p1, |
| 653 | /*[in]*/ String p2, |
| 654 | /*[in]*/ Object p3); |
| 655 | public com.moesol.bindings.microsoft.dao.Workspace CreateWorkspace( |
| 656 | /*[in]*/ String p0, |
| 657 | /*[in]*/ String p1, |
| 658 | /*[in]*/ String p2, |
| 659 | /*[in]*/ Object p3) { |
| 660 | |
| 661 | MoeSolInternal.checkApartment(this); |
| 662 | return jni_CreateWorkspace(p0, p1, p2, p3); |
| 663 | } |
| 664 | |
| 665 | /** [optional=1] */ |
| 666 | public com.moesol.bindings.microsoft.dao.Workspace CreateWorkspace( |
| 667 | /*[in]*/ String p0, |
| 668 | /*[in]*/ String p1, |
| 669 | /*[in]*/ String p2) { |
| 670 | |
| 671 | return CreateWorkspace(p0, p1, p2, null); |
| 672 | } |
| 673 | private native com.moesol.bindings.microsoft.dao.Connection jni_OpenConnection( |
| 674 | /*[in]*/ String p0, |
| 675 | /*[in]*/ Object p1, |
| 676 | /*[in]*/ Object p2, |
| 677 | /*[in]*/ Object p3); |
| 678 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 679 | /*[in]*/ String p0, |
| 680 | /*[in]*/ Object p1, |
| 681 | /*[in]*/ Object p2, |
| 682 | /*[in]*/ Object p3) { |
| 683 | |
| 684 | MoeSolInternal.checkApartment(this); |
| 685 | return jni_OpenConnection(p0, p1, p2, p3); |
| 686 | } |
| 687 | |
| 688 | /** [optional=1] */ |
| 689 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 690 | /*[in]*/ String p0, |
| 691 | /*[in]*/ Object p1, |
| 692 | /*[in]*/ Object p2) { |
| 693 | |
| 694 | return OpenConnection(p0, p1, p2, null); |
| 695 | } |
| 696 | /** [optional=2] */ |
| 697 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 698 | /*[in]*/ String p0, |
| 699 | /*[in]*/ Object p1) { |
| 700 | |
| 701 | return OpenConnection(p0, p1, null, null); |
| 702 | } |
| 703 | /** [optional=3] */ |
| 704 | public com.moesol.bindings.microsoft.dao.Connection OpenConnection( |
| 705 | /*[in]*/ String p0) { |
| 706 | |
| 707 | return OpenConnection(p0, null, null, null); |
| 708 | } |
| 709 | private native int jni_getDefaultType(); |
| 710 | public int getDefaultType() { |
| 711 | |
| 712 | MoeSolInternal.checkApartment(this); |
| 713 | return jni_getDefaultType(); |
| 714 | } |
| 715 | |
| 716 | private native void jni_setDefaultType( |
| 717 | /*[in]*/ int p0); |
| 718 | public void setDefaultType( |
| 719 | /*[in]*/ int p0) { |
| 720 | |
| 721 | MoeSolInternal.checkApartment(this); |
| 722 | jni_setDefaultType(p0); |
| 723 | } |
| 724 | |
| 725 | private native void jni_SetOption( |
| 726 | /*[in]*/ int p0, |
| 727 | /*[in]*/ Object p1); |
| 728 | public void SetOption( |
| 729 | /*[in]*/ int p0, |
| 730 | /*[in]*/ Object p1) { |
| 731 | |
| 732 | MoeSolInternal.checkApartment(this); |
| 733 | jni_SetOption(p0, p1); |
| 734 | } |
| 735 | |
| 736 | } |
| 737 | |
| 738 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 739 | public static class Disp extends com.moesol.bindings.microsoft.dao._DAO.Disp { |
| 740 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 741 | return s_instance; |
| 742 | } |
| 743 | |
| 744 | private static Disp s_instance = new Disp(); |
| 745 | |
| 746 | protected Disp() { |
| 747 | addEntry(1610809344, (short)2, "getVersion", "()Ljava/lang/String;"); |
| 748 | addEntry(1610809345, (short)2, "getIniPath", "()Ljava/lang/String;"); |
| 749 | addEntry(1610809345, (short)4, "setIniPath", "(Ljava/lang/String;)V"); |
| 750 | addEntry(1610809347, (short)4, "setDefaultUser", "(Ljava/lang/String;)V"); |
| 751 | addEntry(1610809348, (short)4, "setDefaultPassword", "(Ljava/lang/String;)V"); |
| 752 | addEntry(1610809349, (short)2, "getLoginTimeout", "()S"); |
| 753 | addEntry(1610809349, (short)4, "setLoginTimeout", "(S)V"); |
| 754 | addEntry(0, (short)2, "getWorkspaces", "()Lcom/moesol/bindings/microsoft/dao/Workspaces;"); |
| 755 | addEntry(1610809352, (short)2, "getErrors", "()Lcom/moesol/bindings/microsoft/dao/Errors;"); |
| 756 | addEntry(1610809353, (short)1, "Idle", "(Ljava/lang/Object;)V"); |
| 757 | addEntry(1610809354, (short)1, "CompactDatabase", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V"); |
| 758 | addEntry(1610809355, (short)1, "RepairDatabase", "(Ljava/lang/String;)V"); |
| 759 | addEntry(1610809356, (short)1, "RegisterDatabase", "(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V"); |
| 760 | addEntry(1610809357, (short)1, "_30_CreateWorkspace", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/moesol/bindings/microsoft/dao/Workspace;"); |
| 761 | addEntry(1610809358, (short)1, "OpenDatabase", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Database;"); |
| 762 | addEntry(1610809359, (short)1, "CreateDatabase", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Database;"); |
| 763 | addEntry(1610809360, (short)1, "FreeLocks", "()V"); |
| 764 | addEntry(1610809361, (short)1, "BeginTrans", "()V"); |
| 765 | addEntry(1610809362, (short)1, "CommitTrans", "(I)V"); |
| 766 | addEntry(1610809363, (short)1, "Rollback", "()V"); |
| 767 | addEntry(1610809364, (short)1, "SetDefaultWorkspace", "(Ljava/lang/String;Ljava/lang/String;)V"); |
| 768 | addEntry(1610809365, (short)1, "SetDataAccessOption", "(SLjava/lang/Object;)V"); |
| 769 | addEntry(1610809366, (short)1, "ISAMStats", "(ILjava/lang/Object;)I"); |
| 770 | addEntry(1610809367, (short)2, "getSystemDB", "()Ljava/lang/String;"); |
| 771 | addEntry(1610809367, (short)4, "setSystemDB", "(Ljava/lang/String;)V"); |
| 772 | addEntry(1610809369, (short)1, "CreateWorkspace", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Workspace;"); |
| 773 | addEntry(1610809370, (short)1, "OpenConnection", "(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/Connection;"); |
| 774 | addEntry(1610809371, (short)2, "getDefaultType", "()I"); |
| 775 | addEntry(1610809371, (short)4, "setDefaultType", "(I)V"); |
| 776 | addEntry(1610809373, (short)1, "SetOption", "(ILjava/lang/Object;)V"); |
| 777 | } |
| 778 | } |
| 779 | } |