Package javax.sql
Interface StatementEventListener
- All Superinterfaces:
EventListener
public interface StatementEventListener extends EventListener
An object that registers to be notified of events that occur on
PreparedStatements that are in the Statement pool.
-
Method Summary
Modifier and Type Method Description voidstatementClosed(StatementEvent event)The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is closed.voidstatementErrorOccurred(StatementEvent event)The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid, before a SQLException is thrown
-
Method Details
-
statementClosed
The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is closed.- Parameters:
event- an StatementEvent object describing the event of statement closed
-
statementErrorOccurred
The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid, before a SQLException is thrown- Parameters:
event- an StatementEvent object describing the event of statement error occurred
-