Package org.firebirdsql.jdbc
Interface FBObjectListener.StatementListener
- 
- All Known Implementing Classes:
- InternalTransactionCoordinator,- InternalTransactionCoordinator.AbstractTransactionCoordinator
 - Enclosing interface:
- FBObjectListener
 
 public static interface FBObjectListener.StatementListenerListener for the events generated by statements.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecutionStarted(FBStatement stmt)Notify listener that statement execution is being started.FBConnectiongetConnection()Get the connection object to which this listener belongs to.voidstatementClosed(FBStatement stmt)Notify the listener that statement was closed.voidstatementCompleted(FBStatement stmt)Notify 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 Detail- 
getConnectionFBConnection getConnection() throws java.sql.SQLException Get the connection object to which this listener belongs to.- Returns:
- instance of FBConnection
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
executionStartedvoid executionStarted(FBStatement stmt) throws java.sql.SQLException Notify listener that statement execution is being started.- Parameters:
- stmt- statement that is being executed.
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
statementClosedvoid statementClosed(FBStatement stmt) throws java.sql.SQLException Notify the listener that statement was closed.- Parameters:
- stmt- statement that was closed.
- Throws:
- java.sql.SQLException
 
 - 
statementCompletedvoid statementCompleted(FBStatement stmt) throws java.sql.SQLException Notify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true).- Parameters:
- stmt- statement that was completed.
- Throws:
- java.sql.SQLException
 
 - 
statementCompletedvoid statementCompleted(FBStatement stmt, boolean success) throws java.sql.SQLException 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:
- java.sql.SQLException- if an error occured.
 
 
- 
 
-