public class AssertEventCatcher
extends java.lang.Object
implements javax.sql.ConnectionEventListener
Modifier and Type | Field and Description |
---|---|
private int |
catcher |
private boolean |
gotConnectionClosed |
private boolean |
gotConnectionErrorOccured |
Constructor and Description |
---|
AssertEventCatcher(int which) |
Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(javax.sql.ConnectionEvent event) |
void |
connectionErrorOccurred(javax.sql.ConnectionEvent event) |
boolean |
didConnectionClosedEventHappen()
Tell the caller if we received Connection closed event
|
boolean |
didConnectionErrorEventHappen()
Tell the caller if we received Connection error event
|
void |
resetState()
Clear the event received flags for this listener.
|
private final int catcher
private boolean gotConnectionClosed
private boolean gotConnectionErrorOccured
public void connectionClosed(javax.sql.ConnectionEvent event)
connectionClosed
in interface javax.sql.ConnectionEventListener
public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
connectionErrorOccurred
in interface javax.sql.ConnectionEventListener
public boolean didConnectionClosedEventHappen()
public boolean didConnectionErrorEventHappen()
public void resetState()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.