java.lang.Object
java.util.EventObject
javax.sql.StatementEvent
- 所有已实现的接口:
Serializable
一个
StatementEvent 被发送到所有在 PooledConnection 注册的 StatementEventListener 。当驱动程序确定与 PooledConnection 关联的 PreparedStatement 已关闭或驱动程序确定无效时,会发生这种情况。
- 自从:
- 1.6
- 参见:
-
字段摘要
在类 java.util.EventObject 中声明的字段
source -
构造方法总结
构造方法构造方法描述StatementEvent(PooledConnection con, PreparedStatement statement) 使用指定的PooledConnection和PreparedStatement构造一个StatementEvent。StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) 用指定的PooledConnection、PreparedStatement和SQLException构造一个StatementEvent -
方法总结
修饰符和类型方法描述返回驱动程序即将抛出的SQLException返回正在关闭或无效的PreparedStatement在类 java.util.EventObject 中声明的方法
getSource, toString
-
构造方法详细信息
-
StatementEvent
使用指定的PooledConnection和PreparedStatement构造一个StatementEvent。事件中包含的SQLException默认为 null。- 参数:
con- 与已关闭或无效的PreparedStatement关联的PooledConnection。statement- 正在关闭或无效的PreparedStatement- 抛出:
IllegalArgumentException- 如果con为空。- 自从:
- 1.6
-
StatementEvent
用指定的PooledConnection、PreparedStatement和SQLException构造一个StatementEvent- 参数:
con- 与已关闭或无效的PreparedStatement关联的PooledConnection。statement- 正在关闭或无效的PreparedStatementexception- 驱动程序即将向应用程序抛出的SQLException- 抛出:
IllegalArgumentException- 如果con为空。- 自从:
- 1.6
-
-
方法详情
-
getStatement
返回正在关闭或无效的PreparedStatement- 返回:
-
正在关闭或无效的
PreparedStatement - 自从:
- 1.6
-
getSQLException
返回驱动程序即将抛出的SQLException- 返回:
SQLException司机正要扔- 自从:
- 1.6
-