Package com.alibaba.druid.pool.xa
Class JtdsXAConnection
- java.lang.Object
-
- com.alibaba.druid.pool.xa.JtdsXAConnection
-
- All Implemented Interfaces:
PooledConnection,XAConnection
public class JtdsXAConnection extends Object implements XAConnection
-
-
Constructor Summary
Constructors Constructor Description JtdsXAConnection(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(ConnectionEventListener listener)voidaddStatementEventListener(StatementEventListener listener)voidclose()ConnectiongetConnection()XAResourcegetXAResource()voidremoveConnectionEventListener(ConnectionEventListener listener)voidremoveStatementEventListener(StatementEventListener listener)
-
-
-
Constructor Detail
-
JtdsXAConnection
public JtdsXAConnection(Connection connection) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfacePooledConnection- Throws:
SQLException
-
close
public void close() throws SQLException- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-
getXAResource
public XAResource getXAResource() throws SQLException
- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
-