StatementEvent
public class StatementEvent
extends EventObject
一个StatementEvent
被发送到所有StatementEventListener
,这些都是通过PooledConnection
注册的。 当驾驶员判断为发生这种PreparedStatement
与所述相关联的PooledConnection
已被关闭或驱动程序确定是无效的。
Summary
Public constructors
StatementEvent
StatementEvent (PooledConnection con,
PreparedStatement statement)
构造一个StatementEvent
具有指定PooledConnection
和PreparedStatement
。 包含在事件中的SQLException
默认为null。
Parameters |
con |
PooledConnection : The PooledConnection that the closed or invalid PreparedStatement is associated with. |
statement |
PreparedStatement : The PreparedStatement that is bieng closed or is invalid |
StatementEvent
StatementEvent (PooledConnection con,
PreparedStatement statement,
SQLException exception)
构造一个 StatementEvent
具有指定 PooledConnection
, PreparedStatement
和 SQLException
Parameters |
con |
PooledConnection : The PooledConnection that the closed or invalid PreparedStatement is associated with. |
statement |
PreparedStatement : The PreparedStatement that is being closed or is invalid |
exception |
SQLException : The SQLException the driver is about to throw to the application |
Public methods
getSQLException
SQLException getSQLException ()
返回驾驶员即将抛出的 SQLException
Returns |
SQLException |
The SQLException the driver is about to throw |