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 PreparedStatementis 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 |