Class WrapperNamedXAResource
- java.lang.Object
-
- org.apache.geronimo.transaction.manager.WrapperNamedXAResource
-
- All Implemented Interfaces:
javax.transaction.xa.XAResource
,NamedXAResource
public class WrapperNamedXAResource extends java.lang.Object implements NamedXAResource
-
-
Constructor Summary
Constructors Constructor Description WrapperNamedXAResource(javax.transaction.xa.XAResource xaResource, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(javax.transaction.xa.Xid xid, boolean onePhase)
void
end(javax.transaction.xa.Xid xid, int flags)
void
forget(javax.transaction.xa.Xid xid)
java.lang.String
getName()
int
getTransactionTimeout()
boolean
isSameRM(javax.transaction.xa.XAResource other)
int
prepare(javax.transaction.xa.Xid xid)
javax.transaction.xa.Xid[]
recover(int flag)
void
rollback(javax.transaction.xa.Xid xid)
boolean
setTransactionTimeout(int seconds)
void
start(javax.transaction.xa.Xid xid, int flags)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceNamedXAResource
-
commit
public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
- Specified by:
commit
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
end
public void end(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
- Specified by:
end
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
forget
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
forget
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws javax.transaction.xa.XAException
- Specified by:
getTransactionTimeout
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
isSameRM
public boolean isSameRM(javax.transaction.xa.XAResource other) throws javax.transaction.xa.XAException
- Specified by:
isSameRM
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
prepare
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
prepare
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
recover
public javax.transaction.xa.Xid[] recover(int flag) throws javax.transaction.xa.XAException
- Specified by:
recover
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
rollback
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
rollback
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws javax.transaction.xa.XAException
- Specified by:
setTransactionTimeout
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
start
public void start(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
- Specified by:
start
in interfacejavax.transaction.xa.XAResource
- Throws:
javax.transaction.xa.XAException
-
-