public class LocalXAResource
extends java.lang.Object
implements javax.transaction.xa.XAResource
Constructor and Description |
---|
LocalXAResource(java.sql.Connection localTransaction) |
Modifier and Type | Method and Description |
---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean flag) |
void |
end(javax.transaction.xa.Xid xid,
int flag) |
void |
forget(javax.transaction.xa.Xid xid) |
int |
getTransactionTimeout() |
javax.transaction.xa.Xid |
getXid() |
boolean |
isSameRM(javax.transaction.xa.XAResource xaResource) |
int |
prepare(javax.transaction.xa.Xid xid) |
javax.transaction.xa.Xid[] |
recover(int flag) |
void |
rollback(javax.transaction.xa.Xid xid) |
boolean |
setTransactionTimeout(int transactionTimeout) |
void |
start(javax.transaction.xa.Xid xid,
int flag) |
public javax.transaction.xa.Xid getXid()
public void start(javax.transaction.xa.Xid xid, int flag) throws javax.transaction.xa.XAException
start
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void end(javax.transaction.xa.Xid xid, int flag) throws javax.transaction.xa.XAException
end
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public int prepare(javax.transaction.xa.Xid xid)
prepare
in interface javax.transaction.xa.XAResource
public void commit(javax.transaction.xa.Xid xid, boolean flag) throws javax.transaction.xa.XAException
commit
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
rollback
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public boolean isSameRM(javax.transaction.xa.XAResource xaResource)
isSameRM
in interface javax.transaction.xa.XAResource
public void forget(javax.transaction.xa.Xid xid)
forget
in interface javax.transaction.xa.XAResource
public javax.transaction.xa.Xid[] recover(int flag)
recover
in interface javax.transaction.xa.XAResource
public int getTransactionTimeout()
getTransactionTimeout
in interface javax.transaction.xa.XAResource
public boolean setTransactionTimeout(int transactionTimeout)
setTransactionTimeout
in interface javax.transaction.xa.XAResource