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, 2014, Oracle and/or its affiliates. All rights reserved.