java.lang.Object
java.util.EventObject
javax.sql.StatementEvent
- 所有已实现的接口:
-
Serializable
StatementEvent被发送到所有已向PooledConnection注册的StatementEventListener。当驱动程序确定与PooledConnection关联的PreparedStatement已关闭或驱动程序确定无效时,会发生这种情况。
- 自:
- 1.6
- 参见:
-
Field Summary
Fields declared in class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionStatementEvent(PooledConnection con, PreparedStatement statement) 使用指定的PooledConnection和PreparedStatement构造一个StatementEvent。StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) 使用指定的PooledConnection、PreparedStatement和SQLException构造一个StatementEvent。 -
Method Summary
Modifier and TypeMethodDescription返回驱动程序即将抛出的SQLException。返回正在关闭或无效的PreparedStatement。Methods declared in class java.util.EventObject
getSource, toString
-
Constructor Details
-
StatementEvent
使用指定的PooledConnection和PreparedStatement构造一个StatementEvent。事件中包含的SQLException默认为null。- 参数:
-
con- 与关闭或无效的PreparedStatement关联的PooledConnection。 -
statement- 正在关闭或无效的PreparedStatement。 - 抛出:
-
IllegalArgumentException- 如果con为null。 - 自:
- 1.6
-
StatementEvent
使用指定的PooledConnection、PreparedStatement和SQLException构造一个StatementEvent。- 参数:
-
con- 与关闭或无效的PreparedStatement关联的PooledConnection。 -
statement- 正在关闭或无效的PreparedStatement。 -
exception- 驱动程序即将向应用程序抛出的SQLException。 - 抛出:
-
IllegalArgumentException- 如果con为null。 - 自:
- 1.6
-
-
Method Details
-
getStatement
返回正在关闭或无效的PreparedStatement。- 返回:
-
正在关闭或无效的
PreparedStatement。 - 自:
- 1.6
-
getSQLException
返回驱动程序即将抛出的SQLException。- 返回:
-
驱动程序即将抛出的
SQLException。 - 自:
- 1.6
-