org.dbunit
Interface IOperationListener

All Known Implementing Classes:
DefaultOperationListener

public interface IOperationListener

Listener for IDatabaseConnection events.

Since:
2.4.4
Version:
$Revision: 978 $ $Date: 2009-02-27 21:20:23 +0100 (ven, 27 feb 2009) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Field Summary
static IOperationListener NO_OP_OPERATION_LISTENER
          Simple implementation of the IOperationListener that does not close the database connection after setUp and tearDown.
 
Method Summary
 void connectionRetrieved(IDatabaseConnection connection)
          Is invoked immediately after a connection was newly created or an existing connection is retrieved to do some work on it.
 void operationSetUpFinished(IDatabaseConnection connection)
          Notification of the completion of the IDatabaseTester.onSetup() method.
 void operationTearDownFinished(IDatabaseConnection connection)
          Notification of the completion of the IDatabaseTester.onTearDown() method Should close the given connection if desired.
 

Field Detail

NO_OP_OPERATION_LISTENER

static final IOperationListener NO_OP_OPERATION_LISTENER
Simple implementation of the IOperationListener that does not close the database connection after setUp and tearDown. Can be used via IDatabaseTester.setOperationListener(IOperationListener) to avoid that connections are closed.

Since:
2.4.5
Method Detail

connectionRetrieved

void connectionRetrieved(IDatabaseConnection connection)
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 the DatabaseConfig of the connection with user defined parameters.

Parameters:
connection - The database connection
Since:
2.4.4

operationSetUpFinished

void operationSetUpFinished(IDatabaseConnection connection)
Notification of the completion of the IDatabaseTester.onSetup() method. Should close the given connection if desired.

Parameters:
connection - The database connection
Since:
2.4.4

operationTearDownFinished

void operationTearDownFinished(IDatabaseConnection connection)
Notification of the completion of the IDatabaseTester.onTearDown() method Should close the given connection if desired.

Parameters:
connection - The database connection
Since:
2.4.4


Copyright © 2002-2009. All Rights Reserved.