public class StatementEvent extends EventObject
StatementEvent发送给所有
StatementEventListeners分别与
PooledConnection注册。发生这种情况时,司机决定了
PreparedStatement,与
PooledConnection关联已经关闭或司机决定无效。
source| Constructor and Description |
|---|
StatementEvent(PooledConnection con, PreparedStatement statement)
构建了一个具有指定
PooledConnection和
PreparedStatement
StatementEvent。
|
StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
构建了一个具有指定
PooledConnection
StatementEvent,
PreparedStatement和
SQLException
|
| Modifier and Type | Method and Description |
|---|---|
SQLException |
getSQLException()
返回
SQLException司机要把
|
PreparedStatement |
getStatement()
返回
PreparedStatement被关闭或无效
|
getSource, toStringpublic StatementEvent(PooledConnection con, PreparedStatement statement)
PooledConnection和
PreparedStatement
StatementEvent。包含在事件的违约
SQLException空。
con -
PooledConnection与封闭的或无效的
PreparedStatementis。
statement -
PreparedStatement被关闭或无效
IllegalArgumentException -如果
con是空的。
public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
StatementEvent与指定的
PooledConnection,
PreparedStatement和
SQLException
con -
PooledConnection,关闭或无效的
PreparedStatement与。
statement -
PreparedStatement被关闭或无效
exception -
SQLException the司机要扔到应用
IllegalArgumentException -如果
con是空的。
public PreparedStatement getStatement()
PreparedStatement被关闭或无效
PreparedStatement被关闭或无效
public SQLException getSQLException()
SQLException司机要把
SQLException司机要把
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.