public interface ConnectionPoolDataSource extends CommonDataSource
PooledConnectionオブジェクトのファクトリです。 このインタフェースを実装するオブジェクトは、一般に、Java™ Naming and Directory Interface (JNDI)を基にしたネーム・サービスに登録されています。 | 修飾子と型 | メソッド | 説明 |
|---|---|---|
PooledConnection |
getPooledConnection() |
プールされた接続として使用可能な、データベースへの物理接続の確立を試みます。
|
PooledConnection |
getPooledConnection(String user, String password) |
プールされた接続として使用可能な、データベースへの物理接続の確立を試みます。
|
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterPooledConnection getPooledConnection() throws SQLException
ConnectionPoolDataSourceオブジェクトが表すデータベースへの物理接続であるPooledConnectionオブジェクトSQLException - データベース・アクセス・エラーが発生した場合SQLFeatureNotSupportedException - JDBCドライバがこのメソッドをサポートしない場合PooledConnection getPooledConnection(String user, String password) throws SQLException
user - その代理として接続が行われるデータベース・ユーザーpassword - ユーザーのパスワードConnectionPoolDataSourceオブジェクトが表すデータベースへの物理接続であるPooledConnectionオブジェクトSQLException - データベース・アクセス・エラーが発生した場合SQLFeatureNotSupportedException - JDBCドライバがこのメソッドをサポートしない場合 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。