Module org.firebirdsql.jaybird
Package org.firebirdsql.jdbc
Interface FBObjectListener.StatementListener
- All Known Implementing Classes:
InternalTransactionCoordinator
,InternalTransactionCoordinator.AbstractTransactionCoordinator
- Enclosing class:
- FBObjectListener
public static interface FBObjectListener.StatementListener
Listener for the events generated by statements.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notify listener that statement execution is being started.Get the connection object to which this listener belongs to.void
Notify the listener that statement was closed.void
Notify the listener that statement is completed.void
statementCompleted
(AbstractStatement stmt, boolean success) Notify the listener that statement is completed and tell whether execution was successful 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
-
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 successful or not.- Parameters:
stmt
- statement that was completedsuccess
-true
if completion was successful- Throws:
SQLException
-