Package org.dbunit
Interface IOperationListener
- All Known Implementing Classes:
DefaultOperationListener
public interface IOperationListener
Listener for
IDatabaseConnection events.- Since:
- 2.4.4
- Version:
- $Revision$ $Date$
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IOperationListenerSimple implementation of theIOperationListenerthat does not close the database connection after setUp and tearDown. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionRetrieved(IDatabaseConnection connection) Is invoked immediately after a connection was newly created or an existing connection is retrieved to do some work on it.voidoperationSetUpFinished(IDatabaseConnection connection) Notification of the completion of theIDatabaseTester.onSetup()method.voidoperationTearDownFinished(IDatabaseConnection connection) Notification of the completion of theIDatabaseTester.onTearDown()method Should close the given connection if desired.
-
Field Details
-
NO_OP_OPERATION_LISTENER
Simple implementation of theIOperationListenerthat does not close the database connection after setUp and tearDown. Can be used viaIDatabaseTester.setOperationListener(IOperationListener)to avoid that connections are closed.- Since:
- 2.4.5
-
-
Method Details
-
connectionRetrieved
Is invoked immediately after a connection was newly created or an existing connection is retrieved to do some work on it. It should be used to initialize theDatabaseConfigof the connection with user defined parameters.- Parameters:
connection- The database connection- Since:
- 2.4.4
-
operationSetUpFinished
Notification of the completion of theIDatabaseTester.onSetup()method. Should close the given connection if desired.- Parameters:
connection- The database connection- Since:
- 2.4.4
-
operationTearDownFinished
Notification of the completion of theIDatabaseTester.onTearDown()method Should close the given connection if desired.- Parameters:
connection- The database connection- Since:
- 2.4.4
-