| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.resource.spi.ConnectionEvent
The ConnectionEvent class provides information about the source of a connection related event.A ConnectionEvent instance contains the following information:
This class defines following types of event notifications:
ConnectionEventListener, 
Serialized Form| Field Summary | |
| static int | CONNECTION_CLOSEDEvent notification that an application component has closed the connection | 
| static int | CONNECTION_ERROR_OCCURREDEvent notification that an error occurred on the connection. | 
| protected  int | idType of the event | 
| static int | LOCAL_TRANSACTION_COMMITTEDEvent notification that a Resource Manager Local Transaction was committed on the connection | 
| static int | LOCAL_TRANSACTION_ROLLEDBACKEvent notification that a Resource Manager Local Transaction was rolled back on the connection | 
| static int | LOCAL_TRANSACTION_STARTEDEvent notification that a Resource Manager Local Transaction was started on the connection | 
| Fields inherited from class java.util.EventObject | 
| source | 
| Constructor Summary | |
| ConnectionEvent(ManagedConnection source,
                int eid)Construct a ConnectionEvent object. | |
| ConnectionEvent(ManagedConnection source,
                int eid,
                java.lang.Exception exception)Construct a ConnectionEvent object. | |
| Method Summary | |
|  java.lang.Object | getConnectionHandle()Get the connection handle associated with the Managed Connection instance. | 
|  java.lang.Exception | getException()Get the exception. | 
|  int | getId()Get the type of event | 
|  void | setConnectionHandle(java.lang.Object connectionHandle)Set the connection handle. | 
| Methods inherited from class java.util.EventObject | 
| getSource, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public 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
| Constructor Detail | 
public ConnectionEvent(ManagedConnection source,
                       int eid)
source - ManagedConnection that is the
                       source of the eventeid - type of the Connection event
public ConnectionEvent(ManagedConnection source,
                       int eid,
                       java.lang.Exception exception)
source - ManagedConnection that is the
                       source of the eventexception - exception about to be thrown to the applicationeid - type of the Connection event| Method Detail | 
public java.lang.Object getConnectionHandle()
public void setConnectionHandle(java.lang.Object connectionHandle)
public java.lang.Exception getException()
public int getId()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.