org.apache.derbyTesting.functionTests.tests.jdbcapi
Class AssertEventCatcher
java.lang.Object
org.apache.derbyTesting.functionTests.tests.jdbcapi.AssertEventCatcher
- All Implemented Interfaces:
- java.util.EventListener, javax.sql.ConnectionEventListener
public class AssertEventCatcher
- extends java.lang.Object
- implements javax.sql.ConnectionEventListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catcher
private final int catcher
gotConnectionClosed
private boolean gotConnectionClosed
gotConnectionErrorOccured
private boolean gotConnectionErrorOccured
AssertEventCatcher
public AssertEventCatcher(int which)
connectionClosed
public void connectionClosed(javax.sql.ConnectionEvent event)
- Specified by:
connectionClosed in interface javax.sql.ConnectionEventListener
connectionErrorOccurred
public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
- Specified by:
connectionErrorOccurred in interface javax.sql.ConnectionEventListener
didConnectionClosedEventHappen
public boolean didConnectionClosedEventHappen()
- Tell the caller if we received Connection closed event
- Returns:
- true if received Connection closed event
didConnectionErrorEventHappen
public boolean didConnectionErrorEventHappen()
- Tell the caller if we received Connection error event
- Returns:
- true if received Connection error event
resetState
public void resetState()
- Clear the event received flags for this listener.
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.