|
|||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||
java.lang.Objectorg.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingPreparedStatement
org.apache.commons.dbcp.PoolablePreparedStatement
PreparedStatement のプールを実現するために
PoolingConnection と協力して動作する DelegatingPreparedStatement です。
close() メソッドは自分の所属するプールにこのステートメントを戻します。(PoolingConnection を参照)
PoolingConnection | フィールドの概要 | |
protected Connection |
_conn
このステートメントを生成した Connection です。
|
protected Object |
_key
KeyedObjectPool で使用されるこのステートメントのキーです。
|
protected org.apache.commons.pool.KeyedObjectPool |
_pool
このステートメントを取り出す元となる KeyedObjectPool です。
|
| クラス org.apache.commons.dbcp.DelegatingPreparedStatement から継承したフィールド |
_closed, _stmt |
| インタフェース java.sql.Statement から継承したフィールド |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| コンストラクタの概要 | |
PoolablePreparedStatement(PreparedStatement stmt,
Object key,
org.apache.commons.pool.KeyedObjectPool pool,
Connection conn)
コンストラクタ。 |
|
| メソッドの概要 | |
void |
close()
このステートメントをプールに返します。 |
Connection |
getConnection()
このステートメントを生成した Connection を返します。
|
| クラス org.apache.commons.dbcp.AbandonedTrace から継承したメソッド |
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース java.sql.PreparedStatement から継承したメソッド |
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| フィールドの詳細 |
protected Connection _conn
Connection です。
protected Object _key
KeyedObjectPool で使用されるこのステートメントのキーです。
protected org.apache.commons.pool.KeyedObjectPool _pool
KeyedObjectPool です。
The KeyedObjectPool from which I was obtained.
| コンストラクタの詳細 |
public PoolablePreparedStatement(PreparedStatement stmt,
Object key,
org.apache.commons.pool.KeyedObjectPool pool,
Connection conn)
stmt - 内部に保持する PreparedStatement
key - KeyedObjectPool で使用されるこのステートメントのキー
pool - このステートメントを取り出す元となる KeyedObjectPool
conn - このステートメントを生成した Connection
| メソッドの詳細 |
public void close()
throws SQLException
Statement 内の closeDelegatingPreparedStatement 内の closeSQLException
public Connection getConnection()
throws SQLException
Connection を返します。
Return the Connection from which I was created.
Statement 内の getConnectionDelegatingPreparedStatement 内の getConnectionSQLException
|
|||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||