public interface IOperationListener
IDatabaseConnection events.| Modifier and Type | Field and Description |
|---|---|
static IOperationListener |
NO_OP_OPERATION_LISTENER
Simple implementation of the
IOperationListener that does not close
the database connection after setUp and tearDown. |
| Modifier and Type | Method and Description |
|---|---|
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. |
static final IOperationListener NO_OP_OPERATION_LISTENER
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.void connectionRetrieved(IDatabaseConnection connection)
DatabaseConfig of the connection with user defined parameters.connection - The database connectionvoid operationSetUpFinished(IDatabaseConnection connection)
IDatabaseTester.onSetup() method.
Should close the given connection if desired.connection - The database connectionvoid operationTearDownFinished(IDatabaseConnection connection)
IDatabaseTester.onTearDown() method
Should close the given connection if desired.connection - The database connectionCopyright © 2002-2017. All Rights Reserved.