public class XAConnectionImpl extends Object implements XAConnection, XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAConnectionImpl(ConnectionImpl conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener arg0) |
void |
close() |
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flag) |
void |
forget(Xid xid) |
Connection |
getConnection() |
int |
getTransactionTimeout() |
XAResource |
getXAResource() |
boolean |
isSameRM(XAResource arg0) |
protected void |
notifyListener(SQLException e)
Notify listeners, if there is any, about the connection status.
|
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener arg0) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int seconds) |
void |
start(Xid xid,
int flag) |
public XAConnectionImpl(ConnectionImpl conn)
public Connection getConnection() throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic XAResource getXAResource() throws SQLException
getXAResource in interface XAConnectionSQLExceptionpublic void close()
throws SQLException
close in interface PooledConnectionSQLExceptionprotected void notifyListener(SQLException e)
e - public void addStatementEventListener(StatementEventListener arg0)
addStatementEventListener in interface PooledConnectionpublic void removeStatementEventListener(StatementEventListener arg0)
removeStatementEventListener in interface PooledConnectionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void end(Xid xid, int flag) throws XAException
end in interface XAResourceXAExceptionXAResource.end(javax.transaction.xa.Xid, int)public void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionXAResource.forget(javax.transaction.xa.Xid)public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource arg0) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionXAResource.recover(int)public void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int flag) throws XAException
start in interface XAResourceXAExceptionCopyright © 2019. All rights reserved.