java.lang.Object
java.util.EventObject
javax.sql.StatementEvent
- すべての実装されたインタフェース:
Serializable
public class StatementEvent extends EventObject
PooledConnectionに登録されたすべてのStatementEventListenerに、StatementEventが送信されます。 この処理は、ドライバが、PooledConnectionに関連付けられたPreparedStatementが閉じたか、無効であると判断した場合に行われます。 - 導入されたバージョン:
- 1.6
- 関連項目:
- 直列化された形式
-
フィールドのサマリー
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 StatementEvent(PooledConnection con, PreparedStatement statement)指定されたPooledConnectionとPreparedStatementを持つStatementEventを構築します。StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)指定されたPooledConnection、PreparedStatement、およびSQLExceptionを持つStatementEventを構築します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 SQLExceptiongetSQLException()ドライバがスローしようとしているSQLExceptionを返します。PreparedStatementgetStatement()閉じられた、または無効なPreparedStatementを返します。
-
コンストラクタの詳細
-
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement)指定されたPooledConnectionとPreparedStatementを持つStatementEventを構築します。 このイベントに含まれるSQLExceptionは、デフォルトでnullになります。- パラメータ:
con- 閉じられた、または無効なPreparedStatementが関連付けられているPooledConnection。statement- 閉じられた、または無効なPreparedStatement- 例外:
IllegalArgumentException-conがnullである場合。- 導入されたバージョン:
- 1.6
-
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)指定されたPooledConnection、PreparedStatement、およびSQLExceptionを持つStatementEventを構築します。- パラメータ:
con- 閉じられた、または無効なPreparedStatementが関連付けられているPooledConnection。statement- 閉じられた、または無効なPreparedStatementexception- ドライバがアプリケーションにスローしようとしているSQLException- 例外:
IllegalArgumentException-conがnullである場合。- 導入されたバージョン:
- 1.6
-
-
メソッドの詳細
-
getStatement
public PreparedStatement getStatement()閉じられた、または無効なPreparedStatementを返します。- 戻り値:
- 閉じられた、または無効な
PreparedStatement - 導入されたバージョン:
- 1.6
-
getSQLException
public SQLException getSQLException()ドライバがスローしようとしているSQLExceptionを返します。- 戻り値:
- ドライバがスローしようとしている
SQLException - 導入されたバージョン:
- 1.6
-