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

语法

public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)

参数

listener

ConnectionEventListener 对象。

备注

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

请参阅

SQLServerPooledConnection 类
SQLServerPooledConnection 方法
SQLServerPooledConnection 成员