com.alibaba.druid.pool.xa
Class DruidPooledXAConnection

java.lang.Object
  extended by com.alibaba.druid.pool.xa.DruidPooledXAConnection
All Implemented Interfaces:
PooledConnection, XAConnection

public class DruidPooledXAConnection
extends Object
implements XAConnection


Constructor Summary
DruidPooledXAConnection(DruidPooledConnection pooledConnection, XAConnection xaConnection)
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void addStatementEventListener(StatementEventListener listener)
           
 void close()
           
 Connection getConnection()
           
 XAResource getXAResource()
           
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 void removeStatementEventListener(StatementEventListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DruidPooledXAConnection

public DruidPooledXAConnection(DruidPooledConnection pooledConnection,
                               XAConnection xaConnection)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface PooledConnection
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface PooledConnection
Throws:
SQLException

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface PooledConnection

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface PooledConnection

addStatementEventListener

public void addStatementEventListener(StatementEventListener listener)
Specified by:
addStatementEventListener in interface PooledConnection

removeStatementEventListener

public void removeStatementEventListener(StatementEventListener listener)
Specified by:
removeStatementEventListener in interface PooledConnection

getXAResource

public XAResource getXAResource()
                         throws SQLException
Specified by:
getXAResource in interface XAConnection
Throws:
SQLException


Copyright © 2012 Alibaba Group. All Rights Reserved.