Skip to content

适用虚谷数据库版本

v12.9



适用虚谷数据库版本

v12.9


javax.sql.PooledConnection

📄字数 627
👁️阅读量 加载中...

javax.sql.PooledConnection 已实现的接口

返回类型 方法描述
voidaddConnectionEventListener(ConnectionEventListener listener)注册给定的事件侦听器,以便在 PooledConnection对象发生事件时通知它。
voidaddStatementEventListener(StatementEventListener listener)注册一个 StatementEventListener与此 PooledConnection对象。
voidclose()关闭这个 PooledConnection对象所代表的物理连接。
ConnectiongetConnection()创建并返回一个 Connection对象,它是对于这个物理连接的手柄 PooledConnection对象表示。
voidremoveConnectionEventListener(ConnectionEventListener listener)从在 PooledConnection对象发生事件时将被通知的组件列表中删除给定的事件侦听器。
voidremoveStatementEventListener(StatementEventListener listener)从驱动程序检测到PreparedStatement已关闭或无效时将通知的组件列表中删除指定的StatementEventListener