addConnectionEventListener 方法 (SQLServerPooledConnection)

下载 JDBC 驱动程序

注册给定的事件侦听器,以便在此 SQLServerPooledConnection 对象发生事件时通知该侦听器。

语法

  
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)  

参数

listener

ConnectionEventListener 对象。

注解

此 addConnectionEventListener 方法是由 javax.sql.PooledConnection 接口中的 addConnectionEventListener 方法指定的。

另请参阅

SQLServerPooledConnection 方法
SQLServerPooledConnection 成员
SQLServerPooledConnection 类