public class ConnectionEvent extends EventObject
This class defines following types of event notifications:
ConnectionEventListener, 
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
static int | 
CONNECTION_CLOSED
Event notification that an application component has closed the 
  connection 
 | 
static int | 
CONNECTION_ERROR_OCCURRED
Event notification that an error occurred on the connection. 
 | 
protected int | 
id
Type of the event 
 | 
static int | 
LOCAL_TRANSACTION_COMMITTED
Event notification that a Resource Manager Local Transaction was
  committed on the connection 
 | 
static int | 
LOCAL_TRANSACTION_ROLLEDBACK
Event notification that a Resource Manager Local Transaction was
  rolled back on the connection 
 | 
static int | 
LOCAL_TRANSACTION_STARTED
Event notification that a Resource Manager Local Transaction was
  started on the connection 
 | 
source| Constructor and Description | 
|---|
ConnectionEvent(ManagedConnection source,
               int eid)
Construct a ConnectionEvent object. 
 | 
ConnectionEvent(ManagedConnection source,
               int eid,
               Exception exception)
Construct a ConnectionEvent object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
getConnectionHandle()
Get the connection handle associated with the Managed
 Connection instance. 
 | 
Exception | 
getException()
Get the exception. 
 | 
int | 
getId()
Get the type of event 
 | 
void | 
setConnectionHandle(Object connectionHandle)
Set the connection handle. 
 | 
getSource, toStringpublic static final int CONNECTION_CLOSED
public static final int LOCAL_TRANSACTION_STARTED
public static final int LOCAL_TRANSACTION_COMMITTED
public static final int LOCAL_TRANSACTION_ROLLEDBACK
public static final int CONNECTION_ERROR_OCCURRED
protected int id
public ConnectionEvent(ManagedConnection source, int eid)
source - ManagedConnection that is the
                       source of the eventeid - type of the Connection eventpublic ConnectionEvent(ManagedConnection source, int eid, Exception exception)
source - ManagedConnection that is the
                       source of the eventexception - exception about to be thrown to the applicationeid - type of the Connection eventpublic Object getConnectionHandle()
public void setConnectionHandle(Object connectionHandle)
public Exception getException()
public int getId()
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.