|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection
org.jboss.jca.adapters.jdbc.xa.XAManagedConnection
public class XAManagedConnection

XAManagedConnection
| Field Summary | |
|---|---|
protected Xid |
currentXid
The Xid |
protected XAConnection |
xaConnection
The XA connection |
protected XAResource |
xaResource
The XAResource |
| Fields inherited from class org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection |
|---|
con, destroyed, inLocalTransaction, inManagedTransaction, jdbcAutoCommit, jdbcReadOnly, jdbcTransactionIsolation, mcf, props, stateLock, underlyingAutoCommit, underlyingReadOnly |
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
XAManagedConnection(XAManagedConnectionFactory mcf,
XAConnection xaConnection,
Properties props,
int transactionIsolation,
int psCacheSize)
Constructor |
|
| Method Summary | |
|---|---|
void |
begin()
|
protected void |
broadcastConnectionError(SQLException e)
|
void |
commit()
|
void |
commit(Xid xid,
boolean onePhase)
|
void |
destroy()
Destroy |
void |
end(Xid xid,
int flags)
|
void |
forget(Xid xid)
|
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
int |
getTransactionTimeout()
|
XAResource |
getXAResource()
|
boolean |
isSameRM(XAResource other)
|
int |
prepare(Xid xid)
|
Xid[] |
recover(int flag)
|
void |
rollback()
|
void |
rollback(Xid xid)
|
boolean |
setTransactionTimeout(int seconds)
|
void |
start(Xid xid,
int flags)
|
| Methods inherited from class org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection |
|---|
addConnectionEventListener, associateConnection, broadcastConnectionError, checkException, checkState, checkValid, cleanup, getConnection, getLog, getLogWriter, getMetaData, getProperties, lock, removeConnectionEventListener, setLogWriter, tryLock, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final XAConnection xaConnection
protected final XAResource xaResource
protected Xid currentXid
| Constructor Detail |
|---|
public XAManagedConnection(XAManagedConnectionFactory mcf,
XAConnection xaConnection,
Properties props,
int transactionIsolation,
int psCacheSize)
throws SQLException
mcf - The managed connection factoryxaConnection - The XA connectionprops - The propertiestransactionIsolation - The transaction isolationpsCacheSize - The prepared statement cache size
SQLException - Thrown if an error occurs| Method Detail |
|---|
public void begin()
throws javax.resource.ResourceException
begin in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceException
public void commit()
throws javax.resource.ResourceException
commit in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceException
public void rollback()
throws javax.resource.ResourceException
rollback in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceExceptionprotected void broadcastConnectionError(SQLException e)
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectiondestroy in class BaseWrapperManagedConnectionjavax.resource.ResourceException - Thrown if an error occurs
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourceXAException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public void commit(Xid xid,
boolean onePhase)
throws XAException
commit in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
rollback in interface XAResourceXAException
public void forget(Xid xid)
throws XAException
forget in interface XAResourceXAException
public Xid[] recover(int flag)
throws XAException
recover in interface XAResourceXAException
public boolean isSameRM(XAResource other)
throws XAException
isSameRM in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAException
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||