public final class XcaConnectionEvent
extends java.lang.Object
XcaConnectionEvent class provides information about the source of a connection related event. A
XcaConnectionEvent instance contains the following information:
FBManagedConnection instance that generated the connection event. A FBManagedConnection
instance is returned from the method getSource()FBManagedConnection instance; required for the
CONNECTION_CLOSED event and optional for the other event typesCONNECTION_ERROR_OCCURRED| Modifier and Type | Class and Description |
|---|---|
static class |
XcaConnectionEvent.EventType |
| Constructor and Description |
|---|
XcaConnectionEvent(FBManagedConnection source,
XcaConnectionEvent.EventType eventType)
Construct a
ConnectionEvent object. |
XcaConnectionEvent(FBManagedConnection source,
XcaConnectionEvent.EventType eventType,
java.lang.Exception exception)
Construct a
ConnectionEvent object. |
| Modifier and Type | Method and Description |
|---|---|
FirebirdConnection |
getConnectionHandle()
Get the connection handle associated with the managed connection instance.
|
XcaConnectionEvent.EventType |
getEventType() |
java.lang.Exception |
getException()
Get the exception associated with this event.
|
FBManagedConnection |
getSource() |
void |
setConnectionHandle(FirebirdConnection connectionHandle) |
public XcaConnectionEvent(FBManagedConnection source, XcaConnectionEvent.EventType eventType)
ConnectionEvent object.source - the source of the eventeventType - Type of eventpublic XcaConnectionEvent(FBManagedConnection source, XcaConnectionEvent.EventType eventType, java.lang.Exception exception)
ConnectionEvent object.source - the source of the eventeventType - Type of eventexception - Exception associated with the eventpublic FBManagedConnection getSource()
public FirebirdConnection getConnectionHandle()
CONNECTION_CLOSED
event.nullpublic void setConnectionHandle(FirebirdConnection connectionHandle)
public java.lang.Exception getException()
null for event type other than CONNECTION_ERROR_OCCURREDpublic XcaConnectionEvent.EventType getEventType()
Copyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.