public class StatementEvent extends EventObject
PooledConnection に登録されたすべての StatementEventListener に、StatementEvent が送信されます。この処理は、ドライバが、PooledConnection に関連付けられた PreparedStatement が閉じたか、無効であると判断した場合に行われます。
 source| コンストラクタと説明 | 
|---|
| StatementEvent(PooledConnection con,               PreparedStatement statement)指定された  PooledConnectionとPreparedStatementを持つStatementEventを構築します。 | 
| StatementEvent(PooledConnection con,               PreparedStatement statement,               SQLException exception)指定された  PooledConnection、PreparedStatement、およびSQLExceptionを持つStatementEventを構築します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
| SQLException | getSQLException()ドライバがスローしようとしている  SQLExceptionを返します。 | 
| PreparedStatement | getStatement()閉じられた、または無効な  PreparedStatementを返します。 | 
getSource, toStringpublic StatementEvent(PooledConnection con, PreparedStatement statement)
PooledConnection と PreparedStatement を持つ StatementEvent を構築します。このイベントに含まれる SQLException は、デフォルトで null になります。
 con - 閉じられた、または無効な PreparedStatement が関連付けられている PooledConnection。statement - 閉じられた、または無効な PreparedStatement
 IllegalArgumentException - con が null である場合。public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
PooledConnection、PreparedStatement、および SQLException を持つ StatementEvent を構築します。
 con - 閉じられた、または無効な PreparedStatement が関連付けられている PooledConnection。statement - 閉じられた、または無効な PreparedStatementexception - ドライバがアプリケーションにスローしようとしている SQLException IllegalArgumentException - con が null である場合。
public PreparedStatement getStatement()
PreparedStatement を返します。
 PreparedStatement
public SQLException getSQLException()
SQLException を返します。
 SQLException
 バグまたは機能を送信 
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.