|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.util.EventObject
javax.sql.StatementEvent
public class StatementEvent
PooledConnection に登録されたすべての StatementEventListener に、StatementEvent が送信されます。この処理は、ドライバが、PooledConnection に関連付けられた PreparedStatement が閉じたか、無効であると判断した場合に行われます。
| フィールドの概要 |
|---|
| クラス java.util.EventObject から継承されたフィールド |
|---|
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 を返します。 |
| クラス java.util.EventObject から継承されたメソッド |
|---|
getSource, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public StatementEvent(PooledConnection con,
PreparedStatement statement)
PooledConnection と PreparedStatement を持つ StatementEvent を構築します。このイベントに含まれる SQLException は、デフォルトで null になります。
con - 閉じられた、または無効な PreparedStatement が関連付けられている PooledConnectionstatement - 閉じられた、または無効な PreparedStatement
IllegalArgumentException - con が null の場合
public StatementEvent(PooledConnection con,
PreparedStatement statement,
SQLException exception)
PooledConnection、PreparedStatement、および SQLException を持つ StatementEvent を構築します。
con - 閉じられた、または無効な PreparedStatement が関連付けられている PooledConnectionstatement - 閉じられた、または無効な PreparedStatementexception - ドライバがアプリケーションにスローしようとしている SQLException
IllegalArgumentException - con が null の場合
| メソッドの詳細 |
|---|
public PreparedStatement getStatement()
PreparedStatement を返します。
PreparedStatement
public SQLException getSQLException()
SQLException を返します。
SQLException
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。