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.
| Modifier and Type | Field and Description |
|---|---|
| private SQLException | |
| pack-priv static final long | |
| private PreparedStatement |
| Access | Constructor and Description |
|---|---|
| public | StatementEvent(PooledConnection
The con, PreparedStatement PooledConnection that the closed or invalid
PreparedStatementis associated with.The statement)PreparedStatement that is being closed or is invalidConstructs a |
| public | StatementEvent(PooledConnection
The con, PreparedStatement PooledConnection that the closed or invalid PreparedStatement
is associated with.The statement, SQLException PreparedStatement that is being closed or is invalidThe exception)SQLException the driver is about to throw to
the applicationConstructs a |
| Modifier and Type | Method and Description |
|---|---|
| public SQLException | Returns: TheSQLException the driver is about to throwReturns the |
| public PreparedStatement | Returns: ThePreparedStatement that is being closed or is invalidReturns the |
| exception | back to summary |
|---|---|
| private SQLException exception | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| statement | back to summary |
|---|---|
private PreparedStatement statement
| |
| StatementEvent | back to summary |
|---|---|
| public StatementEvent(PooledConnection con, PreparedStatement statement) Constructs a
| |
| StatementEvent | back to summary |
|---|---|
| public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) Constructs a
| |
| getSQLException | back to summary |
|---|---|
| public SQLException getSQLException() Returns the
| |
| getStatement | back to summary |
|---|---|
| public PreparedStatement getStatement() Returns the
| |