|
||||||||||
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,
java.lang.String user,
java.lang.String password)
Creates the first free connection. |
Method Summary | |
---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean flag)
Performs a commit on this resource manager's branch of the global transaction. |
void |
end(javax.transaction.xa.Xid xid,
int flags)
Ends a connection's association with a global transaction. |
void |
forget(javax.transaction.xa.Xid xid)
This is called by a TM when the RM has reported a heuristic completion. |
boolean |
isSameRM(javax.transaction.xa.XAResource res)
|
int |
prepare(javax.transaction.xa.Xid xid)
Prepares to perform a commit. |
void |
rollback(javax.transaction.xa.Xid xid)
PERFORMS a rollback on this resource manager's branch of the global transaction. |
void |
start(javax.transaction.xa.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, removeConnectionEventListener |
Constructor Detail |
---|
public OracleXAConnection(StandardXADataSource dataSource, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void commit(javax.transaction.xa.Xid xid, boolean flag) throws javax.transaction.xa.XAException
StandardXAConnection
commit
in interface javax.transaction.xa.XAResource
commit
in class StandardXAConnection
javax.transaction.xa.XAException
public void end(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
StandardXAConnection
It 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 javax.transaction.xa.XAResource
end
in class StandardXAConnection
javax.transaction.xa.XAException
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
StandardXAConnection
forget
in interface javax.transaction.xa.XAResource
forget
in class StandardXAConnection
javax.transaction.xa.XAException
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
StandardXAConnection
prepare
in interface javax.transaction.xa.XAResource
prepare
in class StandardXAConnection
javax.transaction.xa.XAException
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
StandardXAConnection
rollback
in interface javax.transaction.xa.XAResource
rollback
in class StandardXAConnection
javax.transaction.xa.XAException
public void start(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
StandardXAConnection
start
in interface javax.transaction.xa.XAResource
start
in class StandardXAConnection
javax.transaction.xa.XAException
public boolean isSameRM(javax.transaction.xa.XAResource res) throws javax.transaction.xa.XAException
isSameRM
in interface javax.transaction.xa.XAResource
isSameRM
in class StandardXAConnection
javax.transaction.xa.XAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |