public class StatementEvent extends EventObject
StatementEvent
发送给所有
StatementEventListener
s分别与
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, toString
public StatementEvent(PooledConnection con, PreparedStatement statement)
PooledConnection
和
PreparedStatement
StatementEvent
。包含在事件的违约
SQLException
空。
con
-
PooledConnection
与封闭的或无效的
PreparedStatement
is。
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.