java.lang.Objectjava.util.EventObject
javax.sql.StatementEvent
public class StatementEvent
A StatementEvent is sent to all StatementEventListeners which were registered with a PooledConnection. This occurs when the driver determines that a PreparedStatement that is associated with the PooledConnection has been closed or the driver determines is invalid.
Field Summary |
---|
Fields inherited from class java.util. EventObject |
---|
source |
Constructor Summary | |
---|---|
StatementEvent
(
PooledConnection
con,
PreparedStatement
statement) Constructs a StatementEvent with the specified PooledConnection and PreparedStatement. |
|
StatementEvent
(
PooledConnection
con,
PreparedStatement
statement,
SQLException
exception) Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException |
Method Summary | |
---|---|
SQLException |
getSQLException
() Returns the SQLException the driver is about to throw |
PreparedStatement |
getStatement
() Returns the PreparedStatement that is being closed or is invalid |
Methods inherited from class java.util. EventObject |
---|
getSource , toString |
Methods inherited from class java.lang. Object |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
---|
public StatementEvent(PooledConnection con, PreparedStatement statement)
public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
Method Detail |
---|
public PreparedStatement getStatement()
public SQLException getSQLException()