1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_19) on Wed Dec 30 16:45:48 CET 2009 -->
<TITLE>
XASupport (jTDS API)
</TITLE>
<META NAME="keywords" CONTENT="net.sourceforge.jtds.jdbc.XASupport class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="XASupport (jTDS API)";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XASupport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../net/sourceforge/jtds/jdbc/UniqueIdentifier.html" title="class in net.sourceforge.jtds.jdbc"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="XASupport.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
net.sourceforge.jtds.jdbc</FONT>
<BR>
Class XASupport</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>net.sourceforge.jtds.jdbc.XASupport</B>
</PRE>
<HR>
<DL>
<DT>public class <B>XASupport</B><DT>extends java.lang.Object</DL>
<P>
This class contains static utility methods used to implement distributed transactions.
For SQL Server 2000 the driver can provide true distributed transactions provided that
the external stored procedure in JtdsXA.dll is installed. For other types of server
only an emulation is available at this stage.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#TM_ID">TM_ID</A></B></CODE>
<BR>
xa_open login string unique to jTDS.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_CLOSE">XA_CLOSE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_COMMIT">XA_COMMIT</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_COMPLETE">XA_COMPLETE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_END">XA_END</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_FORGET">XA_FORGET</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_OPEN">XA_OPEN</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_PREPARE">XA_PREPARE</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_RECOVER">XA_RECOVER</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_RMID">XA_RMID</A></B></CODE>
<BR>
The Resource Manager ID allocated by jTDS</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_ROLLBACK">XA_ROLLBACK</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_START">XA_START</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XA_TRACE">XA_TRACE</A></B></CODE>
<BR>
Set this field to 1 to enable XA tracing.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#XASupport()">XASupport</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#raiseXAException(int)">raiseXAException</A></B>(int errorCode)</CODE>
<BR>
Construct and throw an <code>XAException</code> with an explanatory message and the XA error code set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#raiseXAException(java.sql.SQLException)">raiseXAException</A></B>(java.sql.SQLException sqle)</CODE>
<BR>
Construct and throw an <code>XAException</code> with an explanatory message derived from the
<code>SQLException</code> and the XA error code set to <code>XAER_RMFAIL</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#toBytesXid(javax.transaction.xa.Xid)">toBytesXid</A></B>(javax.transaction.xa.Xid xid)</CODE>
<BR>
Format an XA transaction ID into a 140 byte array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_close(java.sql.Connection, int)">xa_close</A></B>(java.sql.Connection connection,
int xaConId)</CODE>
<BR>
Invoke the xa_close routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_commit(java.sql.Connection, int, javax.transaction.xa.Xid, boolean)">xa_commit</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
boolean onePhase)</CODE>
<BR>
Invoke the xa_commit routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_end(java.sql.Connection, int, javax.transaction.xa.Xid, int)">xa_end</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
int flags)</CODE>
<BR>
Invoke the xa_end routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_forget(java.sql.Connection, int, javax.transaction.xa.Xid)">xa_forget</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)</CODE>
<BR>
Invoke the xa_forget routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_open(java.sql.Connection)">xa_open</A></B>(java.sql.Connection connection)</CODE>
<BR>
Invoke the xa_open routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_prepare(java.sql.Connection, int, javax.transaction.xa.Xid)">xa_prepare</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)</CODE>
<BR>
Invoke the xa_prepare routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static javax.transaction.xa.Xid[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_recover(java.sql.Connection, int, int)">xa_recover</A></B>(java.sql.Connection connection,
int xaConId,
int flags)</CODE>
<BR>
Invoke the xa_recover routine on the SQL Server.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_rollback(java.sql.Connection, int, javax.transaction.xa.Xid)">xa_rollback</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)</CODE>
<BR>
Invoke the xa_rollback routine on the SQL Server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../net/sourceforge/jtds/jdbc/XASupport.html#xa_start(java.sql.Connection, int, javax.transaction.xa.Xid, int)">xa_start</A></B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
int flags)</CODE>
<BR>
Invoke the xa_start routine on the SQL Server.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="XA_RMID"><!-- --></A><H3>
XA_RMID</H3>
<PRE>
private static final int <B>XA_RMID</B></PRE>
<DL>
<DD>The Resource Manager ID allocated by jTDS
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_RMID">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TM_ID"><!-- --></A><H3>
TM_ID</H3>
<PRE>
private static final java.lang.String <B>TM_ID</B></PRE>
<DL>
<DD>xa_open login string unique to jTDS.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.TM_ID">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_OPEN"><!-- --></A><H3>
XA_OPEN</H3>
<PRE>
private static final int <B>XA_OPEN</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_OPEN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_CLOSE"><!-- --></A><H3>
XA_CLOSE</H3>
<PRE>
private static final int <B>XA_CLOSE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_CLOSE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_START"><!-- --></A><H3>
XA_START</H3>
<PRE>
private static final int <B>XA_START</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_START">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_END"><!-- --></A><H3>
XA_END</H3>
<PRE>
private static final int <B>XA_END</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_END">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_ROLLBACK"><!-- --></A><H3>
XA_ROLLBACK</H3>
<PRE>
private static final int <B>XA_ROLLBACK</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_ROLLBACK">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_PREPARE"><!-- --></A><H3>
XA_PREPARE</H3>
<PRE>
private static final int <B>XA_PREPARE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_PREPARE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_COMMIT"><!-- --></A><H3>
XA_COMMIT</H3>
<PRE>
private static final int <B>XA_COMMIT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_COMMIT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_RECOVER"><!-- --></A><H3>
XA_RECOVER</H3>
<PRE>
private static final int <B>XA_RECOVER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_RECOVER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_FORGET"><!-- --></A><H3>
XA_FORGET</H3>
<PRE>
private static final int <B>XA_FORGET</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_FORGET">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_COMPLETE"><!-- --></A><H3>
XA_COMPLETE</H3>
<PRE>
private static final int <B>XA_COMPLETE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_COMPLETE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="XA_TRACE"><!-- --></A><H3>
XA_TRACE</H3>
<PRE>
private static final int <B>XA_TRACE</B></PRE>
<DL>
<DD>Set this field to 1 to enable XA tracing.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sourceforge.jtds.jdbc.XASupport.XA_TRACE">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="XASupport()"><!-- --></A><H3>
XASupport</H3>
<PRE>
private <B>XASupport</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="xa_open(java.sql.Connection)"><!-- --></A><H3>
xa_open</H3>
<PRE>
public static int <B>xa_open</B>(java.sql.Connection connection)
throws java.sql.SQLException</PRE>
<DL>
<DD>Invoke the xa_open routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - the parent XAConnection object
<DT><B>Returns:</B><DD>the XA connection ID allocated by xp_jtdsxa
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="xa_close(java.sql.Connection, int)"><!-- --></A><H3>
xa_close</H3>
<PRE>
public static void <B>xa_close</B>(java.sql.Connection connection,
int xaConId)
throws java.sql.SQLException</PRE>
<DL>
<DD>Invoke the xa_close routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection to be enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server
<DT><B>Throws:</B>
<DD><CODE>java.sql.SQLException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="xa_start(java.sql.Connection, int, javax.transaction.xa.Xid, int)"><!-- --></A><H3>
xa_start</H3>
<PRE>
public static void <B>xa_start</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
int flags)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_start routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection to be enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>xid</CODE> - the XA Transaction ID object<DD><CODE>flags</CODE> - XA Flags for start command
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_end(java.sql.Connection, int, javax.transaction.xa.Xid, int)"><!-- --></A><H3>
xa_end</H3>
<PRE>
public static void <B>xa_end</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
int flags)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_end routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>xid</CODE> - the XA Transaction ID object<DD><CODE>flags</CODE> - XA Flags for start command
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_prepare(java.sql.Connection, int, javax.transaction.xa.Xid)"><!-- --></A><H3>
xa_prepare</H3>
<PRE>
public static int <B>xa_prepare</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_prepare routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction.<DD><CODE>xaConId</CODE> - The connection ID allocated by the server.<DD><CODE>xid</CODE> - The XA Transaction ID object.
<DT><B>Returns:</B><DD>prepare status (XA_OK or XA_RDONLY) as an <code>int</code>.
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_commit(java.sql.Connection, int, javax.transaction.xa.Xid, boolean)"><!-- --></A><H3>
xa_commit</H3>
<PRE>
public static void <B>xa_commit</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_commit routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>xid</CODE> - the XA Transaction ID object<DD><CODE>onePhase</CODE> - <code>true</code> if single phase commit required
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_rollback(java.sql.Connection, int, javax.transaction.xa.Xid)"><!-- --></A><H3>
xa_rollback</H3>
<PRE>
public static void <B>xa_rollback</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_rollback routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>xid</CODE> - the XA Transaction ID object
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_recover(java.sql.Connection, int, int)"><!-- --></A><H3>
xa_recover</H3>
<PRE>
public static javax.transaction.xa.Xid[] <B>xa_recover</B>(java.sql.Connection connection,
int xaConId,
int flags)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_recover routine on the SQL Server.
<p/>
This version of xa_recover will return all XIDs on the first call.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>flags</CODE> - XA Flags for start command
<DT><B>Returns:</B><DD>transactions to recover as a <code>Xid[]</code>
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="xa_forget(java.sql.Connection, int, javax.transaction.xa.Xid)"><!-- --></A><H3>
xa_forget</H3>
<PRE>
public static void <B>xa_forget</B>(java.sql.Connection connection,
int xaConId,
javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Invoke the xa_forget routine on the SQL Server.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>connection</CODE> - JDBC Connection enlisted in the transaction<DD><CODE>xaConId</CODE> - the connection ID allocated by the server<DD><CODE>xid</CODE> - the XA Transaction ID object
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - if an error condition occurs</DL>
</DD>
</DL>
<HR>
<A NAME="raiseXAException(java.sql.SQLException)"><!-- --></A><H3>
raiseXAException</H3>
<PRE>
public static void <B>raiseXAException</B>(java.sql.SQLException sqle)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Construct and throw an <code>XAException</code> with an explanatory message derived from the
<code>SQLException</code> and the XA error code set to <code>XAER_RMFAIL</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sqle</CODE> - The SQLException.
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - exception derived from the code>SQLException</code></DL>
</DD>
</DL>
<HR>
<A NAME="raiseXAException(int)"><!-- --></A><H3>
raiseXAException</H3>
<PRE>
public static void <B>raiseXAException</B>(int errorCode)
throws javax.transaction.xa.XAException</PRE>
<DL>
<DD>Construct and throw an <code>XAException</code> with an explanatory message and the XA error code set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>errorCode</CODE> - the XA Error code
<DT><B>Throws:</B>
<DD><CODE>javax.transaction.xa.XAException</CODE> - the constructed exception</DL>
</DD>
</DL>
<HR>
<A NAME="toBytesXid(javax.transaction.xa.Xid)"><!-- --></A><H3>
toBytesXid</H3>
<PRE>
private static byte[] <B>toBytesXid</B>(javax.transaction.xa.Xid xid)</PRE>
<DL>
<DD>Format an XA transaction ID into a 140 byte array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xid</CODE> - the XA transaction ID
<DT><B>Returns:</B><DD>the formatted ID as a <code>byte[]</code></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XASupport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../net/sourceforge/jtds/jdbc/UniqueIdentifier.html" title="class in net.sourceforge.jtds.jdbc"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="XASupport.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Generated on December 30 2009
</BODY>
</HTML>
|