Package org.firebirdsql.jdbc
Interface FBObjectListener.StatementListener
- All Known Implementing Classes:
InternalTransactionCoordinator,InternalTransactionCoordinator.AbstractTransactionCoordinator
- Enclosing interface:
- FBObjectListener
public static interface FBObjectListener.StatementListener
Listener for the events generated by statements.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionStarted(FBStatement stmt) Notify listener that statement execution is being started.Get the connection object to which this listener belongs to.voidstatementClosed(FBStatement stmt) Notify the listener that statement was closed.voidNotify the listener that statement is completed.voidstatementCompleted(FBStatement stmt, boolean success) Notify the listener that statement is completed and tell whether execution was successfull or not.
-
Method Details
-
getConnection
Get the connection object to which this listener belongs to.- Returns:
- instance of
FBConnection - Throws:
SQLException- if something went wrong.
-
executionStarted
Notify listener that statement execution is being started.- Parameters:
stmt- statement that is being executed.- Throws:
SQLException- if something went wrong.
-
statementClosed
Notify the listener that statement was closed.- Parameters:
stmt- statement that was closed.- Throws:
SQLException
-
statementCompleted
Notify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true).- Parameters:
stmt- statement that was completed.- Throws:
SQLException
-
statementCompleted
Notify the listener that statement is completed and tell whether execution was successfull or not.- Parameters:
stmt- statement that was completed.success-trueif completion was successfull.- Throws:
SQLException- if an error occured.
-