public class JdbcXAConnection extends TraceObject implements javax.sql.XAConnection, javax.transaction.xa.XAResource
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, STATEMENT, trace, XA_DATA_SOURCE, XID| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Register a new listener for the connection.
|
void |
addStatementEventListener(javax.sql.StatementEventListener listener)
[Not supported] Add a statement event listener.
|
void |
close()
Close the physical connection.
|
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase)
Commit a transaction.
|
void |
end(javax.transaction.xa.Xid xid,
int flags)
End a transaction.
|
void |
forget(javax.transaction.xa.Xid xid)
Forget a transaction.
|
java.sql.Connection |
getConnection()
Get a connection that is a handle to the physical connection.
|
int |
getTransactionTimeout()
Get the transaction timeout.
|
javax.transaction.xa.XAResource |
getXAResource()
Get the XAResource object.
|
boolean |
isSameRM(javax.transaction.xa.XAResource xares)
Checks if this is the same XAResource.
|
int |
prepare(javax.transaction.xa.Xid xid)
Prepare a transaction.
|
javax.transaction.xa.Xid[] |
recover(int flag)
Get the list of prepared transaction branches.
|
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Remove the event listener.
|
void |
removeStatementEventListener(javax.sql.StatementEventListener listener)
[Not supported] Remove a statement event listener.
|
void |
rollback(javax.transaction.xa.Xid xid)
Roll back a transaction.
|
boolean |
setTransactionTimeout(int seconds)
Set the transaction timeout.
|
void |
start(javax.transaction.xa.Xid xid,
int flags)
Start or continue to work on a transaction.
|
java.lang.String |
toString()
INTERNAL
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedpublic javax.transaction.xa.XAResource getXAResource()
getXAResource in interface javax.sql.XAConnectionpublic void close()
throws java.sql.SQLException
close in interface javax.sql.PooledConnectionjava.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.PooledConnectionjava.sql.SQLExceptionpublic void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
addConnectionEventListener in interface javax.sql.PooledConnectionlistener - the event listenerpublic void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.sql.PooledConnectionlistener - the event listenerpublic int getTransactionTimeout()
getTransactionTimeout in interface javax.transaction.xa.XAResourcepublic boolean setTransactionTimeout(int seconds)
setTransactionTimeout in interface javax.transaction.xa.XAResourceseconds - ignoredpublic boolean isSameRM(javax.transaction.xa.XAResource xares)
isSameRM in interface javax.transaction.xa.XAResourcexares - the other objectpublic javax.transaction.xa.Xid[] recover(int flag)
throws javax.transaction.xa.XAException
recover in interface javax.transaction.xa.XAResourceflag - TMSTARTRSCAN, TMENDRSCAN, or TMNOFLAGS. If no other flags are
set, TMNOFLAGS must be used.javax.transaction.xa.XAExceptionpublic int prepare(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
prepare in interface javax.transaction.xa.XAResourcexid - the transaction idjavax.transaction.xa.XAExceptionpublic void forget(javax.transaction.xa.Xid xid)
forget in interface javax.transaction.xa.XAResourcexid - the transaction idpublic void rollback(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
rollback in interface javax.transaction.xa.XAResourcexid - the transaction idjavax.transaction.xa.XAExceptionpublic void end(javax.transaction.xa.Xid xid,
int flags)
throws javax.transaction.xa.XAException
end in interface javax.transaction.xa.XAResourcexid - the transaction idflags - TMSUCCESS, TMFAIL, or TMSUSPENDjavax.transaction.xa.XAExceptionpublic void start(javax.transaction.xa.Xid xid,
int flags)
throws javax.transaction.xa.XAException
start in interface javax.transaction.xa.XAResourcexid - the transaction idflags - TMNOFLAGS, TMJOIN, or TMRESUMEjavax.transaction.xa.XAExceptionpublic void commit(javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException
commit in interface javax.transaction.xa.XAResourcexid - the transaction idonePhase - use a one-phase protocol if truejavax.transaction.xa.XAExceptionpublic void addStatementEventListener(javax.sql.StatementEventListener listener)
addStatementEventListener in interface javax.sql.PooledConnectionlistener - the new statement event listenerpublic void removeStatementEventListener(javax.sql.StatementEventListener listener)
removeStatementEventListener in interface javax.sql.PooledConnectionlistener - the statement event listenerpublic java.lang.String toString()
toString in class java.lang.Object