|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.transaction.jta.XAResourceContext
public class XAResourceContext
A context class for XAResource
.
Field Summary | |
---|---|
protected XAResource |
resource
The resource. |
protected Xid |
xid
The transaction identifier. |
Constructor Summary | |
---|---|
XAResourceContext(XAResource resource,
Xid xid)
Constructor. |
Method Summary | |
---|---|
protected void |
commit(boolean onePhase)
Commits transaction. |
protected void |
end(int flags)
Ends resource. |
XAResource |
getResource()
Returns the resource. |
Xid |
getXid()
Returns the transaction identifier. |
protected void |
rollback()
Rolls back transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XAResource resource
protected Xid xid
Constructor Detail |
---|
public XAResourceContext(XAResource resource, Xid xid)
resource
- the resource.xid
- the transaction identifierMethod Detail |
---|
public XAResource getResource()
public Xid getXid()
protected void end(int flags) throws XAException
flags
- the flags
XAException
- if XAException
is encounteredprotected void commit(boolean onePhase) throws XAException
onePhase
- whether one phase commit is
XAException
- if XAException
is encounteredprotected void rollback() throws XAException
XAException
- if XAException
is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |