|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.sql.StatementEvent
public class StatementEvent
StatementEvent 被傳送給所有用 PooledConnection 註冊的 StatementEventListener。當驅動程序確定與 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 關聯的 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
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。