org.dbunit
Class DefaultOperationListener

java.lang.Object
  extended by org.dbunit.DefaultOperationListener
All Implemented Interfaces:
IOperationListener

public class DefaultOperationListener
extends java.lang.Object
implements IOperationListener

Default implementation of the IOperationListener.

Since:
2.4.4
Version:
$Revision: 1155 $ $Date: 2010-02-08 01:52:07 +0100 (lun, 08 feb 2010) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: jeffjensen $

Field Summary
 
Fields inherited from interface org.dbunit.IOperationListener
NO_OP_OPERATION_LISTENER
 
Constructor Summary
DefaultOperationListener()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperationListener

public DefaultOperationListener()
Method Detail

connectionRetrieved

public void connectionRetrieved(IDatabaseConnection connection)
Description copied from interface: IOperationListener
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.

Specified by:
connectionRetrieved in interface IOperationListener
Parameters:
connection - The database connection

operationSetUpFinished

public void operationSetUpFinished(IDatabaseConnection connection)
Description copied from interface: IOperationListener
Notification of the completion of the IDatabaseTester.onSetup() method. Should close the given connection if desired.

Specified by:
operationSetUpFinished in interface IOperationListener
Parameters:
connection - The database connection

operationTearDownFinished

public void operationTearDownFinished(IDatabaseConnection connection)
Description copied from interface: IOperationListener
Notification of the completion of the IDatabaseTester.onTearDown() method Should close the given connection if desired.

Specified by:
operationTearDownFinished in interface IOperationListener
Parameters:
connection - The database connection


Copyright © 2002-2010. All Rights Reserved.