org.apache.commons.dbcp
クラス PoolableConnection
java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingConnection
org.apache.commons.dbcp.PoolableConnection
- すべての実装インタフェース:
- Connection
- public class PoolableConnection
- extends DelegatingConnection
自身がクローズされる際に内部のコネクションをクローズせず、自身を ObjectPool
に返す、内部の Connection に処理を委託する Connection です。
A delegating connection that, rather than closing the underlying
connection, returns itself to an {@link ObjectPool} when
closed.
- バージョン:
- $Id: PoolableConnection.java,v 1.1.1.1 2004/02/13 10:02:03 hioki Exp $
- 作成者:
- Rodney Waldhoff, Glenn L. Nielsen, James House (james@interobjective.com)
- 翻訳者:
- 日置 聡
- 翻訳状況:
- 初稿(校正者募集中)
- 翻訳更新日:
- 2003/09/19
|
フィールドの概要 |
protected org.apache.commons.pool.ObjectPool |
_pool
自身を返す先となるプールです。 |
| クラス org.apache.commons.dbcp.DelegatingConnection から継承したメソッド |
activate, checkOpen, clearWarnings, commit, createStatement, createStatement, getAutoCommit, getCatalog, getDelegate, getInnermostDelegate, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, passivate, prepareCall, prepareCall, prepareStatement, prepareStatement, rollback, setAutoCommit, setCatalog, setDelegate, setReadOnly, setTransactionIsolation, setTypeMap |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース java.sql.Connection から継承したメソッド |
createStatement, getHoldability, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setHoldability, setSavepoint, setSavepoint |
_pool
protected org.apache.commons.pool.ObjectPool _pool
- 自身を返す先となるプールです。
The pool to which I should return.
PoolableConnection
public PoolableConnection(Connection conn,
org.apache.commons.pool.ObjectPool pool)
- パラメータ:
conn - 内部に保持するコネクション
my underlying connection
pool - クローズの際に自身を返す先となるプール
the pool to which I should return when closed
PoolableConnection
public PoolableConnection(Connection conn,
org.apache.commons.pool.ObjectPool pool,
AbandonedConfig config)
- パラメータ:
conn - 内部に保持するコネクション
my underlying connection
pool - クローズの際に自身を返す先となるプール
the pool to which I should return when closed
config - 破棄された際の設定情報
the abandoned configuration settings
close
public void close()
throws SQLException
- 自身をプールに返します。
Returns me to my pool.
- 定義:
- インタフェース
Connection 内の close - オーバーライド:
- クラス
DelegatingConnection 内の close
- 例外:
SQLException
reallyClose
public void reallyClose()
throws SQLException
- 内部に持つ
Connection を実際にクローズします。
Actually close my underlying {@link Connection}.
- 例外:
SQLException
このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation