JavaTM Platform
Standard Ed. 6

接口 javax.sql.ConnectionEventListener
的使用

使用 ConnectionEventListener 的软件包
javax.sql 为通过 JavaTM 编程语言进行服务器端数据源访问和处理提供 API。 
 

javax.sqlConnectionEventListener 的使用
 

参数类型为 ConnectionEventListenerjavax.sql 中的方法
 void PooledConnection.addConnectionEventListener(ConnectionEventListener listener)
          注册给定的事件侦听器,以便在此 PooledConnection 对象上发生事件时它将得到通知。
 void PooledConnection.removeConnectionEventListener(ConnectionEventListener listener)
          从在此 PooledConnection 对象上发生事件时得到通知的组件所组成的列表中移除给定的事件侦听器。
 


JavaTM Platform
Standard Ed. 6


© ChiefLeo 沪ICP备19010539号-1 - ChiefLeo博客 - ChiefLeo上网导航 - ChiefLeo知识库 - ChiefLeo新闻 - ChiefLeo精选视频