public class StatementEvent extends EventObject
source| Constructor and Description |
|---|
StatementEvent(PooledConnection con,
PreparedStatement statement)
the constructor with null exception
|
StatementEvent(PooledConnection con,
PreparedStatement statement,
SQLException exception)
the constructor
|
| Modifier and Type | Method and Description |
|---|---|
SQLException |
getSQLException()
Returns the exception to be thrown
|
PreparedStatement |
getStatement()
Returns the statement of this event
|
getSource, toStringpublic StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
con - the statment related connectionstatement - the statement to be closedexception - the exception to throwpublic StatementEvent(PooledConnection con, PreparedStatement statement)
con - the statment related connectionstatement - the statement to be closedpublic PreparedStatement getStatement()
public SQLException getSQLException()