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 PooledConnection
SQLException
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public XAResource getXAResource() throws SQLException
getXAResource
in interface XAConnection
SQLException
public void close() throws SQLException
close
in interface PooledConnection
SQLException
protected void notifyListener(SQLException e)
e
- public void addStatementEventListener(StatementEventListener arg0)
addStatementEventListener
in interface PooledConnection
public void removeStatementEventListener(StatementEventListener arg0)
removeStatementEventListener
in interface PooledConnection
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void end(Xid xid, int flag) throws XAException
end
in interface XAResource
XAException
XAResource.end(javax.transaction.xa.Xid, int)
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
XAResource.forget(javax.transaction.xa.Xid)
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource arg0) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
XAResource.recover(int)
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public boolean setTransactionTimeout(int seconds) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid xid, int flag) throws XAException
start
in interface XAResource
XAException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.