|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.enhydra.jdbc.standard.StandardPooledConnection
org.enhydra.jdbc.standard.StandardXAConnection
org.enhydra.jdbc.oracle.OracleXAConnection
public final class OracleXAConnection
Provides an Oracle specific instance of StandardXAConnection. Almost all of the required functionality is provided curtesy of the generic super class which looks after most of the transaction state management. Oracle's own resource manager is informed that it is part of a global transaction and looks after the detail thereafter.
| Field Summary |
|---|
| Fields inherited from class org.enhydra.jdbc.standard.StandardXAConnection |
|---|
connectionHandle, curCon, thisAutoCommit, timerThread, transactionManager, xaDataSource |
| Fields inherited from class org.enhydra.jdbc.standard.StandardPooledConnection |
|---|
con, dataSource, log |
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
OracleXAConnection(StandardXADataSource dataSource,
String user,
String password)
Creates the first free connection. |
|
| Method Summary | |
|---|---|
void |
commit(Xid xid,
boolean flag)
Performs a commit on this resource manager's branch of the global transaction. |
void |
end(Xid xid,
int flags)
Ends a connection's association with a global transaction. |
void |
forget(Xid xid)
This is called by a TM when the RM has reported a heuristic completion. |
boolean |
isSameRM(XAResource res)
|
int |
prepare(Xid xid)
Prepares to perform a commit. |
void |
rollback(Xid xid)
PERFORMS a rollback on this resource manager's branch of the global transaction. |
void |
start(Xid xid,
int flags)
Associates this XAConnection with a global transaction. |
| Methods inherited from class org.enhydra.jdbc.standard.StandardXAConnection |
|---|
checkPreparedState, close, doStart, getCommitOnPrepare, getConnection, getReference, getTransactionTimeout, getXAResource, newConnectionHandle, recover, run, setCommitOnPrepare, setTransactionManager, setTransactionTimeout, toString |
| Methods inherited from class org.enhydra.jdbc.standard.StandardPooledConnection |
|---|
addConnectionEventListener, connectionErrorOccurred, getPhysicalConnection, removeConnectionEventListener, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sql.PooledConnection |
|---|
addConnectionEventListener, addStatementEventListener, removeConnectionEventListener, removeStatementEventListener |
| Constructor Detail |
|---|
public OracleXAConnection(StandardXADataSource dataSource,
String user,
String password)
throws SQLException
SQLException| Method Detail |
|---|
public void commit(Xid xid,
boolean flag)
throws XAException
StandardXAConnection
commit in interface XAResourcecommit in class StandardXAConnectionXAException
public void end(Xid xid,
int flags)
throws XAException
StandardXAConnectionIt need not act on the current transaction. There is an interval between being returned to the pool manager and being invoked by the transaction manager during which the current connection can change.
Note that the only effect is to change the connection state.
end in interface XAResourceend in class StandardXAConnectionXAException
public void forget(Xid xid)
throws XAException
StandardXAConnection
forget in interface XAResourceforget in class StandardXAConnectionXAException
public int prepare(Xid xid)
throws XAException
StandardXAConnection
prepare in interface XAResourceprepare in class StandardXAConnectionXAException
public void rollback(Xid xid)
throws XAException
StandardXAConnection
rollback in interface XAResourcerollback in class StandardXAConnectionXAException
public void start(Xid xid,
int flags)
throws XAException
StandardXAConnection
start in interface XAResourcestart in class StandardXAConnectionXAException
public boolean isSameRM(XAResource res)
throws XAException
isSameRM in interface XAResourceisSameRM in class StandardXAConnectionXAException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||