org.firebirdsql.jdbc
Interface FBObjectListener.StatementListener
- InternalTransactionCoordinator, InternalTransactionCoordinator.AbstractTransactionCoordinator, InternalTransactionCoordinator.AutoCommitCoordinator, InternalTransactionCoordinator.LocalTransactionCoordinator, InternalTransactionCoordinator.ManagedTransactionCoordinator, InternalTransactionCoordinator.MetaDataTransactionCoordinator
public static interface FBObjectListener.StatementListener
Listener for the events generated by statements.
executionStarted
public void executionStarted(AbstractStatement stmt)
throws SQLException
Notify listener that statement execution is being started.
stmt
- statement that is being executed.
getConnection
public AbstractConnection getConnection()
throws SQLException
Get the connection object to which this listener belongs to.
statementClosed
public void statementClosed(AbstractStatement stmt)
throws SQLException
Notify the listener that statement was closed.
stmt
- statement that was closed.
statementCompleted
public void statementCompleted(AbstractStatement stmt)
throws SQLException
Notify the listener that statement is completed. This is shortcut
method for statementCompleted(AbstractStatement, true)
.
stmt
- statement that was completed.
statementCompleted
public void statementCompleted(AbstractStatement stmt,
boolean success)
throws SQLException
Notify the listener that statement is completed and tell whether
execution was successfull or not.
stmt
- statement that was completed.success
- true
if completion was successfull.
Copyright B) 2001 David Jencks and other authors. All rights reserved.