Java Doc for XATerminatorImpl.java in  » Database-JDBC-Connection-Pool » jotm-2.0.10 » org » objectweb » jotm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » jotm 2.0.10 » org.objectweb.jotm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jotm.XATerminatorImpl

XATerminatorImpl
public class XATerminatorImpl implements XATerminator(Code)
Implementation of the object that represents an inflow transaction.



Constructor Summary
public  XATerminatorImpl()
    

Method Summary
public  voidcommit(Xid xid, boolean onePhase)
     Commits the global transaction specified by xid.
Parameters:
  xid - A global transaction identifier
Parameters:
  onePhase - If true, the resource manager should use one-phase commit protocolto commit the work done on behalf of xid.
exception:
  XAException - An error has occurred.
public  voidforget(Xid xid)
     Tells the resource manager to forget about a heuristically completed transaction branch.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred.
public  Stringget_transaction_name()
     Gets a String that represents the inflow transaction name.
public  intprepare(Xid xid)
     Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred.
public  Xid[]recover(int flag)
     Obtains a list of prepared transaction branches from a resource manager.
public  voidrollback(Xid xid)
     Informs the resource manager to roll back work done on behalf of a transaction branch.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred.


Constructor Detail
XATerminatorImpl
public XATerminatorImpl() throws XAException(Code)
Constructor for create




Method Detail
commit
public void commit(Xid xid, boolean onePhase) throws XAException(Code)
Commits the global transaction specified by xid.
Parameters:
  xid - A global transaction identifier
Parameters:
  onePhase - If true, the resource manager should use one-phase commit protocolto commit the work done on behalf of xid.
exception:
  XAException - An error has occurred. Possible XAExceptionsare XA_HEURHAZ, XA_HEURCOM, XA_HEURRB, XA_HEURMIX, XAER_RMERR,XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO.If the resouce manager did not commit the transaction and the parameter onePhase is set totrue, the resource manager may throw one of the XA_RB* exceptions. Upon return, theresource manager has rolled back the branch's work and has released all help resources.



forget
public void forget(Xid xid) throws XAException(Code)
Tells the resource manager to forget about a heuristically completed transaction branch.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred. Possible XAExceptionsare XAER_RMERR, XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO.



get_transaction_name
public String get_transaction_name() throws XAException(Code)
Gets a String that represents the inflow transaction name. Transaction Name



prepare
public int prepare(Xid xid) throws XAException(Code)
Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred. Possible XAExceptionsare XA_HEURHAZ, XA_HEURCOM, XA_HEURRB, XA_HEURMIX, XAER_RMERR,XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO. A value indicating the resource manager's vote on the outcome of the transaction. Thepossible values are: XA_RDONLY or XA_OK. These constants are defined injavax.transaction.xa.XAResource interface. If the resource manager wants to roll backthe transaction, it should do so by raising an appropriate XAException in the preparemethod.



recover
public Xid[] recover(int flag) throws XAException(Code)
Obtains a list of prepared transaction branches from a resource manager. The transaction manager calls this method during recovery to obtain the list of transaction branches that are currently in prepared or heuristically completed states.
Parameters:
  flag - One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMHOFLAGS mustbe used when no other flags are set in the parameter. These constants are defined injavax.transaction.xa.XAResource interface.
exception:
  XAException - An error has occurred. Possible valuesare XAER_RMERR, XAER_RMFAIL, XAER_INVAL, or XAER_PROTO. The resource manager returns zero or more XIDs of the transaction branches that arecurrently in a prepared or heuristically completed state. If an error occurs during theoperation, the resource manager should throw the appropriate XAException.



rollback
public void rollback(Xid xid) throws XAException(Code)
Informs the resource manager to roll back work done on behalf of a transaction branch.
Parameters:
  xid - A global transaction identifier.
exception:
  XAException - An error has occurred. Possible XAExceptionsare XA_HEURHAZ, XA_HEURCOM, XA_HEURRB, XA_HEURMIX, XAER_RMERR,XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO.If the transaction branch is already marked rollback-only the resource manager may throwone of the XA_RB* exceptions. Upon return, the resource manager has rolled back thebranch's work and has released all held resources.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.