接口的使用
javax.sql.PooledConnection
使用 PooledConnection 的包
-
PooledConnection 在 javax.sql 中的用法
javax.sql 中 PooledConnection 的子接口javax.sql 中返回 PooledConnection 的方法修饰符和类型方法描述PooledConnectionBuilder.build()返回此构建器定义的对象的实例。ConnectionPoolDataSource.getPooledConnection()尝试建立可用作池连接的物理数据库连接。ConnectionPoolDataSource.getPooledConnection(String user, String password) 尝试建立可用作池连接的物理数据库连接。javax.sql 中的构造函数,参数类型为 PooledConnection修饰符构造方法描述构造一个用给定的PooledConnection对象初始化的ConnectionEvent对象。ConnectionEvent(PooledConnection con, SQLException ex) 构造一个用给定的PooledConnection对象和SQLException对象初始化的ConnectionEvent对象。StatementEvent(PooledConnection con, PreparedStatement statement) 使用指定的PooledConnection和PreparedStatement构造一个StatementEvent。StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) 用指定的PooledConnection、PreparedStatement和SQLException构造一个StatementEvent