javax.sql.PooledConnection
📄字数 627
👁️阅读量 加载中...
javax.sql.PooledConnection 已实现的接口
返回类型 | 方法 | 描述 |
---|---|---|
void | addConnectionEventListener(ConnectionEventListener listener) | 注册给定的事件侦听器,以便在 PooledConnection对象发生事件时通知它。 |
void | addStatementEventListener(StatementEventListener listener) | 注册一个 StatementEventListener与此 PooledConnection对象。 |
void | close() | 关闭这个 PooledConnection对象所代表的物理连接。 |
Connection | getConnection() | 创建并返回一个 Connection对象,它是对于这个物理连接的手柄 PooledConnection对象表示。 |
void | removeConnectionEventListener(ConnectionEventListener listener) | 从在 PooledConnection对象发生事件时将被通知的组件列表中删除给定的事件侦听器。 |
void | removeStatementEventListener(StatementEventListener listener) | 从驱动程序检测到PreparedStatement已关闭或无效时将通知的组件列表中删除指定的StatementEventListener |