public class DruidPooledXAConnection extends Object implements XAConnection
Constructor and Description |
---|
DruidPooledXAConnection(DruidPooledConnection pooledConnection,
XAConnection xaConnection) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
Connection |
getConnection() |
XAResource |
getXAResource() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public DruidPooledXAConnection(DruidPooledConnection pooledConnection, XAConnection xaConnection)
public Connection getConnection() throws SQLException
getConnection
in interface PooledConnection
SQLException
public void close() throws SQLException
close
in interface PooledConnection
SQLException
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener
in interface PooledConnection
public void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener
in interface PooledConnection
public XAResource getXAResource() throws SQLException
getXAResource
in interface XAConnection
SQLException
Copyright © 2013–2017 Alibaba Group. All rights reserved.