|
JavaTM 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 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。