StatementEventpublic class StatementEvent extends EventObject A StatementEvent is sent to all StatementEventListener s 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.
|
Fields Summary |
---|
private SQLException | exception | private PreparedStatement | statement |
Constructors Summary |
---|
public StatementEvent(PooledConnection con, PreparedStatement statement)Constructs a StatementEvent with the specified PooledConnection and
PreparedStatement . The SQLException contained in the event defaults to
null.
super(con);
this.statement = statement;
this.exception = null;
| public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)Constructs a StatementEvent with the specified PooledConnection ,
PreparedStatement and SQLException
super(con);
this.statement = statement;
this.exception = exception;
|
Methods Summary |
---|
public java.sql.SQLException | getSQLException()Returns the SQLException the driver is about to throw
return this.exception;
| public java.sql.PreparedStatement | getStatement()Returns the PreparedStatement that is being closed or is invalid
return this.statement;
|
|